summaryrefslogtreecommitdiffstats
path: root/kernel.c
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-05-13 23:14:01 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-05-13 23:14:01 -0500
commit59a7c32126f7aa856221d080fa9eaba3d8bde1d2 (patch)
treef26faf6a7e61b6f6ea2de67ecae8258716a2b493 /kernel.c
downloadtalos-hostboot-59a7c32126f7aa856221d080fa9eaba3d8bde1d2.tar.gz
talos-hostboot-59a7c32126f7aa856221d080fa9eaba3d8bde1d2.zip
Boot, set 64bit mode, relocate from ROM.
Diffstat (limited to 'kernel.c')
-rw-r--r--kernel.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel.c b/kernel.c
new file mode 100644
index 000000000..fe019e583
--- /dev/null
+++ b/kernel.c
@@ -0,0 +1,14 @@
+
+void _main(void)
+{
+ unsigned int i = 100;
+ while(i != 0)
+ {
+ asm volatile("eieio");
+ i--;
+ }
+
+ while(1)
+ {
+ }
+}
OpenPOWER on IntegriCloud