diff options
| author | LemonBoy <thatlemon@gmail.com> | 2019-12-23 21:52:06 +0100 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2020-01-02 18:53:16 +0100 |
| commit | 563d9ebfe597b313b265a5a30296c081fe35d87a (patch) | |
| tree | 9b67e280b607498d1592fbc420d10ec39d835440 /lib/std/os/linux/x86_64.zig | |
| parent | 7bd80f207147167821634e16983edf9e9b115c9f (diff) | |
| download | zig-563d9ebfe597b313b265a5a30296c081fe35d87a.tar.gz zig-563d9ebfe597b313b265a5a30296c081fe35d87a.zip | |
Implement the callconv() annotation
Diffstat (limited to 'lib/std/os/linux/x86_64.zig')
| -rw-r--r-- | lib/std/os/linux/x86_64.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os/linux/x86_64.zig b/lib/std/os/linux/x86_64.zig index d037b3c6ae..d6067f9b18 100644 --- a/lib/std/os/linux/x86_64.zig +++ b/lib/std/os/linux/x86_64.zig @@ -90,7 +90,7 @@ pub extern fn clone(func: extern fn (arg: usize) u8, stack: usize, flags: usize, pub const restore = restore_rt; -pub nakedcc fn restore_rt() void { +pub fn restore_rt() callconv(.Naked) void { return asm volatile ("syscall" : : [number] "{rax}" (@as(usize, SYS_rt_sigreturn)) |
