Add missing thunk function for cfarcall
authorH. Peter Anvin <hpa@zytor.com>
Wed, 21 Nov 2007 05:11:35 +0000 (21:11 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 21 Nov 2007 05:11:35 +0000 (21:11 -0800)
com32/lib/sys/cfarcall.c [new file with mode: 0644]

diff --git a/com32/lib/sys/cfarcall.c b/com32/lib/sys/cfarcall.c
new file mode 100644 (file)
index 0000000..7c681fc
--- /dev/null
@@ -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);
+}