| ... | @@ -779,17 +779,11 @@ pub fn default_panic(msg: []const u8, error_return_trace: ?*StackTrace, ret_addr | ... | @@ -779,17 +779,11 @@ pub fn default_panic(msg: []const u8, error_return_trace: ?*StackTrace, ret_addr |
| 779 | : | 779 | : |
| 780 | : [number] "{a7}" (64), | 780 | : [number] "{a7}" (64), |
| 781 | [arg1] "{a0}" (1), | 781 | [arg1] "{a0}" (1), |
| 782 | [arg2] "{a1}" (@intFromPtr("panicking!\n")), | 782 | [arg2] "{a1}" (@intFromPtr(msg.ptr)), |
| 783 | [arg3] "{a2}" ("panicking!\n".len), | 783 | [arg3] "{a2}" (msg.len), |
| 784 | : "rcx", "r11", "memory" | 784 | : "rcx", "r11", "memory" |
| 785 | ); | 785 | ); |
| 786 | asm volatile ("ecall" | 786 | std.posix.exit(127); |
| 787 | : | | |
| 788 | : [number] "{a7}" (94), | | |
| 789 | [arg1] "{a0}" (127), | | |
| 790 | : "rcx", "r11", "memory" | | |
| 791 | ); | | |
| 792 | unreachable; | | |
| 793 | } | 787 | } |
| 794 | | 788 | |
| 795 | switch (builtin.os.tag) { | 789 | switch (builtin.os.tag) { |