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