mem: begin work on pager

This commit is contained in:
Michael Shaw 2023-03-04 16:46:33 -05:00
commit ffddd592da
10 changed files with 184 additions and 28 deletions

View file

@ -1,5 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
.global cr3_get
cr3_get:
.global cr3_read
cr3_read:
movq %cr3, %rax
ret
.global cr3_write
cr3_write:
movq %rdi, %cr3
ret