Commit Graph

251476 Commits

Author SHA1 Message Date
maxv cb00172172 Fix a pretty dumb mistake I made in r1.22: the alignment needs to be in the
bss, otherwise the bootloader will use memory before __kernel_end and give
a wrong start pa to the kernel.

This issue was investigated by Anthony Mallet. Should fix PR/52000.
2017-06-14 07:45:45 +00:00
knakahara a15414e502 support multiple encryption drivers (port from FreeBSD). 2017-06-14 07:38:24 +00:00
knakahara ad7b969ce5 refactor crypto_newsession() like FreeBSD. 2017-06-14 07:36:24 +00:00
knakahara ed8aa5b4aa must release cap->cc_lock before calling cap->cc_newsession() because of spinlock. 2017-06-14 07:32:19 +00:00
nat 46ed1f30b6 Ensure to detach children. 2017-06-14 06:55:37 +00:00
pgoyette 762cf1319c Instead of directly referencing a parent device's code (ie, pcppi_bell()
routine), let the parent device pass a pointer to the code (in the aux
config data).  This allows us to load the spkr module without requiring
the pcppi parent device to exist.  (The spkr device can also have an
audio as parent.)
2017-06-14 05:01:35 +00:00
ozaki-r 388744f33f Enable DEBUG for babylon5 2017-06-14 02:33:37 +00:00
ozaki-r 1c8c9db525 Add test cases for vlan(4)
From s-yamaguchi@IIJ
2017-06-14 02:32:29 +00:00
ozaki-r 92b56eb36f KNF 2017-06-14 02:00:43 +00:00
chs 2b3f157429 create an nmap table for module symtabs too.
needed by dtrace.
2017-06-14 00:52:37 +00:00
chs 0944f2f467 add an lwp_trapframe() interface to return an LWP's user trapframe.
needed by dtrace.
2017-06-14 00:40:05 +00:00
spz 4b70fd126d correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
2017-06-13 19:13:55 +00:00
dholland 495acf4f93 another one 2017-06-13 17:18:00 +00:00
skrll c44f04e508 Now that bus_space can use devmap - use it for early console 2017-06-13 15:24:05 +00:00
skrll a807c836bd Use devmap if available 2017-06-13 15:23:17 +00:00
chs 23c01cd219 move include of <sys/iostat.h> back to where userland will get it.
some third-party software relies on this header including that one.
pointed out by joerg.
2017-06-13 14:05:47 +00:00
wiz e5252e9013 gdb-8.0 out. 2017-06-13 13:46:14 +00:00
christos edba12e937 PR/52295: Anthony Mallet: find -delete: "relative path not safe" with absolute
paths ... Fix from OpenBSD
2017-06-13 13:10:32 +00:00
msaitoh a5f0abe89e Sync with FreeBSD r316541:
> Fix a double free in ixgbe_rxeof()
 >
 > Submitted by:	rstone
 > MFC after:	1 week
 > Differential Revision:	https://reviews.freebsd.org/D10255
2017-06-13 09:37:22 +00:00
msaitoh 644a4f8bfd Fix the partial chain check in ixgbe_rx_discard(). This bug was addded in
rev. 1.33.
2017-06-13 09:35:12 +00:00
nat 3615da581c Add wsbell.
Found by wiz@.
2017-06-13 09:11:22 +00:00
martin a3b64c360a Avoid variable lenght buffers to help the stack protector (hopefully no
functional change)
2017-06-13 08:16:16 +00:00
wiz b52aaf8ca2 Fix typo in macro name. 2017-06-13 08:10:52 +00:00
nat ab2ce0fafd Update for wsbell(4) manual pages. 2017-06-13 06:39:09 +00:00
pgoyette 4e5a1947d5 Update for inclusion of references to the new wsbell(4) 2017-06-13 06:37:21 +00:00
nat d862308a9d Manual pages for wsbell. 2017-06-13 06:27:10 +00:00
nat 1e50dd9682 Update the speaker man page, mentioning wsbell and new formatting for
ioctls.

