2 * Creation Date: <2004/08/28 18:38:22 greg>
3 * Time-stamp: <2004/08/28 18:38:22 greg>
7 * Copyright (C) 2004, Greg Watson
11 * Copyright (C) 2003, 2004 Samuel Rydh (samuel@ibrium.se)
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
20 #include "kernel/kernel.h"
21 #include "arch/common/nvram.h"
22 #include "libopenbios/bindings.h"
23 #include "drivers/drivers.h"
24 #include "libc/vsprintf.h"
25 #include "libc/string.h"
26 #include "libc/byteorder.h"
27 #include "qemu/qemu.h"
32 unsigned long virt_offset = 0;
35 exit( int status __attribute__ ((unused)))
41 fatal_error( const char *err )
43 printk("Fatal error: %s\n", err );
48 panic( const char *err )
50 printk("Panic: %s\n", err );
57 printk( const char *fmt, ... )
64 i = vsnprintf(buf, sizeof(buf), fmt, args);
67 for( p=buf; *p; p++ ) {
70 if( do_indent++ == 1 ) {
80 int arch_nvram_size(void)
83 return macio_get_nvram_size();
90 void arch_nvram_put(char *buf)
99 void arch_nvram_get(char *buf)
102 macio_nvram_get(buf);