Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. ; GRAPHICS ADDRESSES
  2.  
  3.         ;mov     eax,0x100000*8                    ; LFB address
  4.         ;cmp     [0xfe0c],word 0x13
  5.         ;je      no_d_lfb
  6.         ;cmp     [0xfe0c],word 0x12
  7.         ;je      no_d_lfb
  8.         ;cmp     [0x2f0000+0x901e],byte 1
  9.         ;jne     no_d_lfb
  10.         mov     byte [0x2f0000+0x901e],0x0
  11.         mov     eax,[0x2f0000+0x9018]
  12.       ;no_d_lfb:
  13.         mov     [LFBAddress],eax
  14.  
  15.         cmp     [SCR_MODE],word 0100000000000000b
  16.         jge     setvesa20
  17.         cmp     [SCR_MODE],word 0x13
  18.         je      v20ga32
  19.         mov     [PUTPIXEL],dword Vesa12_putpixel24  ; Vesa 1.2
  20.         mov     [0xe024],dword Vesa12_getpixel24
  21.         cmp     [ScreenBPP],byte 24
  22.         jz      ga24
  23.         mov     [PUTPIXEL],dword Vesa12_putpixel32
  24.         mov     [0xe024],dword Vesa12_getpixel32
  25.       ga24:
  26.         jmp     v20ga24
  27.       setvesa20:
  28.         mov     [PUTPIXEL],dword Vesa20_putpixel24  ; Vesa 2.0
  29.         mov     [0xe024],dword Vesa20_getpixel24
  30.         cmp     [ScreenBPP],byte 24
  31.         jz      v20ga24
  32.       v20ga32:
  33.         mov     [PUTPIXEL],dword Vesa20_putpixel32
  34.         mov     [0xe024],dword Vesa20_getpixel32
  35.       v20ga24:
  36.         cmp     [SCR_MODE],word 0x12                ; 16 C VGA 640x480
  37.         jne     no_mode_0x12
  38.         mov     [PUTPIXEL],dword VGA_putpixel
  39.         mov     [0xe024],dword Vesa20_getpixel32
  40.       no_mode_0x12:
  41.  
  42.            call test_cpu
  43. ;           btr [cpu_caps], CAPS_SSE    ;test: dont't use sse code
  44. ;           btr [cpu_caps], CAPS_SSE2   ;test: don't use sse2
  45.  
  46. ;           btr [cpu_caps], CAPS_FXSR   ;test: disable sse support
  47.                                         ;all sse commands rise #UD exption
  48. ;           btr [cpu_caps], CAPS_PSE    ;test: don't use large pages
  49. ;           btr [cpu_caps], CAPS_PGE    ;test: don't use global pages
  50. ;           btr [cpu_caps], CAPS_MTRR   ;test: don't use MTRR
  51.            bts [cpu_caps], CAPS_TSC     ;force use rdtsc
  52.