1
/* Copyright 2013-2014 IBM Corp.
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
7
* http://www.apache.org/licenses/LICENSE-2.0
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
21
Because skiboot has its own stack, we don't even need that!
22
All we need to do is make an OPAL call to write to the console.
30
* Save some values passed in from skiboot into registers that are
31
* non-volatile over OPAL calls.
33
* r9 is the OPAL entry point point
39
here: mflr %r8 /* work out where we are running */
41
li %r0, 1 /* OPAL_CONSOLE_WRITE */
42
li %r3, 0 /* terminal 0 */
43
addi %r4, %r8, len - here /* ptr to length of string */
44
addi %r5, %r8, str - here /* ptr to string start */
49
li %r0, 5 /* OPAL_CEC_POWER_DOWN */
50
li %r3, 0 /* normal shutdown */
55
/* We shouldn't get here but if we do, just wait here */
62
.string "Hello World!\n"