Fix paging #PF, simplify init_tasks
Unsure what fixed the paging #PF in init_tasks, but allocating a page
now works as expected. Originally a #PF would occur if alloc_page was
called after a certain point in init_tasks.
diff --git a/src/kernel/x86_32/boot.s b/src/kernel/x86_32/boot.s
index 047b326..9828985 100644
--- a/src/kernel/x86_32/boot.s
+++ b/src/kernel/x86_32/boot.s
@@ -13,7 +13,7 @@
;; Index in page directory
KERNEL_PAGE_NUMBER equ (KERNEL_VIRTUAL_BASE >> 22)
-STACK_SIZE equ 0x4000
+STACK_SIZE equ 0x1000
@@ -23,7 +23,8 @@
page_directory:
dd 0b010000011 ; Identity map first 4 megs
times (KERNEL_PAGE_NUMBER - 1) dd 0
- dd 0b010000011 ; Map kernel memory to zero page too
+ dd 0b010000011 ; Map kernel memory (4 megs) to zero
+ ; page too
times (1024 - KERNEL_PAGE_NUMBER - 1) dd 0
gdt: