2

Linux 64 位机器上的struct regstruct user_regs_struc有什么区别?

4

1 回答 1

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 中找到

根据这个链接struct reg 是

 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 位系统中找到这个结构。

于 2013-06-16T22:19:53.210 回答