r3711 continued, no binary changes

git-svn-id: svn://kolibrios.org@3726 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2013-06-28 08:45:59 +00:00
parent 38f0b2a169
commit 436a7c0974
2 changed files with 275 additions and 275 deletions

View File

@ -358,7 +358,7 @@ high_code:
call mutex_init call mutex_init
; SAVE REAL MODE VARIABLES ; SAVE REAL MODE VARIABLES
xor eax,eax xor eax, eax
mov ax, [BOOT_VAR + BOOT_IDE_PI_16] mov ax, [BOOT_VAR + BOOT_IDE_PI_16]
mov [IDEContrProgrammingInterface], ax mov [IDEContrProgrammingInterface], ax
mov ax, [BOOT_VAR + BOOT_IDE_BASE_ADDR] mov ax, [BOOT_VAR + BOOT_IDE_BASE_ADDR]
@ -366,28 +366,28 @@ high_code:
mov ax, [BOOT_VAR + BOOT_IDE_BAR0_16] mov ax, [BOOT_VAR + BOOT_IDE_BAR0_16]
mov [IDE_BAR0_val], ax mov [IDE_BAR0_val], ax
cmp ax,0 cmp ax, 0
je @f je @f
cmp ax,1 cmp ax, 1
je @f je @f
and ax,0xfff0 and ax, 0xfff0
mov [StandardATABases],ax mov [StandardATABases], ax
mov [hd_address_table],eax mov [hd_address_table], eax
mov [hd_address_table+8],eax mov [hd_address_table+8], eax
@@: @@:
mov ax, [BOOT_VAR + BOOT_IDE_BAR1_16] mov ax, [BOOT_VAR + BOOT_IDE_BAR1_16]
mov [IDE_BAR1_val], ax mov [IDE_BAR1_val], ax
mov ax, [BOOT_VAR + BOOT_IDE_BAR2_16] mov ax, [BOOT_VAR + BOOT_IDE_BAR2_16]
mov [IDE_BAR2_val], ax mov [IDE_BAR2_val], ax
cmp ax,0 cmp ax, 0
je @f je @f
cmp ax,1 cmp ax, 1
je @f je @f
and ax,0xfff0 and ax, 0xfff0
mov [StandardATABases+2],ax mov [StandardATABases+2], ax
mov [hd_address_table+16],eax mov [hd_address_table+16], eax
mov [hd_address_table+24],eax mov [hd_address_table+24], eax
@@: @@:
mov ax, [BOOT_VAR + BOOT_IDE_BAR3_16] mov ax, [BOOT_VAR + BOOT_IDE_BAR3_16]
mov [IDE_BAR3_val], ax mov [IDE_BAR3_val], ax
@ -1067,7 +1067,7 @@ end if
cmp [IDEContrRegsBaseAddr], 0 cmp [IDEContrRegsBaseAddr], 0
setnz [dma_hdd] setnz [dma_hdd]
cmp [dma_hdd],0 cmp [dma_hdd], 0
je .print_pio je .print_pio
.print_dma: .print_dma:
DEBUGF 1, "K : IDE DMA mode\n" DEBUGF 1, "K : IDE DMA mode\n"
@ -1634,26 +1634,26 @@ endg
dec ecx dec ecx
jnz noprma jnz noprma
mov eax,[hd_address_table] mov eax, [hd_address_table]
mov [cdbase], eax ;0x1f0 mov [cdbase], eax ;0x1f0
mov [cdid], 0xa0 mov [cdid], 0xa0
noprma: noprma:
dec ecx dec ecx
jnz noprsl jnz noprsl
mov eax,[hd_address_table] mov eax, [hd_address_table]
mov [cdbase], eax ;0x1f0 mov [cdbase], eax ;0x1f0
mov [cdid], 0xb0 mov [cdid], 0xb0
noprsl: noprsl:
dec ecx dec ecx
jnz nosema jnz nosema
mov eax,[hd_address_table+16] mov eax, [hd_address_table+16]
mov [cdbase], eax ;0x170 mov [cdbase], eax ;0x170
mov [cdid], 0xa0 mov [cdid], 0xa0
nosema: nosema:
dec ecx dec ecx
jnz nosesl jnz nosesl
mov eax,[hd_address_table+16] mov eax, [hd_address_table+16]
mov [cdbase], eax ;0x170 mov [cdbase], eax ;0x170
mov [cdid], 0xb0 mov [cdid], 0xb0
nosesl: nosesl:
@ -1683,7 +1683,7 @@ endg
cmp ecx, 1 cmp ecx, 1
jnz noprmahd jnz noprmahd
mov eax,[hd_address_table] mov eax, [hd_address_table]
mov [hdbase], eax ;0x1f0 mov [hdbase], eax ;0x1f0
and dword [hdid], 0x0 and dword [hdid], 0x0
mov dword [hdpos], ecx mov dword [hdpos], ecx
@ -1692,7 +1692,7 @@ endg
cmp ecx, 2 cmp ecx, 2
jnz noprslhd jnz noprslhd
mov eax,[hd_address_table] mov eax, [hd_address_table]
mov [hdbase], eax ;0x1f0 mov [hdbase], eax ;0x1f0
mov [hdid], 0x10 mov [hdid], 0x10
mov dword [hdpos], ecx mov dword [hdpos], ecx
@ -1701,7 +1701,7 @@ endg
cmp ecx, 3 cmp ecx, 3
jnz nosemahd jnz nosemahd
mov eax,[hd_address_table+16] mov eax, [hd_address_table+16]
mov [hdbase], eax ;0x170 mov [hdbase], eax ;0x170
and dword [hdid], 0x0 and dword [hdid], 0x0
mov dword [hdpos], ecx mov dword [hdpos], ecx
@ -1710,7 +1710,7 @@ endg
cmp ecx, 4 cmp ecx, 4
jnz noseslhd jnz noseslhd
mov eax,[hd_address_table+16] mov eax, [hd_address_table+16]
mov [hdbase], eax ;0x170 mov [hdbase], eax ;0x170
mov [hdid], 0x10 mov [hdid], 0x10
mov dword [hdpos], ecx mov dword [hdpos], ecx