Subversion Repositories HelenOS

Rev

Rev 703 | Rev 727 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 703 Rev 724
Line 120... Line 120...
120
    config.kernel_size = ALIGN_UP(config.heap_addr - hardcoded_load_address + config.heap_size, PAGE_SIZE);
120
    config.kernel_size = ALIGN_UP(config.heap_addr - hardcoded_load_address + config.heap_size, PAGE_SIZE);
121
    config.heap_delta = config.kernel_size - (config.heap_addr - hardcoded_load_address + config.heap_size);
121
    config.heap_delta = config.kernel_size - (config.heap_addr - hardcoded_load_address + config.heap_size);
122
    config.kernel_size = config.kernel_size + CONFIG_STACK_SIZE;
122
    config.kernel_size = config.kernel_size + CONFIG_STACK_SIZE;
123
   
123
   
124
    context_save(&ctx);
124
    context_save(&ctx);
125
    context_set(&ctx, FADDR(main_bsp_separated_stack), config.base + config.kernel_size, CONFIG_STACK_SIZE);
125
    context_set(&ctx, FADDR(main_bsp_separated_stack), config.base + config.kernel_size - CONFIG_STACK_SIZE, CONFIG_STACK_SIZE);
126
    context_restore(&ctx);
126
    context_restore(&ctx);
127
    /* not reached */
127
    /* not reached */
128
}
128
}
129
 
129
 
130
 
130