358,7 → 358,7 |
|
cmp dword [LFBAddress], -1 |
jne @f |
mov [BOOT_VARS+BOOT_MTRR], byte 2 |
mov [BOOT_VAR+BOOT_MTRR], byte 2 |
; max VGA=640*480*4=1228800 bytes |
; + 32*640*4=81920 bytes for mouse pointer |
stdcall alloc_pages, ((1228800+81920)/4096) |
378,7 → 378,7 |
@@: |
test [SCR_MODE], word 0100000000000000b |
jnz @f |
mov [BOOT_VARS+BOOT_MTRR], byte 2 |
mov [BOOT_VAR+BOOT_MTRR], byte 2 |
ret |
@@: |
call init_mtrr |
1361,7 → 1361,7 |
align 4 |
proc init_mtrr |
|
cmp [BOOT_VARS+BOOT_MTRR], byte 2 |
cmp [BOOT_VAR+BOOT_MTRR], byte 2 |
je .exit |
|
bt [cpu_caps], CAPS_MTRR |