Data Segment problems
Posted: Fri Jun 01, 2007 7:42 am
Hi,
I've just changed my data segments from EXPAND UP segments to EXPAND DOWN segments.
The expand up sements were using a base of 0 and limit of 0xFFFFF (32 bits, page granular).
The expand down segments use a base of 0 and a limit of 0.(32 bits, page granular).
(I made this change so that the stack segment will grow downwards.)
When I try to access address 0 or (0x78) which are both in the Interrupt vector table (for real mode), I get a general protection fault.
When I change the expand down segment to use a base of 0 and a limit of 0xFFFFF, the pc just keeps rebooting.
My question is, using a flat model, should my data segment selector be EXPAND UP and the stack selector EXPAND DOWN?
How are you all using this EXPAND UP/DOWN selectors?
(NOTE: When i use EXPAND UP for both DS and SS, I can access those addresses.MY CS selector has a base of 0 and limit of 0xFFFFF and is NON-Conforming.)
I've just changed my data segments from EXPAND UP segments to EXPAND DOWN segments.
The expand up sements were using a base of 0 and limit of 0xFFFFF (32 bits, page granular).
The expand down segments use a base of 0 and a limit of 0.(32 bits, page granular).
(I made this change so that the stack segment will grow downwards.)
When I try to access address 0 or (0x78) which are both in the Interrupt vector table (for real mode), I get a general protection fault.
When I change the expand down segment to use a base of 0 and a limit of 0xFFFFF, the pc just keeps rebooting.
My question is, using a flat model, should my data segment selector be EXPAND UP and the stack selector EXPAND DOWN?
How are you all using this EXPAND UP/DOWN selectors?
(NOTE: When i use EXPAND UP for both DS and SS, I can access those addresses.MY CS selector has a base of 0 and limit of 0xFFFFF and is NON-Conforming.)