blob: 18f80398fec62ecc3165ef187781e11099c5d77d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
;; /*
;; * ========================================================
;; *
;; * NewOS
;; * Copyright SoftwareLabs, all rights reserved.
;; *
;; * ========================================================
;; */
[bits 64]
[global rt_get_current_context]
[global rt_do_context_switch]
section .text
;; writes to rdx the stackframe inside rcx.
;; rcx: Stack Pointer
;; rdx: SMP core address.
rt_do_context_switch:
retfq
;; gets the current stack frame.
rt_get_current_context:
retfq
|