Commit Graph

235727 Commits

Author SHA1 Message Date
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
rtr
a05061a0c1 mtod mbuf to sockaddr * for so_send(). 2015-05-10 18:55:22 +00:00
jmcneill
5fce422d60 Tegra SATA ungating support 2015-05-10 15:31:48 +00:00
christos
3af9216dd2 CID 976256: Help coverity understand that when the list is empty the head
is NULL.
2015-05-10 14:08:54 +00:00
christos
524046d70c PR/975220: Check return of kthread_create 2015-05-10 14:05:22 +00:00
christos
65bd814e25 CID 274829: Check error from fd_getfile to avoid NULL deref immediately
after.
2015-05-10 14:00:42 +00:00
jmcneill
23bcc13e35 half-attached sdhc breaks reset for some reason, so disable eMMC until we fix it 2015-05-10 13:24:11 +00:00
jmcneill
41f97c365d correct CAR_PLLX_MISC_REG value 2015-05-10 11:12:07 +00:00
jmcneill
84ff9bb7c1 Tegra HD audio support (untested as it is for HDMI output) 2015-05-10 11:04:59 +00:00
martin
e21052b4e5 Backout the previous incorrect fix for PR 49440 and redo it more globaly:
get rid of the global "yesno", introduce utility functions "ask_yesno()"
and "ask_noyes()" instead, greatly simplifying a lot of code.
Pass in a pointer to the return value to various "set source" menus.
2015-05-10 10:14:02 +00:00
martin
b3b23df81a Sort DBG vs CPPFLAGS in the DEBUG case, as requested by Christos 2015-05-10 09:13:15 +00:00
pgoyette
5608b80ca0 Regen for changes related to separation of compat_sysv syscalls into a
separate module.
2015-05-10 08:13:41 +00:00