diff options
Diffstat (limited to 'runkernel.inc')
| -rw-r--r-- | runkernel.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runkernel.inc b/runkernel.inc index 1240444c..165af987 100644 --- a/runkernel.inc +++ b/runkernel.inc @@ -318,13 +318,14 @@ read_kernel: ; Move the stuff beyond the setup code to high memory at 100000h ; movzx esi,word [SetupSecs] ; Setup sectors - inc esi ; plus 1 boot sector - shl esi,9 ; Convert to bytes + inc si ; plus 1 boot sector + shl si,9 ; Convert to bytes mov ecx,8000h ; 32K sub ecx,esi ; Number of bytes to copy push ecx add esi,(real_mode_seg << 4) ; Pointer to source mov edi,100000h ; Copy to address 100000h + call bcopy ; Transfer to high memory ; On exit EDI -> where to load the rest |
