Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch



Module Name:    src
Committed By:   kamil
Date:           Tue Dec 13 10:54:27 UTC 2016

Modified Files:
        src/sys/arch/i386/conf: files.i386
        src/sys/arch/i386/i386: trap.c
        src/sys/arch/x86/include: cpufunc.h
        src/sys/arch/x86/x86: pmap.c
        src/sys/arch/xen/conf: files.compat files.xen
        src/sys/arch/xen/x86: xen_pmap.c
Removed Files:
        src/sys/arch/i386/i386: db_dbgreg.S

Log Message:
Torn down KSTACK_CHECK_DR0, i386-only feature to detect stack overflow

This feature was intended to detect stack overflow with CPU Debug Registers
(x86). It was never ported to other ports, neither amd64 and should be
adapted for SMP...

Currently there might be better ways to detect stack overflows like page
mapping protection. Since the number of Debug Registers is restricted
(4 on x86), torn it down completely.

This interface introduced helper functions for Debug Registers, they will
be replaced with the new <x86/dbregs.h> interface.

KSTACK_CHECK_DR0 was disabled by default and won't affect ordinary users.

Sponsored by <The NetBSD Foundation>


To generate a diff of this commit:
cvs rdiff -u -r1.374 -r1.375 src/sys/arch/i386/conf/files.i386
cvs rdiff -u -r1.7 -r0 src/sys/arch/i386/i386/db_dbgreg.S
cvs rdiff -u -r1.280 -r1.281 src/sys/arch/i386/i386/trap.c
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/x86/include/cpufunc.h
cvs rdiff -u -r1.230 -r1.231 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/xen/conf/files.compat
cvs rdiff -u -r1.141 -r1.142 src/sys/arch/xen/conf/files.xen
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/xen/x86/xen_pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index