3 ms·
I also love your comments, this and others! Of course OpenFirmware has some code for paging! ;) purpose: Set up page tables and turn on paging https://github
by DonHopkins 4y ago
I also love your comments, this and others!
Of course OpenFirmware has some code for paging! ;)
purpose: Set up page tables and turn on paging
https://github.com/openbios/openfirmware/blob/master/cpu/x86/pc/paging.fth https://github.com/openbios/openfirmware/blob/master/cpu/x86...
start-assembling
protected-mode
\ RAM is on and mem-info-pa tells the memory layout
label entry
\ Initialize virtual page table
\ Initialize linear=physical page table (redundant page table entries)
\ Enable paging (note that page fault handler is not in place yet)
[ifdef] notdef
\ clear page tables
ax ax xor
/ptab /l / # cx mov
pt-pa # di mov
rep ax stos
[then]
- kragen 4y agoWhat do you think about the Forth-as-language vs. Forth-as-OS distinction?