I am fallowing the tutorial to build a kernel,
http://www.jamesmolloy.co.uk/tutorial_html/, however, the kernel crashed on activated paging. the kernel crashed on executing the code
Code:
asm volatile("mov %0, %%cr0":: "r"(cr0));
what's up?
I used gdb to debug this kernel, and returned
Cannot find bounds of current function, when executing this code.
i finally reached the part of multithread and could print A and B at the same time but without paging <_<. Thanks all, and good lucks.
printed by A B C D four threads
Solved finally!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
with paging,
the heap
user mode
file system