From 7b4ca7013c58a67f1ec41478b1bfc250b3485d28 Mon Sep 17 00:00:00 2001 From: Florian Lohoff Date: Sat, 29 Nov 2008 12:16:56 +0000 Subject: Add basic SNIRM support Add basic SNIRM support - Currently has a hardcoded boot location but you get the idea. --- common/prom.h | 7 +++++++ common/subarch.h | 1 + 2 files changed, 8 insertions(+) (limited to 'common') 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 -- cgit v1.2.3