- GC unused cpu_thread_link().
- Move the enabling of interrupts out of assembly and into C a few instructions later at cpu_critical_fork_exit(). This puts more of the MD critical section implementation under the MD critical section API making it easier to test and develop alternative implementations.
This commit is contained in:
parent
3bdbd658f1
commit
912133cbce
@ -58,24 +58,12 @@ cpu_unpend(void)
|
||||
|
||||
/*
|
||||
* cpu_critical_fork_exit() - cleanup after fork
|
||||
*
|
||||
* For i386 we do not have to do anything, td_critnest is
|
||||
* handled by the fork trampoline code.
|
||||
*/
|
||||
void
|
||||
cpu_critical_fork_exit(void)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* cpu_thread_link() - thread linkup, initialize machine-dependant fields
|
||||
*
|
||||
* There are currently no machine-dependant fields that require
|
||||
* initialization.
|
||||
*/
|
||||
void
|
||||
cpu_thread_link(struct thread *td)
|
||||
{
|
||||
enable_intr();
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -217,9 +217,6 @@ ENTRY(fork_trampoline)
|
||||
pushl %esp /* trapframe pointer */
|
||||
pushl %ebx /* arg1 */
|
||||
pushl %esi /* function */
|
||||
movl PCPU(CURTHREAD),%ebx /* setup critnest */
|
||||
movl $1,TD_CRITNEST(%ebx)
|
||||
sti /* enable interrupts */
|
||||
call fork_exit
|
||||
addl $12,%esp
|
||||
/* cut from syscall */
|
||||
|
@ -8,7 +8,6 @@
|
||||
* cpu_critical_enter() - inlined
|
||||
* cpu_critical_exit() - inlined
|
||||
* cpu_critical_fork_exit() - prototyped
|
||||
* cpu_thread_link() - prototyped
|
||||
* related support functions residing
|
||||
* in <arch>/<arch>/critical.c - prototyped
|
||||
*
|
||||
@ -25,7 +24,6 @@ __BEGIN_DECLS
|
||||
*/
|
||||
void cpu_unpend(void);
|
||||
void cpu_critical_fork_exit(void);
|
||||
void cpu_thread_link(struct thread *td);
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user