Re: Reason for %ss==%ds?

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

 



On Tue, Aug 17, 2010 at 10:45 PM, 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
> here http://lxr.linux.no/#linux+v2.6.31.2/arch/x86/boot/header.S#L260 . Can
> somebody explain this? Wouldn't it overlap with the code segment?

CMIIW.

No it will not. Taking your lxr reference it says
"# Now %dx should point to the end of our stack space".
So it is assumed by the developer that there will not big
number of push's and the Data would not be big enough
to run over each other. Kind of 'tiny' model. ( aka .com ).

Thanks




>
> Thanks.
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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