diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-08-14 23:31:05 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-08-15 04:42:04 -0400 |
| commit | 5d080e25d5b9b69fda4fd9d340cc9571fc0d0939 (patch) | |
| tree | b467a435729daebaa2432dae9f6ce1fb67aac0b7 /lib/std/start.zig | |
| parent | da8fbcc2a9134c52474060ecc240c06e4a7df3cd (diff) | |
| download | zig-5d080e25d5b9b69fda4fd9d340cc9571fc0d0939.tar.gz zig-5d080e25d5b9b69fda4fd9d340cc9571fc0d0939.zip | |
start: fix passing comptime-only value to inline asm
Also fix fmt directive typo.
Diffstat (limited to 'lib/std/start.zig')
| -rw-r--r-- | lib/std/start.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig index ca6a5416eb..d30696e420 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -328,7 +328,7 @@ fn _start() callconv(.Naked) noreturn { \\ andi sp, sp, -16 \\ tail %[posixCallMainAndExit]@plt , - // zig fmt: off + // zig fmt: on .m68k => // Note that the - 8 is needed because pc in the jsr instruction points into the middle // of the jsr instruction. (The lea is 6 bytes, the jsr is 4 bytes.) @@ -426,7 +426,7 @@ fn _start() callconv(.Naked) noreturn { else => @compileError("unsupported arch"), } : - : [_start] "X" (_start), + : [_start] "X" (&_start), [posixCallMainAndExit] "X" (&posixCallMainAndExit), ); } |
