Stack error

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
amirsadig

Stack error

Post by amirsadig »

Code: Select all

fd0
grubmenu
hallo.x
amirux:#hallo.x
map_page(): mapping 0xD000C000 -> 0x216003 :tb = 12
kbrk() retun 1 blocks
Valid ELF file found
Valid ELF file found
 number of PH : 2
map_page(): mapping 0x8048000 -> 0x217005 :tb = 72
map_page(): mapping 0x80490E8 -> 0x219007 :tb = 73
no bss segment
map_page(): mapping 0x804A0E8 -> 0x21A007 :tb = 74
map_page(): mapping 0xD000D000 -> 0x21B003 :tb = 13
map_page(): mapping 0xD000E000 -> 0x21C003 :tb = 14
kbrk() retun 2 blocks
 Task CS 33
mException #14 (page fault)
EDI=00000000 ESI=00000000 EBP=00000000 ESP=D000DFE0
EBX=00000000 EDX=00000000 ECX=00000000 EAX=00000000
 DS=0000002B  ES=0000002B  FS=0000002B  GS=0000002B
int=0000000E err=00000007 EIP=08048090  CS=00000033
uSP=0804A0E8 uSS=0000002B
 CR2 = 0x804A0E4 : CR3: 0x200000 , CR4: 0x0
Goodbye (system halted, use reset button to end)
that page fault I do not understand it. could someone understand this.
the adress which make the fault I have map before as you see above:

Code: Select all

map_page(): mapping 0x80490E8 -> 0x219007 :tb = 73
no bss segment
map_page(): mapping 0x804A0E8 -> 0x21A007 :tb = 74
this page fault occur as trying to execute new task.
amirsadig

Re:Stack error

Post by amirsadig »

Since yesterday I work on this error?
but as I post this topic, I have notice that it could be in the page directory entry!
and that is it. as kernel map the code segment it create a new page directory and this directory has only read access (bug in my MM) as I change it to read/write, it work ;D

it is wrong to make a whole page directory (4 MB) only read. it is better to make it read/write and put the acces in table entry.
Post Reply