forked from KolibriOS/kolibrios
hardware cursor init code updated for Kavery GPU
git-svn-id: svn://kolibrios.org@6877 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
45aee00e6b
commit
ce35591444
@ -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 @@ create_mmio_pte:
|
||||
; ---- 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 @@ apic_timer_reset:
|
||||
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 @@ init_hw_cursor:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user