git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of
[email protected]
:acess2
[tpg/acess2.git]
/
Kernel
/
arch
/
x86
/
kpanic.c
diff --git
a/Kernel/arch/x86/kpanic.c
b/Kernel/arch/x86/kpanic.c
index
1972fd3
..
0950be8
100644
(file)
--- a/
Kernel/arch/x86/kpanic.c
+++ b/
Kernel/arch/x86/kpanic.c
@@
-52,18
+52,25
@@
const struct {
};
#define NUM_REGVALUES (sizeof(caRegValues)/sizeof(caRegValues[0]))
};
#define NUM_REGVALUES (sizeof(caRegValues)/sizeof(caRegValues[0]))
+// === PROTOTYPES ===
+void KernelPanic_SetMode(void);
+void KernelPanic_PutChar(char Ch);
+
+// === CODE ===
/**
* \brief Sets the screen mode for a kernel panic
*/
/**
* \brief Sets the screen mode for a kernel panic
*/
-void KernelPanic_SetMode()
+void KernelPanic_SetMode(
void
)
{
int i;
{
int i;
- // Some routines call this function twice, let's avoid that, shall we?
+ // This function is called by Panic(), but MM_PageFault and the
+ // CPU exception handers also call it, so let's not clear the screen
+ // twice
if( giKP_Pos ) return ;
// Restore VGA 0xB8000 text mode
if( giKP_Pos ) return ;
// Restore VGA 0xB8000 text mode
- #if
1
+ #if
0
for( i = 0; i < NUM_REGVALUES; i++ )
{
// Reset Flip-Flop
for( i = 0; i < NUM_REGVALUES; i++ )
{
// Reset Flip-Flop
UCC
git Repository :: git.ucc.asn.au