Skip to content

Commit

Permalink
Re-enable stack growth
Browse files Browse the repository at this point in the history
This has been disabled for 10 years. And I just realized this now, when debugging a problem with my code not being able to use more than a single stack page... Doh! :) We need to be able to use more than 1 stack page.
  • Loading branch information
perlun committed Oct 1, 2017
1 parent 5b53db6 commit 3293f21
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions storm/x86/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,6 @@ static void trap_page_fault(void)
// If this pagefault is caused by a growing stack, just map more memory.
if (address >= BASE_PROCESS_STACK)
{
// FIXME: This code should not really be here, but right now, it's good for debugging...

debug_crash_screen("Stack overflow", current_tss);
current_tss->state = STATE_ZOMBIE;
// if (current_task == TASK_ID_KERNEL)
// {
// cpu_halt ();
// }
dispatch_next();

// FIXME: End of temporary code. */

DEBUG_MESSAGE(DEBUG, "Stack is growing (was %u pages)", current_tss->stack_pages);
if (memory_mutex == MUTEX_LOCKED)
{
Expand Down

0 comments on commit 3293f21

Please sign in to comment.