From dd4f527c54b2f8b0946b8b14d969d77a4febc3ab Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Wed, 30 Dec 2015 17:04:32 +0000 Subject: [PATCH] leave more space for extended BIOS data git-svn-id: svn://kolibrios.org@6016 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/blkdev/bd_drv.inc | 8 ++++---- kernel/trunk/core/v86.inc | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/trunk/blkdev/bd_drv.inc b/kernel/trunk/blkdev/bd_drv.inc index a481e630f9..a07057178b 100644 --- a/kernel/trunk/blkdev/bd_drv.inc +++ b/kernel/trunk/blkdev/bd_drv.inc @@ -178,7 +178,7 @@ bd_read: ja .notread sub eax, [bios_cur_sector] shl eax, 9 - add eax, (OS_BASE+0x9A000) + add eax, (OS_BASE+0x99000) push ecx esi mov esi, eax mov ecx, 512/4 @@ -214,7 +214,7 @@ bd_read: ;----------------------------------------------------------------- bd_write_cache_chain: pusha - mov edi, OS_BASE + 0x9A000 + mov edi, OS_BASE + 0x99000 movzx ecx, [cache_chain_size] push ecx shl ecx, 9-2 @@ -242,7 +242,7 @@ int13_call: ; In current implementation it is protected by common mutex 'ide_status' mov word [OS_BASE + 510h], 10h ; packet length mov word [OS_BASE + 512h], cx ; number of sectors - mov dword [OS_BASE + 514h], 9A000000h ; buffer 9A00:0000 + mov dword [OS_BASE + 514h], 99000000h ; buffer 9900:0000 mov dword [OS_BASE + 518h], eax and dword [OS_BASE + 51Ch], 0 push ebx ecx esi edi @@ -269,7 +269,7 @@ int13_call: @@: mov word [ebx+v86_regs.esi], 510h mov word [ebx+v86_regs.ss], 9000h - mov word [ebx+v86_regs.esp], 0A000h + mov word [ebx+v86_regs.esp], 09000h mov word [ebx+v86_regs.eip], 500h mov [ebx+v86_regs.eflags], 20200h mov esi, [sys_v86_machine] diff --git a/kernel/trunk/core/v86.inc b/kernel/trunk/core/v86.inc index e8f17acd34..fc01ae9b5e 100644 --- a/kernel/trunk/core/v86.inc +++ b/kernel/trunk/core/v86.inc @@ -89,10 +89,10 @@ v86_create: mov byte [0x504], 0x10 mov byte [0x505], 0xF4 - mov eax, 0x99000+PG_UWR - mov edi, page_tabs+0x99*4 + mov eax, 0x98000+PG_UWR + mov edi, page_tabs+0x98*4 mov edx, 0x1000 - mov ecx, 7 + mov ecx, 8 @@: stosd add eax, edx