acpi: a hopeless attempt to optimize the kernel memory

git-svn-id: svn://kolibrios.org@3629 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2013-06-09 07:32:33 +00:00
parent d836699ddd
commit c5b8b35a47
2 changed files with 41 additions and 11 deletions

View File

@ -179,10 +179,22 @@ struct TSS
_io_map_1 rb 4096 _io_map_1 rb 4096
ends ends
PARTITION_COUNT equ 64
DRIVE_DATA_SIZE equ (16+PARTITION_COUNT*100)
OS_BASE equ 0x80000000 OS_BASE equ 0x80000000
TASK_COUNT equ (CURRENT_TASK+0x04)
TASK_BASE equ (CURRENT_TASK+0x10)
TASK_DATA equ (CURRENT_TASK+0x20)
TASK_EVENT equ (CURRENT_TASK+0x20)
FDD_BUFF equ (OS_BASE+0x000D000)
sys_pgmap equ (OS_BASE+0x0324000) sys_pgdir equ (OS_BASE+0x006F000)
VGABasePtr equ (OS_BASE+0x00A0000)
CLEAN_ZONE equ (_CLEAN_ZONE-OS_BASE)
IDE_DMA equ (_IDE_DMA-OS_BASE)
UPPER_KERNEL_PAGES equ (OS_BASE+0x0400000) UPPER_KERNEL_PAGES equ (OS_BASE+0x0400000)

View File

@ -384,6 +384,10 @@ end if
REDRAW_BACKGROUND rb 4 REDRAW_BACKGROUND rb 4
draw_data: rb 16*256
BPSLine_calc_area rd 1440
d_width_calc_area rd 1140
mouseunder rd 16*24 mouseunder rd 16*24
MOUSE_PICTURE rd 1 MOUSE_PICTURE rd 1
@ -555,23 +559,41 @@ NumBiosDisks rd 1
BiosDisksData rb 200h BiosDisksData rb 200h
BiosDiskCaches rb 80h*(cache_ide1-cache_ide0) BiosDiskCaches rb 80h*(cache_ide1-cache_ide0)
BiosDiskPartitions rd 80h BiosDiskPartitions rd 80h
align 16 align 16
DRIVE_DATA: rb DRIVE_DATA_SIZE DRIVE_DATA: rb DRIVE_DATA_SIZE
IncludeUGlobals
uglobals_size = $ - endofcode
if ~ lang eq sp
diff16 "end of .bss",0,$
end if
org (OS_BASE+0x0100000)
RAMDISK: rb 2880*512
RAMDISK_FAT: rb 2856*2
FLOPPY_FAT: rb 2856*2
_CLEAN_ZONE:
align 4096
_IDE_DMA rb 16*512
BgrAuxTable rb 32768
BUTTON_INFO rb 64*1024
RESERVED_PORTS: rb 64*1024
BOOT_VAR: rb 64*1024
sys_pgmap: rb 1024*1024/8
align 4096 align 4096
SLOT_BASE: rb 64*1024 SLOT_BASE: rb 64*1024
RESERVED_PORTS: rb 64*1024
FLOPPY_BUFF: rb 16*1024 FLOPPY_BUFF: rb 16*1024
BUTTON_INFO: rb 16*1024
BgrAuxTable: rb 32*1024
;IDE_DMA: rb 32*1024
window_data: rb 8192 window_data: rb 8192
CURRENT_TASK: rb 8192 CURRENT_TASK: rb 8192
draw_data: rb 4096
WIN_STACK: rb 0x400 WIN_STACK: rb 0x400
WIN_POS: rb 0x800 WIN_POS: rb 0x800
@ -579,8 +601,4 @@ CDDataBuf: rb 4096
idts rq 0x41 idts rq 0x41
RAMDISK_FAT: rb 2856*2 +16
FLOPPY_FAT: rb 2856*2 +16
IncludeUGlobals