This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A linux patch for a typo


> 
> 
> 
> On Mon, 25 May 1998, H.J. Lu wrote:
> > > 
> > > User level code should never EVER touch this structure. If anything you
> > 
> > I am working a gdb patch. It needs to know that.
> 
> No, it needs to know the stuff that is in <asm/user.h>
> 
> > Here is my copy of the original linux/include/asm-i386/ptrace.h in
> > kernel 2.1.103. Unless yours is different from mine, please tell me
> > where are the fields in struct pt_regs for FS and GS
> 
> There ARE no %fs and %gs registers _anywhere_ in the kernel stack
> structure. They used to be there, and they still appear in the
> "user_pt_regs" structure in the place where they used to appear. 
> 

That is very misleading. Those index macros for "struct user_regs_struct"
used by the user programs, EBX, ECX, EDX, ...., are defined in
linux/include/asm-i386/ptrace.h together with the kernel "struct pt_regs".
Should they be moved into linux/include/asm-i386/usr.h with
"struct user_regs_struct"? It doesn't make much senses to me.




H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]