Page Fault Problems

If you are new to development, plan on spending some time here before visiting the other forums.

Moderator:Moderators

Post Reply
xixpsychoxix
Posts:59
Joined:Tue Oct 13, 2009 8:49 pm
Page Fault Problems

Post by xixpsychoxix » Tue Oct 13, 2009 11:11 pm

Ok, since I did the tutorial on virtual memory I have been testing the operating system on multiple sets of hardware. When I test in bochs or on my laptop (pentium M 1.8 ghz dell inspiron 600m) I get page fault errors; however, I have no page fault problem in virtualpc or on my old packard bell legend 2440. can anyone tell me what is going on w/ the page faults?

User avatar
Mike
Site Admin
Posts:465
Joined:Sat Oct 20, 2007 7:58 pm
Contact:

Re: Page Fault Problems

Post by Mike » Wed Oct 14, 2009 5:19 am

Hello,

I cannot look into the issue without knowing the address that it page faults to. Run it in Bochs, and please post the bochs crash log here.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

xixpsychoxix
Posts:59
Joined:Tue Oct 13, 2009 8:49 pm

Re: Page Fault Problems

Post by xixpsychoxix » Wed Oct 14, 2009 4:17 pm

Code: Select all

00000003553i[BIOS ] $Revision: 1.231.2.1 $ $Date: 2009/06/07 07:49:09 $
00000320056i[KBD  ] reset-disable command received
00000500000i[WGUI ] dimension update x=720 y=400 fontheight=16 fontwidth=9 bpp=8
00003481424i[WGUI ] IME disabled
00039326283i[PIDE ] new BM-DMA address: 0xc000
00039332166i[P2I  ] PCI IRQ routing: PIRQA# set to 0x0b
00039332182i[P2I  ] write: ELCR2 = 0x08
00039332202i[ACPI ] new irq line = 11
00069651595i[BIOS ] Booting from 0000:7c00
00155770000p[WGUI ] >>PANIC<< Window closed, exiting!
00155770000i[CPU0 ] CPU is in protected mode (active)
00155770000i[CPU0 ] CS.d_b = 32 bit
00155770000i[CPU0 ] SS.d_b = 32 bit
00155770000i[CPU0 ] EFER   = 0x00000000
00155770000i[CPU0 ] | RAX=000000000000000c  RBX=0000000000000000
00155770000i[CPU0 ] | RCX=00000000c000317c  RDX=0000000000001f74
00155770000i[CPU0 ] | RSP=0000000000008f8c  RBP=00000000c0000e30
00155770000i[CPU0 ] | RSI=00000000c00000b2  RDI=0000000000000ba9
00155770000i[CPU0 ] |  R8=0000000000000000   R9=0000000000000000
00155770000i[CPU0 ] | R10=0000000000000000  R11=0000000000000000
00155770000i[CPU0 ] | R12=0000000000000000  R13=0000000000000000
00155770000i[CPU0 ] | R14=0000000000000000  R15=0000000000000000
00155770000i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf zf af pf cf
00155770000i[CPU0 ] | SEG selector     base    limit G D
00155770000i[CPU0 ] | SEG sltr(index|ti|rpl)     base    limit G D
00155770000i[CPU0 ] |  CS:0008( 0001| 0|  0) 00000000 ffffffff 1 1
00155770000i[CPU0 ] |  DS:0010( 0002| 0|  0) 00000000 ffffffff 1 1
00155770000i[CPU0 ] |  SS:0010( 0002| 0|  0) 00000000 ffffffff 1 1
00155770000i[CPU0 ] |  ES:0010( 0002| 0|  0) 00000000 ffffffff 1 1
00155770000i[CPU0 ] |  FS:0010( 0002| 0|  0) 00000000 ffffffff 1 1
00155770000i[CPU0 ] |  GS:0010( 0002| 0|  0) 00000000 ffffffff 1 1
00155770000i[CPU0 ] |  MSR_FS_BASE:0000000000000000
00155770000i[CPU0 ] |  MSR_GS_BASE:0000000000000000
00155770000i[CPU0 ] | RIP=00000000c0000e88 (00000000c0000e88)
00155770000i[CPU0 ] | CR0=0xe0000011 CR2=0x00000000c04043ff
00155770000i[CPU0 ] | CR3=0x0009c000 CR4=0x00000000
00155770000i[CPU0 ] 0x00000000c0000e88>> jmp .+0xfffffffe (0xc0000e88) : EBFE
00155770000i[CMOS ] Last time is 1255536938 (Wed Oct 14 12:15:38 2009)
00155770000i[     ] restoring default signal behavior
00155770000i[CTRL ] quit_sim called with exit code 1
The page fault handler is being called when I run the program under bochs for some reason. This is what i figure was the most relevant info.

User avatar
Mike
Site Admin
Posts:465
Joined:Sat Oct 20, 2007 7:58 pm
Contact:

Re: Page Fault Problems

Post by Mike » Sun Oct 18, 2009 2:39 am

Hello,

Please make the following changes and let us know what happens. There is a bug found in vmmngr_pte.h and vmmngr_pde.h. I86_PTE_FRAME and I86_PDE_FRAME contain an incorrect value and should be this:

Code: Select all

I86_PTE_FRAME 0x80000000
I86_PDE_FRAME 0x80000000
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

xixpsychoxix
Posts:59
Joined:Tue Oct 13, 2009 8:49 pm

Re: Page Fault Problems

Post by xixpsychoxix » Sun Oct 18, 2009 5:56 am

Well, i made those changes but it didn't seem to help. bochs is still page faulting for some reason but it could be me. ill do some more tests and let u guys know, please keep me posted if something else shows up.

Post Reply