diff options
author | peter <peter@FreeBSD.org> | 2004-08-16 22:55:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-08-16 22:55:32 +0000 |
commit | 89798174d792971323f01fa91408ade11785cd64 (patch) | |
tree | 73afe49faf2239371be2c58e2a90cd5f247b4c95 | |
parent | 42ec62e2651114a50d0a2b4a4536a298c52d221f (diff) | |
download | FreeBSD-src-89798174d792971323f01fa91408ade11785cd64.zip FreeBSD-src-89798174d792971323f01fa91408ade11785cd64.tar.gz |
Sync with i386 - fix bounds check in lapic_create()
-rw-r--r-- | sys/amd64/amd64/local_apic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/local_apic.c b/sys/amd64/amd64/local_apic.c index 839cb03..5e8d8b1 100644 --- a/sys/amd64/amd64/local_apic.c +++ b/sys/amd64/amd64/local_apic.c @@ -194,7 +194,7 @@ lapic_create(u_int apic_id, int boot_cpu) { int i; - if (apic_id > MAX_APICID) { + if (apic_id >= MAX_APICID) { printf("APIC: Ignoring local APIC with ID %d\n", apic_id); if (boot_cpu) panic("Can't ignore BSP"); |