summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit/AMD64/HardwareAPIC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Private/HALKit/AMD64/HardwareAPIC.cpp')
-rw-r--r--Private/HALKit/AMD64/HardwareAPIC.cpp62
1 files changed, 29 insertions, 33 deletions
diff --git a/Private/HALKit/AMD64/HardwareAPIC.cpp b/Private/HALKit/AMD64/HardwareAPIC.cpp
index f78cfe3b..9a058eae 100644
--- a/Private/HALKit/AMD64/HardwareAPIC.cpp
+++ b/Private/HALKit/AMD64/HardwareAPIC.cpp
@@ -11,36 +11,32 @@
// bugs = 0
-namespace hCore
-{
- // @brief wakes up thread.
- // wakes up thread from hang.
- void rt_wakeup_thread(HAL::StackFrame* stack)
- {
- __asm__ volatile ("cli");
-
- stack->Rbp = stack->R15;
- stack->Rsi = stack->Rbp;
-
- __asm__ volatile ("sti");
- }
-
- static void __rt_hang_proc(void)
- {
- while (1)
- ;
- }
-
- // @brief makes thread sleep.
- // hooks and hangs thread to prevent code from executing.
- void rt_hang_thread(HAL::StackFrame* stack)
- {
- __asm__ volatile ("cli");
-
- stack->R15 = stack->Rbp;
- stack->Rbp = (HAL::Reg)&__rt_hang_proc;
- stack->Rsp = stack->Rbp;
-
- __asm__ volatile ("sti");
- }
-} \ No newline at end of file
+namespace hCore {
+// @brief wakes up thread.
+// wakes up thread from hang.
+void rt_wakeup_thread(HAL::StackFrame* stack) {
+ __asm__ volatile("cli");
+
+ stack->Rbp = stack->R15;
+ stack->Rsi = stack->Rbp;
+
+ __asm__ volatile("sti");
+}
+
+static void __rt_hang_proc(void) {
+ while (1)
+ ;
+}
+
+// @brief makes thread sleep.
+// hooks and hangs thread to prevent code from executing.
+void rt_hang_thread(HAL::StackFrame* stack) {
+ __asm__ volatile("cli");
+
+ stack->R15 = stack->Rbp;
+ stack->Rbp = (HAL::Reg)&__rt_hang_proc;
+ stack->Rsp = stack->Rbp;
+
+ __asm__ volatile("sti");
+}
+} // namespace hCore