1,6 → 1,6 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
;; ;; |
;; Copyright (C) 2010-17 KolibriOS team. All rights reserved. ;; |
;; Copyright (C) 2010-13 KolibriOS team. All rights reserved. ;; |
;; Distributed under terms of the GNU General Public License ;; |
;; ;; |
;; HT.inc ;; ;; |
175,8 → 175,7 |
; ---- map GPU MMRegs ---- |
.map_gpu_mmr: |
mov eax, [mmio_pcie_cfg_addr-OS_BASE] ; PCIe space |
; add eax, 0x08018 ; b:0, d:1, f:0, reg=18 << fam.14h GPU BAR |
add eax, 0x08024 ; b:0, d:1, f:0, reg=24 << fam.16h GPU BAR |
add eax, 0x08018 ; b:0, d:1, f:0, reg=18 |
mov eax, [eax] |
|
xor al, al ; physical address |
346,7 → 345,7 |
init_hw_cursor: |
call alloc_page ; eax = phys. addr |
push eax |
or eax, (PG_NOCACHE + PG_SHARED + PG_UW) |
or eax, (PG_NOCACHE + PG_SHARED + PG_UW) ; i like dirty hacks |
mov [mmio_pte + OS_BASE + 15*4], eax ; mapped to the end of GPU MMRegs |
mov edi, GPU_CURSOR ; lin. addr |
invlpg [edi] |
366,8 → 365,7 |
inc ecx |
cmp ecx, 16 |
je @f |
; add edi, 64*4 ; evergreen cursor is 64x64pix |
add edi, 128*4 ; si cursor is 128x128pix |
add edi, 64*4 ; new line |
jmp .fill64pix |
@@: |
pop eax |