From 9443996f56c5d1e217f6fed02ef1569f1c64aca0 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Fri, 30 Aug 2019 17:43:46 +0000 Subject: [PATCH] Notes on malloc functions --- kernel/malloc.asm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/malloc.asm b/kernel/malloc.asm index 9496110..fe34e04 100644 --- a/kernel/malloc.asm +++ b/kernel/malloc.asm @@ -42,11 +42,13 @@ malloc_get_table: mov di, 0x0600 ret +; IN: 0:BX ptr to paragraph to be marked as allocated malloc_mark_allocated: call malloc_calc_offsets or byte [bx+di], al ret +; IN: 0:BX ptr to paragraph to be marked as free malloc_mark_free: call malloc_calc_offsets not al