Commit Graph

247429 Commits

Author SHA1 Message Date
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
christos
81c11d5f0f handle the case where we don't have the files built yet 2017-01-06 20:27:19 +00:00
christos
9ed7390988 Add log validation 2017-01-06 19:20:24 +00:00
christos
8362164498 get the right version even for the tools build. 2017-01-06 17:26:41 +00:00
christos
d20e855db5 don't try to run a non-existing nbcat 2017-01-06 17:25:32 +00:00
christos
792fa3b107 don't run grep if we don't have the Makefile, like when we are building
objdirs
2017-01-06 17:22:51 +00:00
christos
5d66200563 don't use sed for the tools version because during objdir etc runs we don't
have ${TOOL_SED} yet available.
2017-01-06 17:13:22 +00:00
skrll
5dc9a27fcf Use the VC property mailbox to request the UART clock rate and use it
appropriately

Newer firmwares use 48MHz
2017-01-06 14:55:37 +00:00
skrll
7ed3f784bc Whitespace 2017-01-06 14:53:32 +00:00
roy
84fe414e1f KNF 2017-01-06 14:25:41 +00:00
roy
9180469668 KNF 2017-01-06 14:06:00 +00:00
roy
50a63ac8d2 KNF.
Normalise coding style.
White space police.
Sprinkle some extra braces to make the flow more clear.

No functional changes.
2017-01-06 13:53:18 +00:00
pgoyette
d020b0ddde Implement a common spkr_detach() function and call it from the
attachment-specific detach functions.  Returns EBUSY if the
device instance is busy, based on whether or not a sc->sc_inbuf
is allocated.  The buffer is malloc()d at spkropen time, and is
free()d in spkrclose().

Now we can actually implement the MODULE_CMD_FINI command and
unload the driver at will.

Addresses my PR kern/51785
2017-01-06 09:32:08 +00:00
maxv
88aac29387 Explain how all that mess works, without actually fixing it yet. 2017-01-06 09:14:36 +00:00
roy
846cb8f380 u_int -> unsigned int, u_int32_t -> uint32_t. 2017-01-06 09:14:07 +00:00
maxv
ad05649fb8 Rename a few things 2017-01-06 09:04:06 +00:00