[solved] I have followed a tutorial and it does not work
Posted: Wed Jul 24, 2019 6:54 am
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
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
Code: Select all
asm volatile("mov %0, %%cr0":: "r"(cr0));
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