aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorFlorian Lohoff <flo@rfc822.org>2008-11-29 12:16:56 +0000
committerGuido Günther <agx@sigxcpu.org>2009-04-26 15:26:27 +0200
commit7b4ca7013c58a67f1ec41478b1bfc250b3485d28 (patch)
treef759f75d5ac13dda6c581c3f6357d976b6cb593a /common
parent4ce5705be57a10598775d14cc1b8a6296df9c653 (diff)
Add basic SNIRM support
Add basic SNIRM support - Currently has a hardcoded boot location but you get the idea.
Diffstat (limited to 'common')
-rw-r--r--common/prom.h7
-rw-r--r--common/subarch.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/common/prom.h b/common/prom.h
index 1a3acf5..9f81e76 100644
--- a/common/prom.h
+++ b/common/prom.h
@@ -1,4 +1,11 @@
+
+/*
+ * Gets called before anything else - even the first printf
+ *
+ */
+void prom_init(void );
+
void prom_restart(void );
void prom_return_interactive(void );
void prom_flush_cache_all(void );
diff --git a/common/subarch.h b/common/subarch.h
index 28e2d1d..284d6ed 100644
--- a/common/subarch.h
+++ b/common/subarch.h
@@ -10,5 +10,6 @@
#define PAGE_SIZE 4096
#define STACK_PAGES 16
#define KSEG0ADDR(addr) (((addr) & 0x1fffffff) | 0x80000000)
+#define KSEG1ADDR(addr) (((addr) & 0x1fffffff) | 0xa0000000)
#endif