Subversion Repositories Kolibri OS

Rev

Rev 7130 | Rev 7136 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7130 Rev 7132
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2017. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 7130 $
8
$Revision: 7132 $
9
 
9
 
10
 
10
 
Line 227... Line 227...
227
 
227
 
Line 228... Line 228...
228
CDDataBuf           equ (OS_BASE+0x0005000)
228
CDDataBuf           equ (OS_BASE+0x0005000)
Line 229... Line 229...
229
 
229
 
Line 230... Line 230...
230
;unused                 0x6000 - 0x8fff
230
;unused                 0x6000 - 0x8fff
231
 
231
 
232
BOOT_VARS           equ (OS_BASE)               ;0x9000
232
BOOT_VARS           equ 0x9000
233
 
233
 
Line 332... Line 332...
332
PAT_TYPE_WB         equ 6
332
PAT_TYPE_WB         equ 6
333
PAT_TYPE_UCM        equ 7
333
PAT_TYPE_UCM        equ 7
Line 334... Line 334...
334
 
334
 
Line 335... Line -...
335
PAT_VALUE           equ 0x00070106; (UC<<24)|(UCM<<16)|(WC<<8)|WB
-
 
336
 
-
 
337
;;;;;;;;;;;boot time variables
-
 
338
 
-
 
339
BOOT_BPP            equ 0x9000    ;byte   bits per pixel
-
 
340
BOOT_PITCH          equ 0x9001    ;word   scanline length
-
 
341
BOOT_VESA_MODE      equ 0x9008    ;word   vesa video mode
-
 
342
BOOT_X_RES          equ 0x900A    ;word   X res
-
 
343
BOOT_Y_RES          equ 0x900C    ;word   Y res
-
 
344
BOOT_BANK_SW        equ 0x9014    ;dword  Vesa 1.2 pm bank switch
-
 
345
BOOT_LFB            equ 0x9018    ;dword  Vesa 2.0 LFB address
-
 
346
BOOT_MTRR           equ 0x901C    ;byte   0 or 1 : enable MTRR graphics acceleration
-
 
