Re: Reason for %ss==%ds?

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

 




On Tue, Aug 17, 2010 at 11:17 PM, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
On Wed, Aug 18, 2010 at 00:15, nascent mind <nascent.mind@xxxxxxxxx> wrote:
> Hi,
>
>    I am trying to understand the boot process of the kernel and I am not
> able to understand why the stack segment should be equal to the data segment

AFAIK, in x86 (at least the 32 bit), since we use protected mode,
segmentation is something we don't really need. And basically Linux
uses flat address space.

Thus, segmentation is here is just needed for protection (CPL=0 kernel
mode, =3 user mode, other than that, they are usually used for
virtualization -- not used in VT/SVM mode)

CMIIW people...

--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
 
Mulyadi,

        Its still in real mode. I agree with the flat address space but why not put  %ss at somewhere near 098000?

Thanks.

[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