mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
start: Add clrrdi to align the stack pointer on powerpc64.
This commit is contained in:
parent
7bc78967b4
commit
81232f7c91
@ -340,10 +340,10 @@ fn _start() callconv(.Naked) noreturn {
|
||||
,
|
||||
.powerpc64, .powerpc64le =>
|
||||
// Setup the initial stack frame and clear the back chain pointer.
|
||||
// TODO: Support powerpc64 (big endian) on ELFv2.
|
||||
\\ addis 2, 12, .TOC. - _start@ha
|
||||
\\ addi 2, 2, .TOC. - _start@l
|
||||
\\ mr 3, 1
|
||||
\\ clrrdi 1, 1, 4
|
||||
\\ li 0, 0
|
||||
\\ stdu 0, -32(1)
|
||||
\\ mtlr 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user