Subversion Repositories HelenOS-historic

Compare Revisions

Regard whitespace Rev 858 → Rev 859

/kernel/trunk/tools/sparc64/gencontext.c
1,6 → 1,7
#include <stdio.h>
#include <stdint.h>
 
typedef long long __u64;
typedef uint64_t __u64;
typedef __u64 ipl_t;
typedef __u64 __address;
 
/kernel/trunk/tools/ppc32/gencontext.c
1,11 → 1,14
#include <stdio.h>
#include <stdint.h>
 
typedef unsigned int __u32;
typedef uint32_t __u32;
typedef uint64_t __u64;
typedef __u32 ipl_t;
typedef __u32 __address;
 
#define __ppc32_TYPES_H__
#include "../../arch/ppc32/include/context.h"
#include "../../arch/ppc32/include/fpu_context.h"
 
#define FILENAME "../../arch/ppc32/include/context_offset.h"
 
13,6 → 16,7
{
FILE *f;
struct context *pctx = NULL;
struct fpu_context *fpctx = NULL;
 
f = fopen(FILENAME,"w");
49,6 → 53,28
fprintf(f,"#define OFFSET_R31 0x%x\n", ((int) &pctx->r31) - (int) pctx);
fprintf(f,"#define OFFSET_CR 0x%x\n", ((int) &pctx->cr) - (int) pctx);
 
fprintf(f,"\n");
 
fprintf(f,"#define OFFSET_FR14 0x%x\n", ((int) &fpctx->fr14) - (int) fpctx);
fprintf(f,"#define OFFSET_FR15 0x%x\n", ((int) &fpctx->fr15) - (int) fpctx);
fprintf(f,"#define OFFSET_FR16 0x%x\n", ((int) &fpctx->fr16) - (int) fpctx);
fprintf(f,"#define OFFSET_FR17 0x%x\n", ((int) &fpctx->fr17) - (int) fpctx);
fprintf(f,"#define OFFSET_FR18 0x%x\n", ((int) &fpctx->fr18) - (int) fpctx);
fprintf(f,"#define OFFSET_FR19 0x%x\n", ((int) &fpctx->fr19) - (int) fpctx);
fprintf(f,"#define OFFSET_FR20 0x%x\n", ((int) &fpctx->fr20) - (int) fpctx);
fprintf(f,"#define OFFSET_FR21 0x%x\n", ((int) &fpctx->fr21) - (int) fpctx);
fprintf(f,"#define OFFSET_FR22 0x%x\n", ((int) &fpctx->fr22) - (int) fpctx);
fprintf(f,"#define OFFSET_FR23 0x%x\n", ((int) &fpctx->fr23) - (int) fpctx);
fprintf(f,"#define OFFSET_FR24 0x%x\n", ((int) &fpctx->fr24) - (int) fpctx);
fprintf(f,"#define OFFSET_FR25 0x%x\n", ((int) &fpctx->fr25) - (int) fpctx);
fprintf(f,"#define OFFSET_FR26 0x%x\n", ((int) &fpctx->fr26) - (int) fpctx);
fprintf(f,"#define OFFSET_FR27 0x%x\n", ((int) &fpctx->fr27) - (int) fpctx);
fprintf(f,"#define OFFSET_FR28 0x%x\n", ((int) &fpctx->fr28) - (int) fpctx);
fprintf(f,"#define OFFSET_FR29 0x%x\n", ((int) &fpctx->fr29) - (int) fpctx);
fprintf(f,"#define OFFSET_FR30 0x%x\n", ((int) &fpctx->fr30) - (int) fpctx);
fprintf(f,"#define OFFSET_FR31 0x%x\n", ((int) &fpctx->fr31) - (int) fpctx);
fprintf(f,"#define OFFSET_FPSCR 0x%x\n", ((int) &fpctx->fpscr) - (int) fpctx);
fclose(f);
 
return 0;
/kernel/trunk/tools/amd64/gencontext.c
1,7 → 1,7
#include <stdio.h>
#include <stdint.h>
 
 
typedef long long __u64;
typedef uint64_t __u64;
typedef __u64 ipl_t;
typedef __u64 __address;
 
/kernel/trunk/tools/mips32/gencontext.c
1,6 → 1,7
#include <stdio.h>
#include <stdint.h>
 
typedef unsigned int __u32;
typedef uint32_t __u32;
typedef __u32 ipl_t;
typedef __u32 __address;