347
BOOT_LAUNCHER_START equ 0x901D    ;byte   (0 or 1) start the first app (right now it's LAUNCHER) after kernel is loaded?
-
 
348
BOOT_DEBUG_PRINT    equ 0x901E    ;byte   If nonzero, duplicates debug output to the screen.
-
 
349
BOOT_DMA            equ 0x901F    ;byte   DMA write : 1=yes, 2=no
-
 
350
BOOT_PCI_DATA       equ 0x9020    ;8bytes pci data
-
 
351
BOOT_SHUTDOWN_TYPE  equ 0x9030    ;byte   shutdown type (see sysfn 18.9)
-
 
352
BOOT_MEM_AMOUNT     equ 0x9034    ;dword  memory amount
-
 
353
 
-
 
354
BOOT_APM_ENTRY      equ 0x9040
-
 
355
BOOT_APM_VERSION    equ 0x9044
-
 
356
BOOT_APM_FLAGS      equ 0x9046
-
 
357
BOOT_APM_CODE_32    equ 0x9050
-
 
358
BOOT_APM_CODE_16    equ 0x9052
-
 
359
BOOT_APM_DATA_16    equ 0x9054
-
 
360
BOOT_DEV            equ 0x9056    ; byte
-
 
361
BOOT_KERNEL_RESTART equ 0x9058    ; word
-
 
362
BOOT_BX_FROM_LOAD   equ 0x905A    ; word
-
 
363
; low byte: a,b,c,d -- hdX, r -- rdX
-
 
364
; high byte: symbol 'X' as in the line above, e.g. '1', not 1
-
 
365
; see loader_doc.txt for details
-
 
366
BOOT_ACPI_RSDP      equ 0x905C    ; dword
-
 
367
 
-
 
368
BOOT_BIOS_HD_CNT     equ 0x907F   ; byte   number of BIOS hard disks
-
 
369
BOOT_BIOS_HD         equ 0x9080   ; Nbytes BIOS hard disks
-
 
370
BOOT_MEMMAP_BLOCK_CNT equ 0x9100  ; word   available physical memory map: number of blocks
335
PAT_VALUE           equ 0x00070106; (UC<<24)|(UCM<<16)|(WC<<8)|WB
Line 371... Line 336...
371
BOOT_MEMMAP_BLOCKS   equ 0x9104   ; available physical memory map: blocks, i.e. e820entry structs
336
 
372
MAX_MEMMAP_BLOCKS   equ 32
337
MAX_MEMMAP_BLOCKS   equ 32
373
 
338
 
Line 703... Line 668...
703
        size            dd ?   ;mapped size
668
        size            dd ?   ;mapped size
704
        refcount        dd ?   ;reference counter for this process and this lib
669
        refcount        dd ?   ;reference counter for this process and this lib
705
        parent          dd ?   ;DLLDESCR
670
        parent          dd ?   ;DLLDESCR
706
ends
671
ends
Line -... Line 672...
-
 
672
 
-
 
673
struct DQ
-
 
674
        lo dd ?
-
 
675
        hi dd ?
Line 707... Line 676...
707
 
676
ends
708
 
-
 
709
struct  BOOT_DATA
-
 
710
        bpp             dd ?
677
 
711
        scanline        dd ?
-
 
712
        vesa_mode       dd ?
-
 
713
        x_res           dd ?
-
 
714
        y_res           dd ?
-
 
715
        mouse_port      dd ?
-
 
716
        bank_switch     dd ?
-
 
717
        lfb             dd ?
-
 
718
        vesa_mem        dd ?
-
 
719
        log             dd ?
-
 
720
        direct_lfb      dd ?
-
 
721
        pci_data        dd ?
-
 
722
                        dd ?
-
 
723
        ide_base        dd ?
-
 
724
        mem_amount      dd ?
678
struct e820entry
725
        pages_count     dd ?
-
 
726
        pagemap_size    dd ?
679
        addr DQ ?
727
        kernel_max      dd ?
680
        size DQ ?
Line 728... Line 681...
728
        kernel_pages    dd ?
681
        type dd ?
729
        kernel_tables   dd ?
682
ends
730
 
683
 
731
        cpu_vendor      dd ?
-
 
732
                        dd ?
-
 
733
                        dd ?
684
struct  boot_data
734
        cpu_sign        dd ?
685
        bpp             db ?    ; bits per pixel
-
 
686
        pitch           dw ?    ; scanline length
-
 
687
                        db ?
-
 
688
                        dd ?
-
 
689
        vesa_mode       dw ?
735
        cpu_info        dd ?
690
        x_res           dw ?
-
 
691
        y_res           dw ?
-
 
692
                        dw ?
-
 
693
                        dd ?
-
 
694
        bank_switch     dd ?    ; Vesa 1.2 pm bank switch
-
 
695
        lfb             dd ?    ; Vesa 2.0 LFB address
-
 
696
        mtrr            db ?    ; 0 or 1: enable MTRR graphics acceleration
-
 
697
        launcher_start  db ?    ; 0 or 1: start the first app (right now it's LAUNCHER) after kernel is loaded
-
 
698
        debug_print     db ?    ; if nonzero, duplicates debug output to the screen
-
 
699
        dma             db ?    ; DMA write: 1=yes, 2=no
-
 
700
        pci_data        rb 8
-
 
701
                        rb 8
-
 
702
        shutdown_type   db ?    ; see sysfn 18.9
-
 
703
                        rb 15
-
 
704
        apm_entry       dd ?    ; entry point of APM BIOS
-
 
705
        apm_version     dw ?    ; BCD
-
 
706
        apm_flags       dw ?
-
 
707
                        rb 8
-
 
708
        apm_code_32     dw ?
-
 
709
        apm_code_16     dw ?
-
 
710
        apm_data_16     dw ?
-
 
711
        dev             db ?
-
 
712
                        db ?
-
 
713
        kernel_restart  dw ?
-
 
714
        bx_from_load    dw ?
-
 
715
        ; low byte: a,b,c,d -- hdX, r -- rdX
-
 
716
        ; high byte: symbol 'X' as in the line above, e.g. '1', not 1
-
 
717
        ; see loader_doc.txt for details
-
 
718
        acpi_rsdp       dd ?
-
 
719
                        rb 0x1f
-
 
720
        bios_hd_cnt     db ?    ; number of BIOS hard disks
-
 
721
        bios_hd         rb 0x80 ; BIOS hard disks
736
        cpu_caps        dd ?
722
        memmap_block_cnt dd ?   ; available physical memory map: number of blocks
Line -... Line 723...
-
 
723
        memmap_blocks   e820entry
-
 
724
                        rb sizeof.e820entry * (MAX_MEMMAP_BLOCKS - 1)
-
 
725
ends
-
 
726
 
-
 
727
virtual at BOOT_VARS
-
 
728
        BOOT_LO boot_data
-
 
729
end virtual
737
                        dd ?
730
virtual at OS_BASE + BOOT_VARS
738
                        dd ?
731
        BOOT boot_data
739
ends
732
end virtual
740
 
733
 
741
struct  display_t
734
struct  display_t
Line 970... Line 963...
970
        handler         dd ?   ;handler roututine
963
        handler         dd ?   ;handler roututine
971
        data            dd ?   ;user-specific data
964
        data            dd ?   ;user-specific data
972
        num_ints        dd ?   ;how many times handled
965
        num_ints        dd ?   ;how many times handled
973
ends
966
ends
Line 974... Line -...
974
 
-
 
975
struct DQ
-
 
976
        lo dd ?
-
 
977
        hi dd ?
-
 
978
ends
-
 
979
 
-
 
980
struct e820entry
-
 
981
        addr DQ ?
-
 
982
        size DQ ?
-
 
983
        type dd ?
-
 
984
ends
-