forked from M-Labs/artiq
1
0
Fork 0

soc/runtime: add levels to exception_pop

This commit is contained in:
Sebastien Bourdeauducq 2014-09-23 16:22:32 +08:00
parent c989daf4d6
commit 0a02d9fb78
3 changed files with 4 additions and 4 deletions

View File

@ -17,9 +17,9 @@ void *exception_push(void)
return exception_contexts[ec_top++].jb;
}
void exception_pop(void)
void exception_pop(int levels)
{
ec_top--;
ec_top -= levels;
}
int exception_getid(void)

View File

@ -6,7 +6,7 @@ enum {
};
void *exception_push(void);
void exception_pop(void);
void exception_pop(int levels);
int exception_getid(void);
void exception_raise(int id) __attribute__((noreturn));

View File

@ -84,7 +84,7 @@ static int run_kernel(const char *kernel_name, int *eid)
rtio_init();
flush_cpu_icache();
k();
exception_pop();
exception_pop(1);
return KERNEL_RUN_FINISHED;
}
}