Subversion Repositories HelenOS-historic

Rev

Rev 318 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 318 Rev 413
Line 1... Line 1...
1
#include <stdio.h>
1
#include <stdio.h>
2
 
2
 
3
 
3
 
4
typedef long long __u64;
4
typedef long long __u64;
5
typedef __u64 pri_t;
5
typedef __u64 ipl_t;
6
 
6
 
7
#define __amd64_TYPES_H__
7
#define __amd64_TYPES_H__
8
#include "../../arch/amd64/include/context.h"
8
#include "../../arch/amd64/include/context.h"
9
 
9
 
10
#define FILENAME "../../arch/amd64/include/context_offset.h"
10
#define FILENAME "../../arch/amd64/include/context_offset.h"
Line 29... Line 29...
29
    fprintf(f,"#define OFFSET_RBP 0x%x\n",((int)&pctx->rbp) - (int )pctx);
29
    fprintf(f,"#define OFFSET_RBP 0x%x\n",((int)&pctx->rbp) - (int )pctx);
30
    fprintf(f,"#define OFFSET_R12 0x%x\n",((int)&pctx->r12) - (int )pctx);
30
    fprintf(f,"#define OFFSET_R12 0x%x\n",((int)&pctx->r12) - (int )pctx);
31
    fprintf(f,"#define OFFSET_R13 0x%x\n",((int)&pctx->r13) - (int )pctx);
31
    fprintf(f,"#define OFFSET_R13 0x%x\n",((int)&pctx->r13) - (int )pctx);
32
    fprintf(f,"#define OFFSET_R14 0x%x\n",((int)&pctx->r14) - (int )pctx);
32
    fprintf(f,"#define OFFSET_R14 0x%x\n",((int)&pctx->r14) - (int )pctx);
33
    fprintf(f,"#define OFFSET_R15 0x%x\n",((int)&pctx->r15) - (int )pctx);
33
    fprintf(f,"#define OFFSET_R15 0x%x\n",((int)&pctx->r15) - (int )pctx);
34
    fprintf(f,"#define OFFSET_PRI 0x%x\n",((int)&pctx->pri) - (int )pctx);
34
    fprintf(f,"#define OFFSET_IPL 0x%x\n",((int)&pctx->ipl) - (int )pctx);
35
    fclose(f);
35
    fclose(f);
36
 
36
 
37
    return 0;
37
    return 0;
38
}
38
}