check cpu_local_var initialized
This commit is contained in:
@@ -85,7 +85,7 @@ SYSCALL_DECLARE(rt_sigreturn)
|
|||||||
return proc->sigrc;
|
return proc->sigrc;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern struct x86_cpu_local_variables *locals;
|
extern struct cpu_local_var *clv;
|
||||||
|
|
||||||
void
|
void
|
||||||
check_signal(unsigned long rc, unsigned long *regs)
|
check_signal(unsigned long rc, unsigned long *regs)
|
||||||
@@ -94,7 +94,7 @@ check_signal(unsigned long rc, unsigned long *regs)
|
|||||||
struct k_sigaction *k;
|
struct k_sigaction *k;
|
||||||
int sig;
|
int sig;
|
||||||
|
|
||||||
if(locals == NULL)
|
if(clv == NULL)
|
||||||
return;
|
return;
|
||||||
proc = cpu_local_var(current);
|
proc = cpu_local_var(current);
|
||||||
if(proc == NULL || proc->pid == 0)
|
if(proc == NULL || proc->pid == 0)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
extern int num_processors;
|
extern int num_processors;
|
||||||
|
|
||||||
static struct cpu_local_var *clv;
|
struct cpu_local_var *clv;
|
||||||
|
|
||||||
void cpu_local_var_init(void)
|
void cpu_local_var_init(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user