fixed #pf handler

git-svn-id: svn://kolibrios.org@395 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2007-03-07 05:42:05 +00:00
parent 87fc474bee
commit ed47d8bf86
2 changed files with 5 additions and 2 deletions

View File

@ -478,7 +478,7 @@ proc page_fault_handler
cmp ebx, 0x80000000 cmp ebx, 0x80000000
jae .kernel_space jae .kernel_space
cmp ebx, page_tabs+0x800 cmp ebx, page_tabs+0x200000
jae .tab_space jae .tab_space
cmp ebx, app_page_tabs cmp ebx, app_page_tabs
@ -487,6 +487,9 @@ proc page_fault_handler
cmp ebx, 0x7DC00000 cmp ebx, 0x7DC00000
jae .lfb_addr jae .lfb_addr
; cmp ebx, 0x1000000
; jb .exit
.user_space: .user_space:
shr ebx, 12 shr ebx, 12
mov ecx, ebx mov ecx, ebx

View File

@ -336,7 +336,7 @@ high_code:
; and the contents of this field, plus 8, are copied into the SS register. ; and the contents of this field, plus 8, are copied into the SS register.
; mov edx, (os_code + 16) * 65536 + os_code ; mov edx, (os_code + 16) * 65536 + os_code
mov edx, 0x1B0013 mov edx, 0x1B0008
mov eax, syscall_entry mov eax, syscall_entry
mov ecx, MSR_AMD_STAR mov ecx, MSR_AMD_STAR