summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-11-20 21:11:35 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-11-20 21:11:35 -0800
commit042fb0a89f7b0d8f532656300605c2c75fc9ba36 (patch)
tree28e71614e039bd55e4ad70696ba50802ae5c7729
parentbac14e6c00b88c042fe4663ffa2258fdacb108ef (diff)
downloadsyslinux-042fb0a89f7b0d8f532656300605c2c75fc9ba36.tar.gz
Add missing thunk function for cfarcall
-rw-r--r--com32/lib/sys/cfarcall.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/com32/lib/sys/cfarcall.c b/com32/lib/sys/cfarcall.c
new file mode 100644
index 00000000..7c681fc5
--- /dev/null
+++ b/com32/lib/sys/cfarcall.c
@@ -0,0 +1,11 @@
+/*
+ * cfarcall.c
+ */
+
+#include <com32.h>
+
+int __cfarcall(uint16_t cs, uint16_t ip,
+ const void *stack, uint32_t stack_size)
+{
+ return __com32.cs_cfarcall((cs << 16)+ip, stack, stack_size);
+}