Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64 Rename this value, and use it.
details: https://anonhg.NetBSD.org/src/rev/5c533d2c0d37
branches: trunk
changeset: 347480:5c533d2c0d37
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Aug 27 14:12:58 2016 +0000
description:
Rename this value, and use it.
diffstat:
sys/arch/amd64/amd64/machdep.c | 8 ++++----
sys/arch/amd64/include/segments.h | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r d434027ce358 -r 5c533d2c0d37 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c Sat Aug 27 13:15:48 2016 +0000
+++ b/sys/arch/amd64/amd64/machdep.c Sat Aug 27 14:12:58 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.226 2016/07/22 14:08:33 maxv Exp $ */
+/* $NetBSD: machdep.c,v 1.227 2016/08/27 14:12:58 maxv Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
@@ -111,7 +111,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.226 2016/07/22 14:08:33 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.227 2016/08/27 14:12:58 maxv Exp $");
/* #define XENDEBUG_LOW */
@@ -1714,8 +1714,8 @@
(struct gate_descriptor *)(ldtstore + LSYS5CALLS_SEL),
sizeof (struct gate_descriptor));
- /* exceptions */
- for (x = 0; x < 32; x++) {
+ /* CPU-specific IDT exceptions. */
+ for (x = 0; x < NCPUIDT; x++) {
#ifndef XEN
idt_vec_reserve(x);
switch (x) {
diff -r d434027ce358 -r 5c533d2c0d37 sys/arch/amd64/include/segments.h
--- a/sys/arch/amd64/include/segments.h Sat Aug 27 13:15:48 2016 +0000
+++ b/sys/arch/amd64/include/segments.h Sat Aug 27 14:12:58 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: segments.h,v 1.25 2016/08/21 11:48:59 maxv Exp $ */
+/* $NetBSD: segments.h,v 1.26 2016/08/27 14:12:58 maxv Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -331,7 +331,7 @@
* Entries in the Interrupt Descriptor Table (IDT)
*/
#define NIDT 256
-#define NRSVIDT 32 /* reserved entries for CPU exceptions */
+#define NCPUIDT 32 /* reserved entries for CPU exceptions */
/*
* Entries in the Global Descriptor Table (GDT)
Home |
Main Index |
Thread Index |
Old Index