Fix PMM function names - they handle physical frames, not virtual pages
This commit is contained in:
parent
0f7ab3941f
commit
4e8d025345
@ -4,13 +4,13 @@ main:
|
||||
jsr term_init
|
||||
jsr pmem_init
|
||||
move.l #0x1000, d0
|
||||
jsr push_page
|
||||
jsr push_frame
|
||||
move.l #0x2000, d0
|
||||
jsr push_page
|
||||
jsr push_frame
|
||||
move.l #0, d0
|
||||
jsr pop_page
|
||||
jsr pop_page
|
||||
jsr pop_page
|
||||
jsr pop_frame
|
||||
jsr pop_frame
|
||||
jsr pop_frame
|
||||
stop #0x2700
|
||||
|
||||
.bss
|
||||
|
@ -13,9 +13,9 @@ adda.l d1, a0
|
||||
move.l a0, map_page_entry_addr
|
||||
rts
|
||||
|
||||
.global push_page
|
||||
| Page to push in d0
|
||||
push_page:
|
||||
.global push_frame
|
||||
| Frame to push in d0
|
||||
push_frame:
|
||||
move.l map_page_entry_addr, a0
|
||||
move.l (a0), d1 | Read the mapping entry into d1
|
||||
andi.l #(~0xFFF), d1 | Clear the entry's flags to get the pointer to it's physical page
|
||||
@ -26,8 +26,8 @@ move.l #map_page, (a0)
|
||||
move.l d1, (map_page)
|
||||
rts
|
||||
|
||||
.global pop_page
|
||||
pop_page:
|
||||
.global pop_frame
|
||||
pop_frame:
|
||||
move.l map_page_entry_addr, a0
|
||||
move.l (a0), d0 | Read the mapping entry into d0
|
||||
btst #0, d0 | Check the entry's present flag
|
||||
|
Loading…
Reference in New Issue
Block a user