Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Define tablesize. Useful when debugging.
details: https://anonhg.NetBSD.org/src/rev/820195c4a310
branches: trunk
changeset: 345448:820195c4a310
user: maxv <maxv%NetBSD.org@localhost>
date: Sun May 29 09:16:11 2016 +0000
description:
Define tablesize. Useful when debugging.
diffstat:
sys/arch/amd64/amd64/locore.S | 6 +++++-
sys/arch/i386/i386/locore.S | 11 ++++++-----
2 files changed, 11 insertions(+), 6 deletions(-)
diffs (73 lines):
diff -r f53c3c7a458a -r 820195c4a310 sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S Sun May 29 09:04:19 2016 +0000
+++ b/sys/arch/amd64/amd64/locore.S Sun May 29 09:16:11 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.97 2016/05/29 09:04:19 maxv Exp $ */
+/* $NetBSD: locore.S,v 1.98 2016/05/29 09:16:11 maxv Exp $ */
/*
* Copyright-o-rama!
@@ -322,6 +322,7 @@
END(lapic_isr)
#endif /* NLAPIC > 0 */
+ .globl _C_LABEL(tablesize)
.globl _C_LABEL(nox_flag)
.globl _C_LABEL(cpuid_level)
.globl _C_LABEL(esym)
@@ -335,6 +336,9 @@
.globl _C_LABEL(gdtstore)
.globl _C_LABEL(cputype)
+ .type _C_LABEL(tablesize), @object
+_C_LABEL(tablesize): .long TABLESIZE
+END(tablesize)
.type _C_LABEL(nox_flag), @object
LABEL(nox_flag) .long 0 /* 32bit NOX flag, set if supported */
END(nox_flag)
diff -r f53c3c7a458a -r 820195c4a310 sys/arch/i386/i386/locore.S
--- a/sys/arch/i386/i386/locore.S Sun May 29 09:04:19 2016 +0000
+++ b/sys/arch/i386/i386/locore.S Sun May 29 09:16:11 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.125 2016/05/26 07:24:55 maxv Exp $ */
+/* $NetBSD: locore.S,v 1.126 2016/05/29 09:16:12 maxv Exp $ */
/*
* Copyright-o-rama!
@@ -128,7 +128,7 @@
*/
#include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.125 2016/05/26 07:24:55 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.126 2016/05/29 09:16:12 maxv Exp $");
#include "opt_compat_oldboot.h"
#include "opt_copy_symtab.h"
@@ -255,6 +255,7 @@
*/
.data
+ .globl _C_LABEL(tablesize)
.globl _C_LABEL(nox_flag)
.globl _C_LABEL(cputype)
.globl _C_LABEL(cpuid_level)
@@ -302,6 +303,9 @@
END(lapic_tpr)
#endif
+ .type _C_LABEL(tablesize), @object
+_C_LABEL(tablesize): .long 0
+END(tablesize)
.type _C_LABEL(nox_flag), @object
LABEL(nox_flag) .long 0 /* 32bit NOX flag, set if supported */
END(nox_flag)
@@ -320,9 +324,6 @@
.type _C_LABEL(PDPpaddr), @object
LABEL(PDPpaddr) .long 0 /* paddr of PDP, for libkvm */
END(PDPpaddr)
- .type _C_LABEL(tablesize), @object
-_C_LABEL(tablesize): .long 0
-END(tablesize)
/* Space for the temporary stack */
.size tmpstk, tmpstk - .
Home |
Main Index |
Thread Index |
Old Index