Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
2f6e73fc
Commit
2f6e73fc
authored
Nov 22, 2004
by
desrt
Browse files
[project @ 2004-11-22 09:18:03 by desrt]
#ifdef powerpc64: fixed errors in run/return code revealed by testing
parent
0a565be5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/rts/StgCRun.c
View file @
2f6e73fc
...
...
@@ -654,9 +654,20 @@ static void StgRunIsImplementedInAssembler(void)
// r13 thread local state (never modified, don't need to save)
// r14-r31 callee-save
__asm__
volatile
(
"
\t
.globl StgRun
\n
"
"
\t
.type StgRun,@function
\n
"
".section
\"
.opd
\"
,
\"
aw
\"\n
"
".align 3
\n
"
".globl StgRun
\n
"
"StgRun:
\n
"
"
\t
.quad
\t
.StgRun,.TOC.@tocbase,0
\n
"
"
\t
.size StgRun,24
\n
"
".globl StgReturn
\n
"
"StgReturn:
\n
"
"
\t
.quad
\t
.StgReturn,.TOC.@tocbase,0
\n
"
"
\t
.size StgReturn,24
\n
"
".previous
\n
"
".globl .StgRun
\n
"
".type .StgRun,@function
\n
"
".StgRun:
\n
"
"
\t
mflr 0
\n
"
"
\t
mr 5, 1
\n
"
"
\t
std 0, 16(1)
\n
"
...
...
@@ -703,9 +714,9 @@ static void StgRunIsImplementedInAssembler(void)
"
\t
ld 3, 0(3)
\n
"
"
\t
mtctr 3
\n
"
"
\t
bctr
\n
"
".globl StgReturn
\n
"
"
\t
.type StgReturn,@function
\n
"
"StgReturn:
\n
"
".globl
.
StgReturn
\n
"
".type
.
StgReturn,@function
\n
"
"
.
StgReturn:
\n
"
"
\t
mr 3,14
\n
"
"
\t
la 5, %0(1)
\n
"
// load address == addi r5, r1, %0
"
\t
ld 2, -296(5)
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment