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
Trying to reduce the ability for a fork bomb to fault the kernel
[tpg/acess2.git]
/
Kernel
/
arch
/
x86
/
proc.c
diff --git
a/Kernel/arch/x86/proc.c
b/Kernel/arch/x86/proc.c
index
bfd0e8f
..
7596212
100644
(file)
--- a/
Kernel/arch/x86/proc.c
+++ b/
Kernel/arch/x86/proc.c
@@
-570,7
+570,11
@@
int Proc_Clone(Uint *Err, Uint Flags)
Uint tmpEbp, oldEsp = esp;
// Set CR3
Uint tmpEbp, oldEsp = esp;
// Set CR3
+ #if USE_PAE
+ # warning "PAE Unimplemented"
+ #else
newThread->MemState.CR3 = cur->MemState.CR3;
newThread->MemState.CR3 = cur->MemState.CR3;
+ #endif
// Create new KStack
newThread->KernelStack = MM_NewKStack();
// Create new KStack
newThread->KernelStack = MM_NewKStack();
@@
-606,7
+610,7
@@
int Proc_Clone(Uint *Err, Uint Flags)
__asm__ __volatile__ ("mov %0, %%db0" : : "r" (newThread) );
#if USE_MP
// ACK the interrupt
__asm__ __volatile__ ("mov %0, %%db0" : : "r" (newThread) );
#if USE_MP
// ACK the interrupt
- if(
GetCPUNum()
)
+ if(
GetCPUNum()
)
gpMP_LocalAPIC->EOI.Val = 0;
else
#endif
gpMP_LocalAPIC->EOI.Val = 0;
else
#endif
UCC
git Repository :: git.ucc.asn.au