home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.development      Operating system development chatter      4,255 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,555 of 4,255   
   =?UTF-8?B?15DXldeo15kg15XXmdeh15HXn to All   
   Re: paging makes OS to reboot infinitely   
   06 Dec 22 22:47:40   
   
   From: turhuhxckuo@gmail.com   
      
   Scott - I'll read your code and see what the difference is with mine, though   
   it's a long assembly code that moves to *long mode*, and I'm making a 32-bit   
   system.   
      
   Alex:   
   >So, when you add a number to a pointer to type T, how many bytes does the   
   pointer advance?   
   Ok, I've tried again and now it works as it should, advances with sizeof(T).   
      
   >Also, why do you use i and (i-1) in this statement? Shouldn't they be the   
   same?   
   The loop there is for making the kernel's virtual and physical addresses   
   identical, so after activating the paging bit in CR0 it'll still go back to   
   the line it was supposed to go to.   
   How does it work? The kernel address is 0x00001000, which means the first   
   entry in PDT and the second entry in the PT that you got.   
   The kernel's code size is 3 Pages long. the for loop works like this: put into   
   the second part of the PT the first part of the kernel, and keep going to the   
   next part.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca