fix bug in the initialization of caching strategy
This commit is contained in:
parent
f3b620a9be
commit
2a5411c987
2 changed files with 6 additions and 6 deletions
|
@ -65,10 +65,10 @@ stublet:
|
|||
; initialize stack pointer.
|
||||
mov esp, default_stack_pointer
|
||||
mov eax, cr0
|
||||
; enable cache, disable paging and fpu emulation
|
||||
and eax, 0x3ffffffb
|
||||
; ...monitor coprocessor and turn on FPU exceptions
|
||||
or eax, 0x22
|
||||
; enable caching, disable paging and fpu emulation
|
||||
and eax, 0x1ffffffb
|
||||
; ...and turn on FPU exceptions
|
||||
or eax, 0x20
|
||||
mov cr0, eax
|
||||
; clears the current pgd entry
|
||||
xor eax, eax
|
||||
|
|
|
@ -113,8 +113,8 @@ int test_init(void)
|
|||
//create_kernel_task(NULL, producer, NULL);
|
||||
//create_kernel_task(NULL, consumer, NULL);
|
||||
//create_user_task(NULL, "/bin/hello", argv);
|
||||
//create_user_task(NULL, "/bin/tests", argv);
|
||||
create_user_task(NULL, "/bin/jacobi", argv);
|
||||
create_user_task(NULL, "/bin/tests", argv);
|
||||
//create_user_task(NULL, "/bin/jacobi", argv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue