diff options
author | AlmuHS <almuhs@github.com> | 2019-04-15 18:04:12 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-04-15 18:04:12 +0200 |
commit | 535a60caed2253df3afadbe1476557576afab5b6 (patch) | |
tree | 6fba00640a96f036e4179ef4db467c73b0df7200 /kern | |
parent | fd3d4cb4c4078571561edf915dcb6748f934955b (diff) |
changed apic2kernel to int
Diffstat (limited to 'kern')
-rw-r--r-- | kern/cpu_number.c | 2 | ||||
-rw-r--r-- | kern/cpu_number.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kern/cpu_number.c b/kern/cpu_number.c index f1f205ef..60cf9b70 100644 --- a/kern/cpu_number.c +++ b/kern/cpu_number.c @@ -10,7 +10,7 @@ cpu_number() { if(ncpu == 1 | lapic == 0) return 0; else{ - unsigned apic_id = lapic->apic_id.r >>24; + int apic_id = lapic->apic_id.r >>24; return apic2kernel[apic_id]; } } diff --git a/kern/cpu_number.h b/kern/cpu_number.h index 72276f7a..b0b70bb6 100644 --- a/kern/cpu_number.h +++ b/kern/cpu_number.h @@ -27,7 +27,7 @@ #ifndef _KERN_CPU_NUMBER_H_ #define _KERN_CPU_NUMBER_H_ -extern unsigned apic2kernel[NCPUS]; +extern int apic2kernel[256]; /* * Definitions for cpu identification in multi-processors. |