Ok pgoyette@.
2017-06-13 06:25:20 +00:00
nat 0e2e153aff Implement missing ioctls for the default bell. 2017-06-13 05:49:48 +00:00
nat 5e64cb4915 Change sc_dying from u_char to bool. 2017-06-13 00:54:37 +00:00
nat 301cb45f21 Remove dying ftom vb_args and use sc_dying instead. 2017-06-13 00:49:05 +00:00
nat e258f5cee2 Move duplicate definition of SETBELL macro into wsbelldata.h. 2017-06-13 00:42:27 +00:00
roy 77e8e2e514 Restore Makefile.inc so dhcpcd is installed correctly as pointed out by kre@.
This reverts my prior commit.
2017-06-13 00:28:10 +00:00
riastradh 26bd73f202 Add heading comment for private localcount_adjust subroutine. 2017-06-12 21:08:34 +00:00
riastradh 44df486bb8 Move forward declaration to top of file.
Keep header comment above localcount_init adjoined to it.

No functional change.
2017-06-12 21:07:14 +00:00
maya 4cf1b10115 Use continue to denote the no-op loop to match netbsd style
newline for extra clarity.
2017-06-12 15:02:32 +00:00
abhinav 1c893641af Fix typo
Insert Pp after a list to add vertical space before the next paragraph
Remove Pp before Bl at two places
2017-06-12 14:59:04 +00:00
roy ed0dec9ae6 This Makefile fragment is no longer used. 2017-06-12 14:52:02 +00:00
roy fc48706b44 Replace @DATADIR@ with /usr/share/examples as pointed by plunky@ 2017-06-12 14:50:38 +00:00
pgoyette fe1881ef3a Note addition of wsbell(4) 2017-06-12 11:05:21 +00:00
sborrill 86cfc9006b Deal with broken BIOSes that leave PCI interrupts disabled.
Thanks to nick@
2017-06-12 10:59:47 +00:00
manu 9f26a707da Restore wscons keymaps feature on hpcarm
hpc ports need to alter keydesc data at runtime in order to load
alternate keymaps. But since keydesc is const initialized data, it
is mapped read only and the operation should fail.

It seems older compiler failed to enforce the read-only mapping and
this is why it used to work, but on recent NetBSD releases, the
feature is broken.

We fix it by duplicating the keydesc data once into a malloc'ed area
that can be modified.
2017-06-12 09:23:39 +00:00
pgoyette c381efe7d6 There is no longer a NWSBELL (since nothing depends on it), so there's no
need to #include wsbell.h (which is where it used to be defined, as a
result of a needs-flag in files.wscons).

Remove the #include
2017-06-12 08:19:22 +00:00
pgoyette 645a655791 Revert previous - it's no longer needed since data structure sizes no
longer depend on which wscons child devices exist
2017-06-12 07:12:49 +00:00
pgoyette 1d3c574d62 Always include declarations/definitions for NWSMUX and NWSDISPLAY even
if they aren't needed.  This enables us to have structures of a fixed
size regardless of which child devices are configured, which enables
better modularization.
2017-06-12 07:10:07 +00:00
pgoyette 0725a7c34f Nothing needs the NWSBELL flag, so don't bother creating it 2017-06-12 07:06:45 +00:00
pgoyette 744813ec82 For now, #include wsdisplay.h to get the definition of NWSDISPLAY
The symbol is currently used to conditionally include members of a
data structure, so without this include there could be different
structure definitions, with different sizes, and data corruption is
likely.

XXX For cleaner modularization, all of the needs-flag entries in
XXX wscons should be removed.
2017-06-12 06:59:19 +00:00
msaitoh 36c0c73316 Use IFM_1000_KX and IFM_2500_KX. 2017-06-12 03:03:22 +00:00
pgoyette a0a5fffd5f Descend into SUBDIR to actually build the wsbell module.
Missed in previous commit - thanks kre@
2017-06-12 01:01:01 +00:00
pgoyette 33529a549e Add new wsbell(4) module to the sets list. 2017-06-11 22:22:36 +00:00
pgoyette 9c3a54f157 Actually create the wsbell(4) module 2017-06-11 22:21:33 +00:00