[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH] kernel: Parameterdreher bei memset gefixt
! kernel: memset erwartet (addr, value, len), nicht (addr, len, value)
Signed-off-by: Stefan Schmidt <thrimbor.github@xxxxxxxxx>
---
src/kernel/src/mm/kmm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/kernel/src/mm/kmm.c b/src/kernel/src/mm/kmm.c
index 0246abc..65cc99d 100644
--- a/src/kernel/src/mm/kmm.c
+++ b/src/kernel/src/mm/kmm.c
@@ -249,7 +249,7 @@ vaddr_t alloc_kernel_pages(int num)
page_table = (page_table_t)(KERNEL_PAGE_TABLES_VADDR + (i << PAGE_SHIFT));
// Page Table mit Nullen initialisieren
- memset(page_table, PAGE_SIZE, 0);
+ memset(page_table, 0, PAGE_SIZE);
kernel_pd_id++;
}
--
1.8.4.2