2010/8/18 Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx>: > Hi.. > > On Wed, Aug 18, 2010 at 00:55, nascent mind <nascent.mind@xxxxxxxxx> wrote: >> Mulyadi, >> >> Its still in real mode. I agree with the flat address space but why >> not put %ss at somewhere near 098000? >> >> Thanks. >> > > Please don't top post :) > > Oh, sorry, I thought it's already in protected mode.... > > OK, so that's your doubt...about the supposed address. Hummm, > well.....IMHO it's because there is no real "segment" for kernel > stack. So instead treating it differently, it is consider the same as > data segment. > yes, this is explained on the intel mannual. <<Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3A: System Programming Guide, Part 1>> 3.2.1 Basic Flat Model The simplest memory model for a system is the basic “flat model,” in which the operating system and application programs have access to a continuous, unsegmented address space. To the greatest extent possible, this basic flat model hides the segmentation mechanism of the architecture from both the system designer and the application programmer. To implement a basic flat memory model with the IA-32 architecture, at least two segment descriptors must be created, one for referencing a code segment and one for referencing a data segment (see Figure 3-2). Both of these segments, however, are mapped to the entire linear address space: that is, both segment descriptors have the same base address value of 0 and the same segment limit of 4 GBytes. > -- > regards, > > Mulyadi Santosa > Freelance Linux trainer and consultant > > blog: the-hydra.blogspot.com > training: mulyaditraining.blogspot.com > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- Best Regards Lin -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