Compilation errors resolved for 2009Q3 toolchains.

This commit is contained in:
Amit Mahajan
2009-11-08 14:09:15 +05:30
parent fc43608da9
commit d8f480fd1b
4 changed files with 15 additions and 4 deletions

View File

@@ -250,7 +250,7 @@ void setup_dummy_current()
void init_finalize(struct kernel_resources *kres)
{
volatile register unsigned int stack asm("sp");
volatile register unsigned int stack;
volatile register unsigned int newstack;
struct ktcb *first_task;
struct container *c;
@@ -269,6 +269,7 @@ void init_finalize(struct kernel_resources *kres)
/* Switch to new stack */
stack = newstack;
asm("mov sp, %0\n\t"::"r"(stack));
/* -- Point of no stack unwinding -- */