summaryrefslogtreecommitdiff
path: root/src/arch/i386/llshell/llshell.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/i386/llshell/llshell.inc')
-rw-r--r--src/arch/i386/llshell/llshell.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/arch/i386/llshell/llshell.inc b/src/arch/i386/llshell/llshell.inc
index 6c91661f83..6f8996717a 100644
--- a/src/arch/i386/llshell/llshell.inc
+++ b/src/arch/i386/llshell/llshell.inc
@@ -1,3 +1,20 @@
+
+#define RET_LABEL(label) \
+ jmp label##_done
+
+#define CALL_LABEL(label) \
+ jmp label ;\
+label##_done:
+
+#define CALLSP(func) \
+ lea 0f, %esp ; \
+ jmp func ; \
+0:
+
+#define RETSP \
+ jmp *%esp
+
+
#include "console.inc"
#include "pci.inc"
#include "ramtest.inc"