Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6442 → Rev 7042

/kernel/branches/Kolibri-A/trunk/bus/HT.inc
1,6 → 1,6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; Copyright (C) 2010-13 KolibriOS team. All rights reserved. ;;
;; Copyright (C) 2010-17 KolibriOS team. All rights reserved. ;;
;; Distributed under terms of the GNU General Public License ;;
;; ;;
;; HT.inc ;; ;;
175,7 → 175,8
; ---- 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
; 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
mov eax, [eax]
 
xor al, al ; physical address
345,7 → 346,7
init_hw_cursor:
call alloc_page ; eax = phys. addr
push eax
or eax, (PG_NOCACHE + PG_SHARED + PG_UW) ; i like dirty hacks
or eax, (PG_NOCACHE + PG_SHARED + PG_UW)
mov [mmio_pte + OS_BASE + 15*4], eax ; mapped to the end of GPU MMRegs
mov edi, GPU_CURSOR ; lin. addr
invlpg [edi]
365,7 → 366,8
inc ecx
cmp ecx, 16
je @f
add edi, 64*4 ; new line
; add edi, 64*4 ; evergreen cursor is 64x64pix
add edi, 128*4 ; si cursor is 128x128pix
jmp .fill64pix
@@:
pop eax