diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-03-30 20:45:36 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-04-01 12:08:14 +1100 |
commit | efc1ddab688720063a882f0939e9c6eff91387b1 (patch) | |
tree | ab449d6f57893d11387c5dc49730e689fed0b921 /asm | |
parent | 16f965ed2ce85eed76592a82f89964fb20bbe5c9 (diff) | |
download | skiboot-efc1ddab688720063a882f0939e9c6eff91387b1.zip skiboot-efc1ddab688720063a882f0939e9c6eff91387b1.tar.gz skiboot-efc1ddab688720063a882f0939e9c6eff91387b1.tar.bz2 |
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')
-rw-r--r-- | asm/misc.S | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -69,3 +69,8 @@ mambo_write: .long 0x000eaeb0 blr +.global mambo_sim_exit +mambo_sim_exit: + li %r3, 31 /* aka. SimExitCode */ + .long 0x000eaeb0 + b . |