diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/openbios/arch/sparc64/boot.h | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/openbios/arch/sparc64/boot.h')
-rw-r--r-- | roms/openbios/arch/sparc64/boot.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/roms/openbios/arch/sparc64/boot.h b/roms/openbios/arch/sparc64/boot.h new file mode 100644 index 000000000..84a6db1d5 --- /dev/null +++ b/roms/openbios/arch/sparc64/boot.h @@ -0,0 +1,35 @@ +/* tag: openbios loader prototypes for sparc64 + * + * Copyright (C) 2004 Stefan Reinauer + * + * See the file "COPYING" for further information about + * the copyright and warranty status of this work. + */ + +#define INITRD_VIRT_ADDR 0x40c00000 +#define IMAGE_VIRT_ADDR 0x40000000 + +// linux_load.c +int linux_load(struct sys_info *info, const char *file, const char *cmdline); + +// boot.c +extern uint64_t kernel_image; +extern uint64_t kernel_size; +extern uint64_t initrd_image; +extern uint64_t initrd_size; +extern uint64_t qemu_cmdline; +extern uint64_t cmdline_size; +extern char *boot_device; +extern void boot(void); + +// sys_info.c +extern uint64_t qemu_mem_size; +extern void collect_sys_info(struct sys_info *info); + +// console.c +void ob_su_init(uint64_t base, uint64_t offset, int intr); +void cls(void); + +// lib.c +void ob_mmu_init(const char *cpuname, uint64_t ram_size); +void prom_debug_handler(void); |