diff options
Diffstat (limited to 'kernel/memory/frame.sats')
-rw-r--r-- | kernel/memory/frame.sats | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/memory/frame.sats b/kernel/memory/frame.sats index dfd422e..6580ab0 100644 --- a/kernel/memory/frame.sats +++ b/kernel/memory/frame.sats @@ -2,6 +2,9 @@ staload "kernel/bootinfo/multiboot.sats" +// Physical address type +typedef paddr = Ptr0 + typedef frame_t = @{ num = size_t } @@ -16,6 +19,7 @@ typedef frame_allocator_t = @{ } fn containing_address{l:addr}(ptr l):<> frame_t +fn start_address(frame_t):<> paddr fn allocate_frame () : frame_t fn deallocate_frame () : void |