arm64 ddb support improvement

2017-02-16 Thread Dale Rahn
Fix pieces of aarch64 ddb support: kernel vs user mode detection implement (optimize) 8 byte reads cast address pointers to vaddr_t, not uint32_t (do not truncate) remove db_fetch_reg(), not used by OpenBSD implement ddb backtrace note that "ddb> trace " expects a stack address, not a frame pointe

arm64 pmap fix: CANFAIL logic

2017-02-16 Thread Dale Rahn
The logic to handle PMAP_CANFAIL, the logic was inverted originally. Code has been simplified so that it is test for if !CANFAIL then panic diff --git a/sys/arch/arm64/arm64/pmap.c b/sys/arch/arm64/arm64/pmap.c index dfd91b4ce23..393ff202e39 100644 --- a/sys/arch/arm64/arm64/pmap.c +++ b/sys/arch

[PATCH] Use strcasestr(3) instead of nsearch()

2017-02-16 Thread Scott Cheloha
Hi, Unless I'm missing something more clever, in vacation.c, nsearch() is just a slower strcasestr(3). -- Scott Cheloha ? vacation Index: vacation.c === RCS file: /cvs/src/usr.bin/vacation/vacation.c,v retrieving revision 1.37 diff