Re: orig_eax in user_regs_struct ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 12 Oct 2004 15:07:55 -0400, Robert Love <rml@xxxxxxxxxx> wrote:
> 
> 
> On Wed, 2004-10-13 at 03:32 +0900, aq wrote:
> 
> > Anybody please tell me what is the meaning of orig_eax in
> > user_regs_struct ? And what does it do, together with eax?
> >
> > In the same structure, there are somethings named _cs, _ds, _es, _ss,
> > _bs, _fs. What do they do with these things?
> 
> All of these are x86 registers.
> 
> eax is the first register.  old_eax is the value of eax before it was
> mangled.
> 
> cs, ds, es, fs, gs, ss are segment registers.  They are used as segment
> selectors, pointing into the global descriptor table.  But Linux does
> not use segments (for the most part) so we use them for other purposes.
> 

I suppose that Linux still uses some segment registers, since there
are macros such as get_ds() and set_ds(). Is that correct?

Many thanks,
AQ

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux