Commit Graph

130542 Commits

Author SHA1 Message Date
pgoyette
c1df4ef16b In module_do_load(), consolidate checking for a pre-existing module,
and return a single error value EEXIST.  When making a recursive
call (to load required modules), treat a pre-existing module as
success.

Without this change, when a module was loaded by specific request
(as opposed to being loaded as a requirement of some other module),
we would always load the module from the file-system, and then
after making various sanity/compatability checks we would destroy
the new copy if there was a pre-existing copy.

Fixes PR kern/40764

XXX Note that if the module exists, we bypass all of the various
XXX "compatability" checks, including whether or not the existing
XXX module is of any particular class!  (In the previous code, we
XXX checked to see if the newly-loaded copy had the correct class,
XXX but not the pre-existing copy, which could have been loaded
XXX from a different path/filename.)
2016-02-06 22:48:07 +00:00
jandberg
e09dd753e1 Fix some awkward language in manpage and code comments. 2016-02-06 20:20:18 +00:00
riastradh
2159786ee7 Don't do _BSD_SIZE_T_ dance here. Use <stddef.h> in userland.
This file is used in tools, where _BSD_SIZE_T_ is unreliable.  In the
kernel, <sys/types.h> will define size_t anyway.  Outside the kernel,
<stddef.h> is the standard way to get size_t.
2016-02-06 15:36:36 +00:00
joerg
9cb0d31c43 Toolify. 2016-02-06 14:11:58 +00:00
mlelstv
bbd8666d0f Split case folding table into separate source file and add full
copyright and permission notice from http://www.unicode.org/copyright.html
2016-02-06 10:40:58 +00:00
riastradh
3b7052de65 Avoid shadowing global `min'. 2016-02-06 02:40:49 +00:00
riastradh
98b6c9f000 Convert bool to target type before shift. 2016-02-06 02:39:51 +00:00
riastradh
e3e7bedb8f Avoid shadowing global `min'. 2016-02-06 02:39:18 +00:00
riastradh
843556aa56 Missed a spot. 2016-02-06 01:59:55 +00:00
riastradh
cd82f6357a Avoid shadowing global `max' from libkern. 2016-02-06 01:51:39 +00:00
riastradh
ef3b32b25e Don't return void.
Caught by pcc.  Thanks, pcc!
2016-02-06 00:31:58 +00:00
riastradh
ae6fa52c2a More useful array bounds check for enum values. 2016-02-05 23:49:26 +00:00
riastradh
c16e1a78e3 Omit unused definition of readw. 2016-02-05 23:46:40 +00:00
riastradh
74d7cf9b83 Don't ask `size < 0' when size is unsigned. 2016-02-05 23:45:44 +00:00
skrll
178de58605 Use the port status straight after the reset and not after the
usbd_clear_port_feature(dev, port, UHF_C_PORT_RESET)

The Gadget USB HUB in the IBM x3250 sborrill sent me returns the wrong
status and this would appear to leave the attached cdce(4) in the default
state.  The next device probed fails as a result.
2016-02-05 15:41:49 +00:00
msaitoh
0fce7fa801 s/max/ralmax/. No functional change. 2016-02-05 13:06:24 +00:00
christos
54eb2755d8 PR/50744: NONAKA Kimihiro: Protect more stuff with _KERNEL && _KMEMUSER to
make uvm_extern.h compile standalone again for net-snmp.
2016-02-05 04:18:55 +00:00
knakahara
3bf8089a9a fix: "vmstat -C" CpuLayer showed only the last cpu values. 2016-02-05 03:04:52 +00:00
riastradh
3bc04b00b8 Declare in6_tmpaddrtimer_ch in in6_var.h.
Do not declare extern variables in .c files!
2016-02-04 02:48:37 +00:00
palle
cd467f86fe sun4v: extend dmmu_set_secondary_context() to handle both sun4u and sun4v. ok martin@ 2016-02-03 20:33:52 +00:00
martin
be2b75ed4e New rawrite32 version out (small bugfixes) 2016-02-03 15:06:25 +00:00
christos
9e5e0b5731 PR/50749: David Binderman: check bounds before dereference. 2016-02-03 05:29:43 +00:00
christos
ba3275f8a0 PR/50748: David Binderman: check bounds before dereference 2016-02-03 05:27:53 +00:00
christos
386b5e25f6 one more. 2016-02-02 20:16:59 +00:00
christos
f09f85eee3 more relocations. 2016-02-02 20:16:08 +00:00
christos
a0e0372037 Add more relocation constants 2016-02-02 20:13:59 +00:00
skrll
fc42e17ef4 Fix up bcm283[56] bus_space(4) to really use bus addresses for
peripherals, etc

Simplifies the code in various places and uses the abstraction in
more places. (bcm2835_gpio_subr.c still doesn't)
2016-02-02 13:55:50 +00:00
pooka
b47801c831 Remove leading spaces.
Bet you didn't see that one coming.
2016-02-02 13:07:30 +00:00
pooka
f30877a77a optimize for size a.k.a. operation nuke trailing spaces 2016-02-02 13:02:34 +00:00
pooka
a8b37cc8bf Add capability to attach external memory to files on rumpfs. This
feature is useful e.g. for tight-memory systems where you don't need
block storage, but still need to provide some data via files.
2016-02-02 12:22:23 +00:00
pooka
4dac192382 regen 2016-02-02 01:15:58 +00:00
pooka
ae1e89ede5 snarf fcntl definitions 2016-02-02 01:15:24 +00:00
pooka
0bb9321be6 periodic regen (because having new rcs ids in comments is most useful) 2016-02-02 01:14:26 +00:00
christos
d3f9dfe250 PR/50740: David Binderman: Provide a copy constructor. 2016-02-01 17:44:19 +00:00
christos
c41563914b PR/50738: David Binderman: Check bounds before dereferencing. 2016-02-01 17:40:49 +00:00
christos
0b5365f66d PR/50737: David Binderman: Check bounds before dereferencing. 2016-02-01 17:39:41 +00:00
christos
ff4ea0ba8c PR/50736: David Binderman: Check bounds before dereferencing. 2016-02-01 17:38:31 +00:00
christos
0a67dc8231 PR/50735: David Binderman: Check bounds before dereferencing. 2016-02-01 17:37:39 +00:00
christos
ae157f388e - split a long line.
- remove extra test.
- move d_namlen setting to msdosfs_vnops.c to avoid the ifdef.
2016-02-01 16:53:23 +00:00
christos
654889b793 Do less work under the kernel lock, otherwise dhcpcd aborting causes us
to deadlock.
2016-02-01 16:32:28 +00:00
nonaka
29853c9ec4 regen 2016-02-01 14:55:09 +00:00
nonaka
f2ef7d4409 Add NTT DOCOMO L-05A. 2016-02-01 14:54:33 +00:00
martin
456f8519f7 Avoid unsigned/signed comparision warning to fix the build. 2016-02-01 10:37:57 +00:00
msaitoh
ca22ec0521 Add parenthesis for the addr argument of ISMT_DESC_ADDR_RW(addr, is_read).
It was no real bug.
2016-02-01 08:53:36 +00:00
msaitoh
fe39cc6e62 Rename macro (sync with pcidevs rev. 1.1246). No functional change. 2016-02-01 08:28:48 +00:00
msaitoh
e376993f6f Regen. 2016-02-01 08:27:43 +00:00
msaitoh
7c4512ae81 - s/82081/82801/ from OpenBSD.
- 0x2829 is SATA. 0x282a is RAID.
2016-02-01 08:27:17 +00:00
riz
716b7d01f8 Implement the 'io' provider for DTrace. From riastradh@, with
fixes from me.
2016-02-01 05:05:43 +00:00
christos
76530fdb8e We can't depend on dp->d_namlen existing for the parts that are used in
makefs(8).
2016-02-01 02:59:33 +00:00
pooka
524147ffc7 Move "shotgun approach to rump syscalls" from rump.h to a separate header,
sort of as a hint that relying on those macros is not necessarily the
way you want to do things in 2016.  Include things from rump.h for compat
for the time being, though.
2016-01-31 23:14:34 +00:00