| ... | @@ -71,9 +71,9 @@ pub fn clone( | ... | @@ -71,9 +71,9 @@ pub fn clone( |
| 71 | stack: usize, | 71 | stack: usize, |
| 72 | flags: u32, | 72 | flags: u32, |
| 73 | arg: usize, | 73 | arg: usize, |
| 74 | ptid: *i32, | 74 | ptid: ?*i32, |
| 75 | tp: usize, // aka tls | 75 | tp: usize, // aka tls |
| 76 | ctid: *i32, | 76 | ctid: ?*i32, |
| 77 | ) usize { | 77 | ) usize { |
| 78 | // Can't directly call a naked function; cast to C calling convention first. | 78 | // Can't directly call a naked function; cast to C calling convention first. |
| 79 | return @as(*const fn ( | 79 | return @as(*const fn ( |
| ... | @@ -81,9 +81,9 @@ pub fn clone( | ... | @@ -81,9 +81,9 @@ pub fn clone( |
| 81 | usize, | 81 | usize, |
| 82 | u32, | 82 | u32, |
| 83 | usize, | 83 | usize, |
| 84 | *i32, | 84 | ?*i32, |
| 85 | usize, | 85 | usize, |
| 86 | *i32, | 86 | ?*i32, |
| 87 | ) callconv(.C) usize, @ptrCast(&syscall_bits.clone))(func, stack, flags, arg, ptid, tp, ctid); | 87 | ) callconv(.C) usize, @ptrCast(&syscall_bits.clone))(func, stack, flags, arg, ptid, tp, ctid); |
| 88 | } | 88 | } |
| 89 | | 89 | |