37,7 → 37,7 |
; allocate tables |
mov ebx, eax |
|
stdcall create_process, 4096, eax, 4096 ;FIXME |
stdcall create_process, 4096 |
test eax, eax |
jz .fail2 |
|
51,7 → 51,6 |
|
mov [ebx+V86_machine.iopm], eax |
|
|
; initialize tables |
push edi |
mov edi, eax |
66,7 → 65,6 |
cli |
mov cr3, eax |
|
|
; now V86 specific: initialize known addresses in first Mb |
|
; first page - BIOS data (shared between all machines!) |
109,10 → 107,8 |
add eax, edx |
loop @b |
|
mov eax, sys_proc |
push ebx |
call set_cr3 |
pop ebx |
mov eax, [sys_proc+PROC.pdt_0_phys] |
mov cr3, eax |
popfd |
|
pop edi |