Linux 64位计算机上的 struct reg 和 struct user_regs_struc 之间有什么区别?
答案 0 :(得分:0)
struct user_regs_struct
{
unsigned long r15;
unsigned long r14;
unsigned long r13;
unsigned long r12;
unsigned long rbp;
unsigned long rbx;
unsigned long r11;
unsigned long r10;
unsigned long r9;
unsigned long r8;
unsigned long rax;
unsigned long rcx;
unsigned long rdx;
unsigned long rsi;
unsigned long rdi;
unsigned long orig_rax;
unsigned long rip;
unsigned long cs;
unsigned long eflags;
unsigned long rsp;
unsigned long ss;
unsigned long fs_base;
unsigned long gs_base;
unsigned long ds;
unsigned long es;
unsigned long fs;
unsigned long gs;
};
这个结构可以在/ usr / include / x86_64-linux-gnu / sys
中找到根据this link struct reg is
struct reg {
register_t fixreg[32];
register_t lr;
register_t cr;
register_t xer;
register_t ctr;
register_t pc;
};
在freeBsd文件中:sys / powerpc / include / reg.h
是的,我没有在我的debian 64位系统中找到这个结构。