aboutsummaryrefslogtreecommitdiff
path: root/base/runtime/entry_unix_no_crt_i386.asm
diff options
context:
space:
mode:
Diffstat (limited to 'base/runtime/entry_unix_no_crt_i386.asm')
-rw-r--r--base/runtime/entry_unix_no_crt_i386.asm18
1 files changed, 18 insertions, 0 deletions
diff --git a/base/runtime/entry_unix_no_crt_i386.asm b/base/runtime/entry_unix_no_crt_i386.asm
new file mode 100644
index 000000000..a61d56a16
--- /dev/null
+++ b/base/runtime/entry_unix_no_crt_i386.asm
@@ -0,0 +1,18 @@
+bits 32
+
+extern _start_odin
+global _start
+
+section .text
+
+;; NOTE(flysand): For description see the corresponding *_amd64.asm file
+;; also I didn't test this on x86-32
+_start:
+ xor ebp, rbp
+ pop ecx
+ mov eax, esp
+ and esp, -16
+ push eax
+ push ecx
+ call _start_odin
+ jmp $$ \ No newline at end of file