summaryrefslogtreecommitdiffstats
path: root/test/hello_world/hello_kernel
Commit message (Collapse)AuthorAgeFilesLines
* test: Simplify build process for hello and sreset testsJoel Stanley2018-05-091-29/+0
| | | | | | | | | | | | | | | | | | | | | | | Link with ld instead of gcc so we can build with clang as cc. Remove the linker script and unnecessary flags. The application links just fine without them. Add cflags required by clang in order to build for the correct target. Remove the dependency file generation. The assembly files don't include any headers, so they weren't doing anything. Simplify clean rule, as the $(RM) alias does -f for us, and we no longer have .d files. Build tested on ppc64le and amd64. Booted in Qemu on both using: qemu-system-ppc64 -M powernv -nodefaults -nographic -serial stdio \ -kernel test/hello_world/hello_kernel/hello_kernel Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* test/hello_world: always use shutdown type zeroOliver O'Halloran2016-07-221-0/+1
| | | | | | | | | | | The hello world kernel fails to correctly set r3 before making the shutdown opal call. On FSP machines only shutdown types 0 and 1 are recognised as valid shutdown types. If any other type is specified (in r3) the call is rejected with an OPAL_PARAMETER error and the machine will continue running. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* test/hello_world: Call OPAL_CEC_POWER_DOWN at endMichael Neuling2016-05-101-3/+17
| | | | | | | | | | | | | | | | | Call OPAL_CEC_POWER_DOWN at end rather than using a raw attn instruction. We are doing this since attn should be disabled in the host kernel otherwise userspace may crash the machine by calling it. We are now doing two opal calls so need to save some registers which are volatile over opal calls. This bloats the code from 10 instructions up to 16. May god have mercy on my soul. Signed-off-by: Michael Neuling <mikey@neuling.org> [stewart@linux.vnet.ibm.com: change hello world test run to look for power down rather than ATTN] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* test/hello_world: Remove include fileMichael Neuling2015-06-011-23/+0
| | | | | Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* test/hello_world: Cleanup codeMichael Neuling2015-06-011-17/+15
| | | | | | | | | | | Document it a lot more. Remove magic numbers. Remove include file. Make it more flexible. ... and most importantly remove the horrendous bloat. From 17 instructions down to 10! Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Add hello_world tiny payload to test with mambo (if available)Stewart Smith2014-12-153-0/+102
Just calls OPAL_CONSOLE_WRITE with "Hello World!" and with mambo we can execute this tiny boot test in not much time at all. Good little sanity check. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
OpenPOWER on IntegriCloud