aboutsummaryrefslogtreecommitdiff
path: root/kernel/memory/paging/table.sats
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/memory/paging/table.sats')
-rw-r--r--kernel/memory/paging/table.sats9
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/memory/paging/table.sats b/kernel/memory/paging/table.sats
index 491b77e..6b8e188 100644
--- a/kernel/memory/paging/table.sats
+++ b/kernel/memory/paging/table.sats
@@ -17,11 +17,10 @@ fun table_set_at{n:int}(table: !table_t(n), i: sizeLt(ENTRY_COUNT), x: entry_t):
overload [] with table_get_at
overload [] with table_set_at
-// Set all the entries in the table to unused (zero)
-fn set_zero(&Table_t):<!wrt> void
-
castfn consume(Table_t): void
-fun get_P4() : table_t 0
+fn get_P4() : table_t 0
+
+fn next_table{n : nat | n < 3}(table_t n, index : sizeLt(ENTRY_COUNT)) : Valid (table_t (n+1))
-fun next_table{n : nat | n < 3}(table_t n, sizeLt(ENTRY_COUNT)) : Valid (table_t (n+1))
+fn next_table_create{n : nat | n < 3}(table_t n, index : sizeLt(ENTRY_COUNT)) : Valid (table_t (n+1))