1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00

It was completely *********

This commit is contained in:
Adrien Bourmault 2019-05-11 20:55:46 +02:00
parent 5f539e169f
commit d7abbcf608
2 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,6 @@ _loader64:
call write call write
mov qword [newKernelEnd], KERNEL_STACK mov qword [newKernelEnd], KERNEL_STACK
mov qword [realKernelEnd], realKernelEnd
mov rdi, [mbInfo] mov rdi, [mbInfo]
mov rsi, [mbMagic] mov rsi, [mbMagic]
mov rdx, GDT64.code mov rdx, GDT64.code

View File

@ -125,6 +125,7 @@ InitStack:
push rdi push rdi
;; Begin address to fill and length ;; Begin address to fill and length
mov qword [realKernelEnd], kernelEnd
mov rdi, kernelEnd mov rdi, kernelEnd
mov rcx, KERNEL_STACK - kernelEnd - 16 mov rcx, KERNEL_STACK - kernelEnd - 16
; stop before the return address ; stop before the return address