247444 Commits

Author SHA1 Message Date
palle
f7af29bd85 sun4v: slowtrap() now selects normal globals properly on both sun4u and sun4v platforms. Verified using qemu for both sun4u and sun4v systems 2017-01-07 20:19:09 +00:00
christos
35cc6ce981 more nsd 2017-01-07 20:17:21 +00:00
christos
09e56bb693 add nsd 2017-01-07 19:55:35 +00:00
christos
cf0aafe730 Add nsd 2017-01-07 19:53:49 +00:00
christos
45ae8c0d90 undef debug 2017-01-07 19:53:21 +00:00
christos
479d8f7d84 Add nsd build glue 2017-01-07 19:51:21 +00:00
christos
d83a80ee7f Import nsd 2017-01-07 19:41:59 +00:00
christos
544707338c include <sys/sigtypes.h> for sigset_t 2017-01-07 19:04:24 +00:00
christos
48a80eb186 npflog0.pcap is binary 2017-01-07 18:50:50 +00:00
christos
b083914cc2 add example. 2017-01-07 18:48:47 +00:00
christos
d106d90e70 add pcs 2017-01-07 18:28:49 +00:00
christos
95f6ceca86 add npfd 2017-01-07 17:29:24 +00:00
christos
3f2d359121 descend to npfd 2017-01-07 17:27:02 +00:00
christos
cec127882c add man page, lint cleanups. 2017-01-07 16:48:03 +00:00
christos
177e6c06dd restrict permissions on log file 2017-01-07 16:36:54 +00:00
christos
836d3605fd rotate npflog0.pcap 2017-01-07 16:34:50 +00:00
kiyohara
03aa6dbf80 Add CUBOX to v7 and v7hf. 2017-01-07 16:29:04 +00:00
martin
b42e1be68a Add missing includes 2017-01-07 16:24:40 +00:00
kiyohara
af4278a708 Support SolidRun Cubox. 2017-01-07 16:24:07 +00:00
kiyohara
a4c1b5d6be Add support Marvell Dove.
Also <SoC>_intr_bootstrap() rename to <SoC>_bootstrap(). And SoC init func, getclk into that.
2017-01-07 16:19:28 +00:00
kiyohara
f90797dec1 Add register macros.
And reorder registers.
Also remove white-spaces.
2017-01-07 15:47:33 +00:00
christos
196181456d Add instruction how to generate the init files so that we don't forget. 2017-01-07 15:45:14 +00:00
christos
48e9d2f4ca Regen without #line directives
- nbyacc -l -d -o initparse.c parse.y
- nblex -L -t -p scan.l > initscan.c
2017-01-07 15:43:27 +00:00
kiyohara
7131810470 Add a white-space into comment and `*/'. 2017-01-07 15:22:11 +00:00
kiyohara
5e85b3229d Change to a tab from white-spaces. 2017-01-07 15:14:20 +00:00
kiyohara
e741f78902 Add flags SDHC_FLAG_NO_AUTO_STOP and SDHC_FLAG_NO_BUSY_INTR. 2017-01-07 15:05:08 +00:00
kiyohara
322a2dc1e7 Don't access SDHC_HOST_CTL_VERSION, if iosize less than this. 2017-01-07 15:00:38 +00:00
kiyohara
8ad0b04215 Support retry when error. like wd(4). 2017-01-07 14:49:53 +00:00
kiyohara
463bc92121 Support Marvell Dove. Use irq array. Dove's irqs not sequencial.
And remove debug printf().
2017-01-07 14:44:26 +00:00
kiyohara
8f245e3b7f Remove unused function. 2017-01-07 14:36:51 +00:00
kiyohara
f342ff86d4 Fix macro MVXORE_CHAN2BASE(). The XORE has 2 channels per port. 2017-01-07 14:32:32 +00:00
kiyohara
e51c7e73b4 Add tags for AXI_CS[01]. 2017-01-07 14:26:37 +00:00
kiyohara
ba749f27a4 Support Marvell Dove. 2017-01-07 14:24:27 +00:00
kiyohara
89ea2da7c5 Change MVSPI_SIZE to 0x80 instead of 0x50. 2017-01-07 14:19:45 +00:00
flxd
4d851b02e9 Add wsmux so wsconsctl will not fail when -f is not specified (and default
control devices are used), as in /etc/rc.d/wscons.
Kernel size increase is < 4 kB.
2017-01-07 11:21:05 +00:00
kamil
8780553feb Document that TRAP_EXEC is .Nx extension and update .Sh HISTORY for it
Sponsored by <The NetBSD Foundation>
2017-01-07 06:01:20 +00:00
kamil
e62e09a0b8 Document new additions to ptrace(2) in doc/CHANGES
Added:
  ptrace(2): Add new si_code value of SIGTRAP: TRAP_EXEC [kamil 20170107]
  ptrace(2): Add signal information accessors API:
             PT_GET_SIGINFO and PT_SET_SIGINFO [kamil 20170107]

Sponsored by <The NetBSD Foundation>
2017-01-07 05:57:27 +00:00
kamil
69c3a1c44c Add more notes explaining how debuggers work on NetBSD
Explain:
 - execve(2) handling and behavior, SIGTRAP & TRAP_EXEC
 - reference PaX MPROTECT restrictions for debuggers
 - software breakpoints handling and behavior, SIGTRAP & TRAP_BKPT
 - single step behavior, SIGTRAP & TRAP_TRACE
 - list predefined MI symbols for help debuggers in port specific headers
 - explain that PT_TRACE_ME does not send a SIGSTOP signal

Sponsored by <The NetBSD Foundation>
2017-01-07 05:51:14 +00:00
ozaki-r
5ee8b500a7 Add entries of pmap(9) functions 2017-01-07 04:44:12 +00:00
kamil
6a0def7293 Document PT_SET_SIGINFO and PT_GET_SIGINFO in ptrace(2)
PT_SET_SIGINFO - fake signal information emitted to tracee
PT_GET_SIGINFO - read signal information routed to tracee

Sponsored by <The NetBSD Foundation>
2017-01-07 03:41:25 +00:00
christos
cf6cbc80c5 need ctype.h 2017-01-07 02:55:19 +00:00
christos
621e8732cd Check for declarations, not the existance of functions since some are
visible only when _NETBSD_SOURCE is defined. This avoids || defined(__NetBSD__)
hacks.
2017-01-07 02:52:04 +00:00
kamil
6615db4a39 Fix swapped text between PT_GET_PROCESS_STATE and PT_GET_EVENT_MASK
Sponsored by <The NetBSD Foundation>
2017-01-07 01:32:35 +00:00
kamil
929c1cc1fe ptrace(2): Document addr and data argument usage for PT_GET_PROCESS_STATE
The PT_GET_PROCESS_STATE call in ptrace(2) has the following usage of addr
and data:

    A pointer to this structure is passed in addr.  The data
    argument should be set to sizeof(struct ptrace_event).

Sponsored by <The NetBSD Foundation>
2017-01-07 01:29:18 +00:00
kamil
d152fc3170 Document TRAP_EXEC in SIGRAP in siginfo(2)
TRAP_EXEC - Process exec trap

This signal is emitted on exec() when a process is controlled by a
debugger.

Sponsored by <The NetBSD Foundation>
2017-01-07 01:22:12 +00:00
kamil
a415cb97d3 Fix MKCATPAGES=yes build - fix typo in cat3/krb5_checksum_is_keyed.0 2017-01-07 00:47:18 +00:00
kamil
ba2267e1eb Welcome to 7.99.56 for new ptrace(2) interfaces and SIGTRAP type TRAP_EXEC
Kernel bump for PT_GET_SIGINFO and PT_SET_SIGINFO in ptrace(2) and new
si_code value TRAP_EXEC in <sys/siginfo.h> for the SIGTRAP signal.

Sponsored by <The NetBSD Foundation>
2017-01-06 22:58:00 +00:00
kamil
e4281b2073 Introduce new ptrace(2) interface: PT_SET_SIGINFO and PT_GET_SIGINFO
This interface is designed to read signal information emited to tracee and
fake this signal with new value.

This functionality is required to distinguish types of events that occured
in the tracee and intercepted by a debugger.

These accessors introduce a new structure type ptrace_siginfo:
/*
 * Signal Information structure
 */
typedef struct ptrace_siginfo {
       siginfo_t       psi_siginfo;    /* signal information structure */
       lwpid_t         psi_lwpid;      /* destination LWP of the signal
                                        * value 0 means the whole process
                                        * (route signal to all LWPs) */
} ptrace_siginfo_t;

Include <sys/siginfo.h> in <sys/ptrace.h> in order to not break existing
software due to unknown symbol siginfo_t.

This interface has been proposed to the tech-kern@ mailing list.

Sponsored by <The NetBSD Foundation>
2017-01-06 22:53:17 +00:00
kamil
239e90be56 Introduce new SIGTRAP code: TRAP_EXEC
On exec() events under a debugger generate the SIGTRAP signal with
TRAP_EXEC property. This allows tracer to distinguish exec() events easily.

Sponsored by <The NetBSD Foundation>
2017-01-06 22:42:58 +00:00
kamil
5b0bbc1439 Add new test siginfo4 in t_ptrace_wait{,3,4,6,id,pid}
siginfo4:
    Detect SIGTRAP TRAP_EXEC from tracee

This test is currently disabled and it will be enabled once
PT_[SG]ET_SIGINFO will land the sources.

Sponsored by <The NetBSD Foundation>
2017-01-06 22:40:06 +00:00