summaryrefslogtreecommitdiffstats
path: root/asm/misc.S
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2015-03-30 20:45:36 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-04-01 12:08:14 +1100
commitefc1ddab688720063a882f0939e9c6eff91387b1 (patch)
treeab449d6f57893d11387c5dc49730e689fed0b921 /asm/misc.S
parent16f965ed2ce85eed76592a82f89964fb20bbe5c9 (diff)
downloadblackbird-skiboot-efc1ddab688720063a882f0939e9c6eff91387b1.tar.gz
blackbird-skiboot-efc1ddab688720063a882f0939e9c6eff91387b1.zip
core: Add support for cec_power_down() on mambo
Currently when running on mambo OPAL_CEC_POWER_DOWN doesn't work, the simulator keeps running. We can use the magic mambo support instruction with the right opcode to ask mambo to stop the simulation. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'asm/misc.S')
-rw-r--r--asm/misc.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/asm/misc.S b/asm/misc.S
index bbabebc3..5e47c982 100644
--- a/asm/misc.S
+++ b/asm/misc.S
@@ -69,3 +69,8 @@ mambo_write:
.long 0x000eaeb0
blr
+.global mambo_sim_exit
+mambo_sim_exit:
+ li %r3, 31 /* aka. SimExitCode */
+ .long 0x000eaeb0
+ b .
OpenPOWER on IntegriCloud