summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-04-05 17:05:57 -0400
committermidipix <writeonce@midipix.org>2015-04-05 17:05:57 -0400
commit296178913c5dfbc2b35842fc16ed680ef51fd402 (patch)
tree6720928dbc03c3d656229d2509eda38f6eb0628b /src/internal
parent20a5ca45ef2f5716e8f2dea42c7e8a6b3367619f (diff)
downloadmmglue-296178913c5dfbc2b35842fc16ed680ef51fd402.tar.bz2
mmglue-296178913c5dfbc2b35842fc16ed680ef51fd402.tar.xz
nt32: initial commit of core port files.
signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/nt32/libc.c7
-rw-r--r--src/internal/nt32/syscall.s5
2 files changed, 12 insertions, 0 deletions
diff --git a/src/internal/nt32/libc.c b/src/internal/nt32/libc.c
new file mode 100644
index 0000000..43face8
--- /dev/null
+++ b/src/internal/nt32/libc.c
@@ -0,0 +1,7 @@
+#include "../libc.h"
+
+/* todo: teach the linker to export weak symbols */
+#undef weak_alias
+#define weak_alias(old,new) extern __typeof(old) new __attribute__((alias(#old)))
+
+#include "../libc.c"
diff --git a/src/internal/nt32/syscall.s b/src/internal/nt32/syscall.s
new file mode 100644
index 0000000..3fcd5bb
--- /dev/null
+++ b/src/internal/nt32/syscall.s
@@ -0,0 +1,5 @@
+.text
+.global ___syscall
+
+___syscall:
+ jmp ___syscall_disp