aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/sh_bios.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-12 00:50:43 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-01-12 00:50:43 -0500
commit191d0d24b632eb69767705acded5cbf7449ad457 (patch)
tree4fda30db2941692bea884685f1df2e751468bd6f /arch/sh/include/asm/sh_bios.h
parentee2760ea58d81fc00bcc2137232ed9bc28202aec (diff)
sh: Tidy up the sh bios VBR handling.
This moves the VBR handling out of the main trap handling code and in to the sh-bios helper code. A couple of accessors are added in order to permit other kernel code to get at the VBR value for state save/restore paths. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/sh_bios.h')
-rw-r--r--arch/sh/include/asm/sh_bios.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/sh/include/asm/sh_bios.h b/arch/sh/include/asm/sh_bios.h
index d9c96d7cf6c..d8a67a17777 100644
--- a/arch/sh/include/asm/sh_bios.h
+++ b/arch/sh/include/asm/sh_bios.h
@@ -1,13 +1,13 @@
1#ifndef __ASM_SH_BIOS_H 1#ifndef __ASM_SH_BIOS_H
2#define __ASM_SH_BIOS_H 2#define __ASM_SH_BIOS_H
3 3
4#ifdef CONFIG_SH_STANDARD_BIOS
5
4/* 6/*
5 * Copyright (C) 2000 Greg Banks, Mitch Davis 7 * Copyright (C) 2000 Greg Banks, Mitch Davis
6 * C API to interface to the standard LinuxSH BIOS 8 * C API to interface to the standard LinuxSH BIOS
7 * usually from within the early stages of kernel boot. 9 * usually from within the early stages of kernel boot.
8 */ 10 */
9
10
11extern void sh_bios_console_write(const char *buf, unsigned int len); 11extern void sh_bios_console_write(const char *buf, unsigned int len);
12extern void sh_bios_char_out(char ch); 12extern void sh_bios_char_out(char ch);
13extern void sh_bios_gdb_detach(void); 13extern void sh_bios_gdb_detach(void);
@@ -15,4 +15,14 @@ extern void sh_bios_gdb_detach(void);
15extern void sh_bios_get_node_addr(unsigned char *node_addr); 15extern void sh_bios_get_node_addr(unsigned char *node_addr);
16extern void sh_bios_shutdown(unsigned int how); 16extern void sh_bios_shutdown(unsigned int how);
17 17
18extern void sh_bios_vbr_init(void);
19extern void sh_bios_vbr_reload(void);
20
21#else
22
23static inline void sh_bios_vbr_init(void) { }
24static inline void sh_bios_vbr_reload(void) { }
25
26#endif /* CONFIG_SH_STANDARD_BIOS */
27
18#endif /* __ASM_SH_BIOS_H */ 28#endif /* __ASM_SH_BIOS_H */