mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 04:38:16 +00:00
Add procs_windows_amd64.asm for use with -no-crt
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
global __chkstk
|
||||||
|
global _tls_index
|
||||||
|
global _fltused
|
||||||
|
|
||||||
|
section .data
|
||||||
|
_tls_index: dd 0
|
||||||
|
_fltused: dd 0x9875
|
||||||
|
|
||||||
|
|
||||||
|
section .text
|
||||||
|
__chkstk: ; proc "c" (rawptr)
|
||||||
|
; TODO implement correctly
|
||||||
|
ret
|
||||||
@@ -20,13 +20,6 @@ windows_trap_type_assertion :: proc "contextless" () -> ! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
when ODIN_NO_CRT {
|
when ODIN_NO_CRT {
|
||||||
@(private, export, link_name="_tls_index")
|
@(require)
|
||||||
_tls_index: u32
|
foreign import crt_lib "procs_windows_amd64.asm"
|
||||||
|
|
||||||
@(private, export, link_name="_fltused")
|
|
||||||
_fltused: i32 = 0x9875
|
|
||||||
|
|
||||||
@(private, export, link_name="__chkstk")
|
|
||||||
__chkstk :: proc "c" (rawptr) {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user