pgoyette
9681555f60
The compat_sysv module now depends on sysv_ipc module.
2015-05-13 02:08:20 +00:00
pgoyette
75eb6c4280
Create a new sysv_ipc module to contain the SYSVSHM, SYSVSEM, and
...
SYSVMSG options. Move associated variables out of param.c and into
the module's source file.
2015-05-13 02:06:25 +00:00
pgoyette
40997f1238
Another xxxfini() routine.
2015-05-13 01:23:10 +00:00
pgoyette
446e5f46eb
More prep: add a xxxfini() routine to each subcomponent so we can
...
clean up after ourselves. Mostly, this checks to make sure that
there are no active itmes, and then deallocates wired kernel virtual
memory. For SYSVSEM, we also disestablish the exithook() so we
won't try to call it after destroying its memory pool!
2015-05-13 01:16:15 +00:00
pgoyette
748778c4ee
More preparation for modularizing the SYSVxxx options. Here we
...
change the kern.ipc.sysvxxx sysctls into dynamic values, so each
sub-component of SYSVxxx can declare its own availability.
2015-05-13 01:00:16 +00:00
christos
0c472000e5
When in Rome... use true or false, instead of TRUE and FALSE.
2015-05-12 23:16:47 +00:00
jmcneill
0ea784f51b
add titemp
2015-05-12 20:54:30 +00:00
jmcneill
4408c5e08a
Add driver for Texas Instruments TMP451 Temperature Sensor
2015-05-12 20:54:08 +00:00
christos
6ebc227033
rump is compiled with COMPAT_OSOCK not COMPAT_OIFREQ and the code in if.c
...
is not handling this case properly. Make this work by checking again if
we need to convert struct ifreq here, and if we do, we do it ourselves.
2015-05-12 20:42:46 +00:00
christos
440c00cdaa
libasan depends on libstdc++ so move it under the wait barrier.
2015-05-12 19:43:50 +00:00
msaitoh
8fccbbaabd
Catch up FreeBSD and OpenBSD's changes. Not completed but it's better than
...
before:
- Add support rdrand, rdseed, fxrstor, ldmxcsr, stmxcsr, xsare, xrstor,
xsaveopt, cflush and some others.
- Check REX bit correctly.
- Print correct register.
- Fix a lot of bugs.
- KNF.
2015-05-12 19:24:57 +00:00
christos
72b528eece
Now that _PROP_ISSPACE does not include the EOF check, put the check for
...
EOF inside the loop. Also fix another unbounded loop that did not check for
EOF. From Mateusz Kocielski
XXX: pullup-7
2015-05-12 14:59:35 +00:00
roy
e0cc834e99
ioctl -> prog_ioctl as pointed out by pooka@
2015-05-12 14:05:29 +00:00
jmcneill
069a031648
copy bootargs from uboot before we turn on the MMU, for the benefit of kernels without __HAVE_MM_MD_DIRECT_MAPPED_PHYS
2015-05-12 10:37:20 +00:00
pgoyette
a7268a9779
Finish work started in previous commit. Ensure that initialization
...
code is only called once for built-in variants of the module.
2015-05-12 10:20:14 +00:00
martin
a7b45466db
No kernel modules for acorn26
2015-05-12 08:25:28 +00:00
skrll
7f61cd4134
Add some KASSERTs to catch similar bugs to the cnptes/nptes one
2015-05-12 07:07:16 +00:00
pgoyette
ae8c40588e
In preparation for modularization of the SYSV* options, restore the
...
use of opt_sysv.h to get the -DSYSVxxx definitions.
2015-05-12 05:19:20 +00:00
msaitoh
b5eb0b6b3e
Add missing check for db_Grp9. This change fixes a bug that cmpxchg8b can't
...
be disassembled.
2015-05-12 05:18:50 +00:00
pgoyette
88e94fddb7
Don't manipulate the autoconfig databases for built-in module.
...
Thanks, christos!
2015-05-12 02:38:00 +00:00
christos
5c5210c091
Like the non-host mkdep don't print ./foo.h as a dependency, but simplify
...
it to foo.h. This was causing problems with:
.y.h: ${.TARGET:.h=.c}
where .h was ./cgram.h and the source became ./cgram.c confusing for example
/usr/src/tools/lint1 because make had both cgram.c and ./cgram.c in the list
of sources, trying to build both of them in parallel thinking that they were
different files. Since the regular mkdep does not produce such dependencies,
the regular build does not suffer from this issue.
2015-05-12 00:04:34 +00:00
msaitoh
24497ad5c7
Use roundup2() and uintptr_t. Adviced by riastradh@.
2015-05-12 00:00:35 +00:00
matt
5a05d0f792
Make sure nptes is a multiple of PAGE_SIZE / L2_S_SIZE.
2015-05-11 22:28:22 +00:00
jmcneill
8300b51deb
add ath@pci (mini-PCIe expansion slot)
2015-05-11 21:46:50 +00:00
martin
b0b97e486a
acorn26 probably was not meant to use the arm32 genassym
2015-05-11 21:26:41 +00:00
martin
840d8b9a07
Missed a few more "yesno" in previous
2015-05-11 21:07:56 +00:00
christos
2a8cfbd271
one t in literal.
2015-05-11 19:37:51 +00:00
christos
14963fec7c
add new lint test.
2015-05-11 17:22:37 +00:00
christos
94ac2a41a2
add one more test
2015-05-11 17:21:32 +00:00
christos
cd5bb2fe49
handle compound literals with a trailing comma
2015-05-11 17:20:06 +00:00
christos
272b1fe359
Don't treat NUL (EOF) as SPACE. All the code that uses _PROP_ISSPACE() checks
...
explicitly for _PROP_EOF() anyway, and this can be abused to cause run beyond
the end of buffer DoS (Mateusz Kocielski)
XXX: pullup-7
2015-05-11 16:50:35 +00:00
christos
ad3d79508d
Limit size of xml buffer for userland requests (From Mateusz Kocielski)
...
XXX: pullup-7
2015-05-11 16:48:34 +00:00
martin
5270515f54
Make "ask_yesno" and "ask_noyes" take a const char * as argument, moving
...
the deconst() dance into the utility functions and simplifying all callers.
2015-05-11 13:07:57 +00:00
martin
f92de306f4
More (ab-)usages of "yesno"
2015-05-11 13:01:08 +00:00
martin
cc33bc91e6
Remove a few more (ab-)usages of "yesno".
2015-05-11 12:57:55 +00:00
msaitoh
cd0f0f4c9e
regen.
2015-05-11 10:43:10 +00:00
msaitoh
47817f48bd
Add Samsung SM951.
2015-05-11 10:42:00 +00:00
pgoyette
0caf2564d1
Fix the #ifdef _MODULE stuff so that the syscall packages and sysctl stuff
...
gets handled properly even in built-in module case.
XXX
Whatever was I thinking when I put those conditionals in? And wouldn't it
be a wonderful thing to have some atf regression tests to actually catch
errors in the compat{,_sysv} modules? :)
2015-05-11 10:32:13 +00:00
msaitoh
b7e9b85478
Re-allocale buffer if a buffer for microcode is not 16byte aligned.
2015-05-11 08:24:50 +00:00
martin
a83f4e2ce4
Make it compile on architectures that do not support INET6 in sysinst
2015-05-11 06:58:13 +00:00
skrll
8e91d9b041
Remove '\n' from panic message.
2015-05-11 06:44:36 +00:00
hsuenaga
afdcc548f3
add MARVELL Armada XP MV78260 B0(rev.2)
...
recent OpenBlocks AX3 uses it.
2015-05-11 05:49:48 +00:00
pgoyette
2d1ae66403
Additional commentary for where other duplicate entries might need to
...
be made (amd64-xen, i386-xen, and i386-xen-pae).
2015-05-11 01:05:16 +00:00
jmcneill
60e61de69c
remove debug printf
2015-05-10 23:56:21 +00:00
jmcneill
3bc45873a8
add tegrai2c (I2C[12345]) and seeprom on I2C1
2015-05-10 23:51:08 +00:00
jmcneill
520aad9552
Tegra I2C driver
2015-05-10 23:50:21 +00:00
jmcneill
987ded3f77
Many I2C drivers hold spin locks between iic_acquire_bus / iic_release_bus.
...
Avoid sleeping while owning the I2C bus.
2015-05-10 22:54:06 +00:00
mlelstv
dfeac6dbe6
Don't report EINVAL errors when searching the bootwedge, this error
...
is most likely the result of reading beyond the end of the wrong disk.
2015-05-10 22:21:38 +00:00
mlelstv
ef0ab974cd
If BTINFO_ROOTDEVICE is set but isn't a device name, then treat it
...
as a root specification. This allows strings like wedge:wedgename.
2015-05-10 22:18:58 +00:00
joerg
66e60a49ac
Include printf by default even for SMALL builds. It is used e.g. by
...
dhcpcd and as such required by most ramdisk images. Allow turning it off
again by TINYPROG.
2015-05-10 20:30:54 +00:00