git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel/x86_64 - Bugfixing
[tpg/acess2.git]
/
Kernel
/
arch
/
x86_64
/
start64.asm
diff --git
a/Kernel/arch/x86_64/start64.asm
b/Kernel/arch/x86_64/start64.asm
index
b0a8586
..
5027a1e
100644
(file)
--- a/
Kernel/arch/x86_64/start64.asm
+++ b/
Kernel/arch/x86_64/start64.asm
@@
-35,7
+35,7
@@
start64:
rep stosq
; Set kernel stack
rep stosq
; Set kernel stack
- mov rsp,
gInitialKernelStack
+ mov rsp,
0xFFFFA00000000000 + 0x10000
; Call main
mov edi, [gMultibootMagic - KERNEL_BASE]
; Call main
mov edi, [gMultibootMagic - KERNEL_BASE]
@@
-47,11
+47,6
@@
start64:
hlt
jmp .hlt
hlt
jmp .hlt
-[global GetRIP]
-GetRIP:
- mov rax, [rsp]
- ret
-
[global GetCPUNum]
GetCPUNum:
xor rax, rax
[global GetCPUNum]
GetCPUNum:
xor rax, rax
@@
-166,8
+161,3
@@
User_Syscall_Exit:
; RDI: Return Value
int 0xAC
; RDI: Return Value
int 0xAC
-[section .bss]
-[global gInitialKernelStack]
- resd 1024*4 ; 4 Pages
-gInitialKernelStack:
-
UCC
git Repository :: git.ucc.asn.au