Skip to contentSkip to conversation

Where did struct user_regs_struct{,32} go?

DISCUSSION Michael Riepe 2 participants 2 messages Mar 24, 2009 – Mar 25, 2009

lore
Share & tools
lore
#0 lore raw

It seems that 2.6.29 (and maybe also 2.6.28) doesn't export the structures any longer (they used to reside in <asm/user_{32,64}.h>). <linux/user.h> is gone as well. There is only <sys/user.h>, but it doesn't define struct user_regs_struct32. Am I supposed to roll my own when I want to ptrace(PTRACE_GETREGS) the registers of a 32-bit process from 64-bit land?

Signature · 2 lines
Michael "Tired" Riepe <[email protected]>
X-Tired: Each morning I get up I die a little
#1 lore raw
Quoted 3 lines · Michael Riepe

Am I supposed to roll my own
when I want to ptrace(PTRACE_GETREGS) the registers of a 32-bit process from 64-bit land?

Shouldn't the kernel convert the 32-bit registers into a 64-bit user_regs_struct for GETREGS and convert them back for SETREGS?

Jeff

Signature · 1 line
Work email - jdike at linux dot intel dot com