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
Fixed the RTC only firing once.
[tpg/acess2.git]
/
Kernel
/
arch
/
x86
/
mm_virt.c
diff --git
a/Kernel/arch/x86/mm_virt.c
b/Kernel/arch/x86/mm_virt.c
index
3663d60
..
c930947
100644
(file)
--- a/
Kernel/arch/x86/mm_virt.c
+++ b/
Kernel/arch/x86/mm_virt.c
@@
-128,7
+128,8
@@
void MM_PageFault(Uint Addr, Uint ErrorCode, tRegs *Regs)
// If it was a user, tell the thread handler
if(ErrorCode & 4) {
// If it was a user, tell the thread handler
if(ErrorCode & 4) {
- Warning("User Pagefault: Instruction at %p accessed %p\n", Regs->eip, Addr);
+ Warning("User Pagefault: Instruction at %p accessed %p", Regs->eip, Addr);
+ __asm__ __volatile__ ("sti"); // Restart IRQs
Threads_SegFault(Addr);
return ;
}
Threads_SegFault(Addr);
return ;
}
UCC
git Repository :: git.ucc.asn.au