Paging && Multitasking errors

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
reload
Posts: 9
Joined: Sun Jul 12, 2015 10:15 am

Paging && Multitasking errors

Post by reload »

Hello! Using JamesM's tutorials I'm trying to setup Multitasking. All goes Ok, but when I'm switching to new paging directory:

Code: Select all

...
paging_currentdirectory = paging_clonedirectory(paging_kerneldirectory);	
paging_switchdirectory(paging_currentdirectory);
...
my Os get's crasy and reboots. :( I have no ideas what I'm doing wrong. Please, help!
....
glauxosdever
Member
Member
Posts: 501
Joined: Wed Jun 17, 2015 9:40 am
Libera.chat IRC: glauxosdever
Location: Athens, Greece

Re: Paging && Multitasking errors

Post by glauxosdever »

Hi,

James Molloy's tutorials are full of bugs. They are not noticed until things explode. Please check http://wiki.osdev.org/James_Molloy%27s_ ... Known_Bugs out for more information.

Regards,
glauxosdever
Last edited by glauxosdever on Tue Oct 18, 2016 1:30 pm, edited 1 time in total.
reload
Posts: 9
Joined: Sun Jul 12, 2015 10:15 am

Re: Paging && Multitasking errors

Post by reload »

Ooops... :| Does it mean "Rewrite your OS"?
....
User avatar
Kazinsal
Member
Member
Posts: 559
Joined: Wed Jul 13, 2011 7:38 pm
Libera.chat IRC: Kazinsal
Location: Vancouver
Contact:

Re: Paging && Multitasking errors

Post by Kazinsal »

It means JamesM's tutorial is not the bible of Unix development and should be taken with several large grains of salt.

Something tells me your page table's physical addresses are not what they should be. Print debugging is your friend for things like this.
Post Reply