-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Paul Mundt
committed
Jan 12, 2010
1 parent
ee2760e
commit 191d0d2
Showing
4 changed files
with
55 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,28 @@ | ||
#ifndef __ASM_SH_BIOS_H | ||
#define __ASM_SH_BIOS_H | ||
|
||
#ifdef CONFIG_SH_STANDARD_BIOS | ||
|
||
/* | ||
* Copyright (C) 2000 Greg Banks, Mitch Davis | ||
* C API to interface to the standard LinuxSH BIOS | ||
* usually from within the early stages of kernel boot. | ||
*/ | ||
|
||
|
||
extern void sh_bios_console_write(const char *buf, unsigned int len); | ||
extern void sh_bios_char_out(char ch); | ||
extern void sh_bios_gdb_detach(void); | ||
|
||
extern void sh_bios_get_node_addr(unsigned char *node_addr); | ||
extern void sh_bios_shutdown(unsigned int how); | ||
|
||
extern void sh_bios_vbr_init(void); | ||
extern void sh_bios_vbr_reload(void); | ||
|
||
#else | ||
|
||
static inline void sh_bios_vbr_init(void) { } | ||
static inline void sh_bios_vbr_reload(void) { } | ||
|
||
#endif /* CONFIG_SH_STANDARD_BIOS */ | ||
|
||
#endif /* __ASM_SH_BIOS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters