- ; Save Thread Pointer
- mov rax, dr0
- push rax
-
- mov rdi, dr1 ; Get the CPU Number
- mov rsi, rsp ; Save stack pointer
- mov rdx, SchedulerIRQ.restoreState
- ; Call the Scheduler
- call Proc_Scheduler
-.restoreState:
-
- ; Restore Thread Pointer
- pop rax
- mov dr0, rax
-
- ; Send EOI (To either the APIC or the PIC)
- %if USE_MP
- test ebx, ebx
- jnz .sendEOI
+ call Time_UpdateTimestamp
+
+ %if 0
+[section .rodata]
+csUserSS: db "User SS: 0x%x",0
+[section .text]
+ mov rdi, csUserSS
+ mov rsi, [rsp+0x80+0x20]
+ call Log