aboutsummaryrefslogtreecommitdiff
path: root/sys/include/arch/amd64/frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include/arch/amd64/frame.h')
-rw-r--r--sys/include/arch/amd64/frame.h56
1 files changed, 1 insertions, 55 deletions
diff --git a/sys/include/arch/amd64/frame.h b/sys/include/arch/amd64/frame.h
index 15c4143..6d04fdf 100644
--- a/sys/include/arch/amd64/frame.h
+++ b/sys/include/arch/amd64/frame.h
@@ -56,59 +56,5 @@ struct trapframe {
uint64_t rsp;
uint64_t ss;
};
-#else
-/*
- * XXX: Before this macro is invoked,
- * you should determine if an error
- * code will be present already on the
- * stack. If not, push a null qword as
- * padding (e.g push $0).
- *
- * There *must* be a value used
- * as an error code whether that be
- * a real error code or just padding.
- *
- * Failing to do so will result in
- * undefined behaviour.
- *
- */
-.macro push_trapframe trapno
- push %r15
- push %r14
- push %r13
- push %r12
- push %r11
- push %r10
- push %r9
- push %r8
- push %rbp
- push %rdi
- push %rsi
- push %rbx
- push %rdx
- push %rcx
- push %rax
- push \trapno
-.endm
-
-.macro pop_trapframe
- add $8, %rsp /* Trapno */
- pop %rax
- pop %rcx
- pop %rdx
- pop %rbx
- pop %rsi
- pop %rdi
- pop %rbp
- pop %r8
- pop %r9
- pop %r10
- pop %r12
- pop %r13
- pop %r14
- pop %r15
- add $8, %rsp /* Pop error code */
- iretq
-.endm
-#endif /* !defined(__ASSEMBLER__) */
+#endif /* !defined(__ASSEMBLER__) */
#endif /* !_AMD64_FRAME_H_ */