From fcf755d4f03f6fba974d11307659e2e96f9696e7 Mon Sep 17 00:00:00 2001 From: Xander Date: Sat, 19 Aug 2023 15:04:23 +0200 Subject: Implemented entry --- kernel/memory/frame.sats | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kernel/memory/frame.sats') 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 -- cgit v1.2.3