summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/syscall_setup.S
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2024-05-22 13:00:41 -0400
committerJon Santmyer <jon@jonsantmyer.com>2024-05-22 13:00:41 -0400
commitace65b453151845bc361f21f3e5b651c35f9f126 (patch)
tree262ebd29b0ca1d8584f0b6f1efa7a00d9f4f3e43 /arch/x86_64/syscall_setup.S
parentf004c1ade8d617a82cea2fe249434cccb47a2358 (diff)
downloadjove-kernel-ace65b453151845bc361f21f3e5b651c35f9f126.tar.gz
jove-kernel-ace65b453151845bc361f21f3e5b651c35f9f126.tar.bz2
jove-kernel-ace65b453151845bc361f21f3e5b651c35f9f126.zip
massive refactor for mp and organizationHEADmaster
Diffstat (limited to 'arch/x86_64/syscall_setup.S')
-rw-r--r--arch/x86_64/syscall_setup.S41
1 files changed, 0 insertions, 41 deletions
diff --git a/arch/x86_64/syscall_setup.S b/arch/x86_64/syscall_setup.S
deleted file mode 100644
index 4f5c6f0..0000000
--- a/arch/x86_64/syscall_setup.S
+++ /dev/null
@@ -1,41 +0,0 @@
-.extern _kernel_task_sp
-.extern syscall_handler
-
-.global syscall_entry
-.type syscall_entry @function
-syscall_entry:
- swapgs
- movq %rsp, %rax
- movq _kernel_task_bp, %rsp
- pushq %rax
- pushq %rbp
- pushq %rcx
- pushq %r11
- call syscall_handler
- popq %r11
- popq %rcx
- popq %rbp
- popq %rsp
- swapgs
- sysretq
-
-.global syscall_setup_syscall
-.type syscall_setup_syscall @function
-syscall_setup_syscall:
- movq $0xc0000080, %rcx
- rdmsr
- or $1, %eax
- wrmsr
-
- movq $0xc0000081, %rcx
- rdmsr
- mov $0x001b0008, %edx
- wrmsr
-
- movq $0xc0000082, %rcx
- leaq syscall_entry, %rdx
- mov %edx, %eax
- shr $32, %rdx
- wrmsr
-
- retq