Should always count to 10 before committing. Another comment
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7856 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -658,6 +658,7 @@ thread_exit2(void *_args)
|
|||||||
// ToDo: was:
|
// ToDo: was:
|
||||||
// restore_interrupts(args.int_state);
|
// restore_interrupts(args.int_state);
|
||||||
// we probably don't want to let the interrupts disabled at this point??
|
// we probably don't want to let the interrupts disabled at this point??
|
||||||
|
// Actually, args.int_state will always be 0, unless we fix thread_exit()
|
||||||
|
|
||||||
TRACE(("thread_exit2, running on death stack 0x%lx\n", args.t->kernel_stack_base));
|
TRACE(("thread_exit2, running on death stack 0x%lx\n", args.t->kernel_stack_base));
|
||||||
|
|
||||||
@@ -789,7 +790,7 @@ thread_exit(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: get_death_stack() disables interrupts
|
// TODO: get_death_stack() disables interrupts
|
||||||
// and leave them disabled, so I wonder if it's good to disable
|
// and leaves them disabled, so I wonder if it's good to disable
|
||||||
// them again a bunch of lines after this
|
// them again a bunch of lines after this
|
||||||
death_stack = get_death_stack();
|
death_stack = get_death_stack();
|
||||||
{
|
{
|
||||||
@@ -801,6 +802,7 @@ thread_exit(void)
|
|||||||
args.death_sem = cached_death_sem;
|
args.death_sem = cached_death_sem;
|
||||||
|
|
||||||
// disable the interrupts. Must remain disabled until the kernel stack pointer can be officially switched
|
// disable the interrupts. Must remain disabled until the kernel stack pointer can be officially switched
|
||||||
|
// TODO: interrupts are already disabled at this point
|
||||||
args.int_state = disable_interrupts();
|
args.int_state = disable_interrupts();
|
||||||
|
|
||||||
// set the new kernel stack officially to the death stack, wont be really switched until
|
// set the new kernel stack officially to the death stack, wont be really switched until
|
||||||
|
|||||||
Reference in New Issue
Block a user