265376 Commits

Author SHA1 Message Date
palle
f23fb3eab1 Introduce getstickcmpr() function 2019-02-08 20:09:24 +00:00
palle
654c5f5028 sun4v: update the TODO file noting (at least) some progess with sun4v 2019-02-08 19:55:40 +00:00
palle
d4265d9dcb sun4v: introduce macros for handling spill traps from userlevevel @ traplevel 1 (from OpenBSD) - spill traps at level 1 from userspace now works better 2019-02-08 19:45:24 +00:00
palle
aacaeb3360 sun4v: add comment documenting the contents of the %g2 register - no functional changes 2019-02-08 19:26:25 +00:00
christos
934117fbf7 PR/53956: Havard Eidnes: raidframe fails to create raid set on disks.
The test to check if force was reversed when the code was factored out.
2019-02-08 13:37:46 +00:00
mrg
37a8336060 add a quick note about gcc 7 likely causing update build failures. 2019-02-08 09:57:01 +00:00
mrg
3330ae4f37 IA64_NO_LIBGCC_TFMODE is no more. 2019-02-08 09:42:13 +00:00
mrg
20154e01b0 note GCC 6.5 and 7.4 imports. 2019-02-08 09:39:14 +00:00
mrg
b4f3db3927 switch aarch64, alpha, i386, mips, powerpc, sparc, sparc64,
and x86_64 to GCC 7.
2019-02-08 09:35:00 +00:00
msaitoh
0a16860387 - Add 88E1240.
- Rename E1116R_29 to E1318S
2019-02-08 09:17:12 +00:00
msaitoh
a02cd76252 Regen. 2019-02-08 09:16:28 +00:00
msaitoh
76e242941a - Add Marvell 88E1240.
- Marvell model 0x0029 is not 88E1116R but E1318S.
2019-02-08 09:16:11 +00:00
isaki
df508298eb Rewrite modify_single() to make compilable on gcc7. 2019-02-08 08:55:35 +00:00
mrg
0d5104591d add final missing directory from /usr/include:
./usr/include/netmpls
2019-02-08 08:51:42 +00:00
mrg
8255ce9ee0 make *fd*.c's fd_dev_to_type() always a static inline. some
have it as a const, and have code to copy the defaults to
modify them before using them, but that probably requires a
real test to feel confident in changing.
2019-02-08 08:47:35 +00:00
isaki
9d27cfd2fe Make compilable even SRAMDEBUG. 2019-02-08 08:41:11 +00:00
mrg
d67c719a5f add two more missing subdirs:
./usr/include/dev/pud
  ./usr/include/dev/putter
2019-02-08 08:22:09 +00:00
ryo
3f09074d57 - atomic_*_{8,16}_nv() must return a new value, not an old value.
- use "dmb sy" for atomic_*{8,16}_nv() in the same way as atomic_*{32,64}_nv().
2019-02-08 06:56:56 +00:00
msaitoh
d424217459 - Add support for I210 SGMII Flash-less device.
- Add KASSERT.
- Update TODO list.
2019-02-08 06:33:04 +00:00
msaitoh
fa9e850ea5 Regen. 2019-02-08 06:29:59 +00:00
msaitoh
2f1366231d - Add Some Freescale MPC834x devices from OpenBSD.
- Add Intel I210 SGMII Flash-less device from the spec update document.
2019-02-08 06:29:08 +00:00
mrg
b5f0f6a619 add missing ./usr/include/dev/iscsi. 2019-02-08 06:08:20 +00:00
mrg
3f41337184 add missing break for CP_COHER_BASE case.
convert fallthru comments.
2019-02-08 04:11:53 +00:00
msaitoh
45c4b73120 Fix bitstring format of Intel CPUID Architectural Performance Monitoring
Fn0000000a %ebx.
2019-02-08 04:06:00 +00:00
mrg
424610db8d clean all the temporary and other files in a build. 2019-02-08 03:59:34 +00:00
kamil
120dbb13e3 Refactor kill* test in t_ptrace_wait*
Drop original scenario of kill1 (PT_CONTINUE(SIGKILL)) as it duplicates
traceme_sendsignal_simple1.

New kill tests:
 - kill1: ptrace(PT_KILL) (previously kill2)
 - kill2: kill(SIGKILL)
 - kill3: killpg(SIGKILL)

All kill* tests share the same function body.

All tests pass.
2019-02-08 03:08:00 +00:00
mrg
56608fa62e add aliases for evbarm without saying 'earm':
- copy all the 'evbearm' alias as 'evbarm'.
2019-02-08 02:05:32 +00:00
mrg
053817057e - earm* seems to work now
- sun2 an vax build now
- mips*, powerpc, and sparc64 are ready to switch
- mac68k has an untested and an uncommited change to build
- everything else except ia64 and powerpc64 builds
2019-02-08 02:04:29 +00:00
mrg
1aa3d81bd8 regen to give "earm" a v5 default again. 2019-02-08 01:29:44 +00:00
mrg
bd3caebfe8 give netbsd/arm a v5 default again. 2019-02-08 01:29:11 +00:00
macallan
7196b89bd5 - correct cpu voltage
- add cpu speed table
- include sun50i-h5.dtsi
Now thermal sensors and cpu speed control work
2019-02-08 00:50:45 +00:00
kamil
fe7f44d815 Correct a style in description of PT_STEP tests in t_ptrace_wait* 2019-02-08 00:31:46 +00:00
kamil
60980e6752 Refactor definition of PT_STEP tests into single macro
No functional change intended.
2019-02-08 00:29:41 +00:00
macallan
c6dee116b6 move sunxide2ccu to pass 3, now it works on my H5
from jmcneill@
2019-02-08 00:19:57 +00:00
mrg
96c7bcf6e6 include bsd.own.mk incase it hasn't already been included. 2019-02-07 23:53:20 +00:00
mrg
503eacff30 bump ramdisk sizes by 100kb for GCC 7 bloaty. 2019-02-07 23:11:10 +00:00
kamil
c18cba814b Refactor GPR and FPR tests in t_ptrace_wait* tests
This change deduplicates the code and puts all the test into shared
function body.

No functional change except ranaming tests regs* to access_regs* and
fpregs* to access_fpregs*.
2019-02-07 23:03:33 +00:00
christos
b0735e4145 Add some better error handling from FreeBSD, although we don't
suffer from the same issue, since we don't decrement p->next, like
FreeBSD does because we don't have multibyte support (yet). We
choose to do this so we can fail faster and more predictably.

Here's the original FreeBSD message:

When passed the invalid regular expression "a**", the error is
eventually detected and seterr() is called. It sets p->error
appropriatly and p->next and p->end to nuls which is a never used char
nuls[10] which is zeros due to .bss initialization. Unfortunatly,
p_ere_exp() and p_simp_re() both have fall through cases where they set
the error, decrement p->next and access it which means a read from what
ever .bss variable comes before nuls.

Found with regex_test:repet_multi and CHERI bounds checking.

Reviewed by:	ngie, pfg, emaste
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D10541
2019-02-07 22:22:31 +00:00
christos
2ebb8fd343 Fix OOB read from FreeBSD:
The bug is an out-of-bounds read detected with address sanitizer that
happens when 'sp' in p_b_coll_elems() includes NUL byte[s], e.g. if it's
equal to "GS\x00". In that case len will be equal to 4, and the
strncmp(cp->name, sp, len) call will succeed when cp->name is "GS" but the
cp->name[len] == '\0' comparison will cause the read to go out-of-bounds.

Checking the length using strlen() instead eliminates the issue.

The bug was found in LLVM with oss-fuzz:
	https://reviews.llvm.org/D39380
2019-02-07 22:13:52 +00:00
rin
5f129d1d91 Add commented-out modern USB NICs for users easily finding them out. 2019-02-07 21:53:50 +00:00
rin
a70d7d88f5 Comment out ure(4) and its PHY drivers for now to unbreak build. 2019-02-07 21:51:59 +00:00
roy
5a549cc43d Note import of dhcpcd-7.1.1 2019-02-07 21:40:40 +00:00
roy
0721ee5ec7 dhcpcd now builds without these warnings disabled. 2019-02-07 21:38:53 +00:00
roy
4453551c2e Sync 2019-02-07 21:37:36 +00:00
roy
6199946f85 Import dhcpcd-7.1.1 with the following changes:
* IPv4LL: Fixed build with this disabled
* IPv4LL: Remember last address between carrier resets
* BSD: Fixed initial link infos reported as LINK_STATE_UNKNOWN
2019-02-07 21:34:30 +00:00
mlelstv
d83c164e8c Support configuration of alternate functions. 2019-02-07 21:16:35 +00:00
rin
7829284350 Oops, revert previous.
Combinations between NICs and PHYs are unpredictable...
2019-02-07 20:56:27 +00:00
rin
675f004606 Fix kernel size overflow caused by addition of ure(4) and PHY drivers.
Modern USB NICs are useful due to availability in the market, although
they cannot exhibit full performance with ohci(4). Also, some of them
support RX/TX offloading, which can be useful even with ohci(4).

Therefore, rather add modern NICs in usbdevices.config.

Instead, remove PHY drivers that cannot be used with zaurus.

Now, all kernels fits within 5 MiB = 5120 KiB:
- GENERIC	5105K ( 15K free)
- C700		5098K ( 22K free)
- INSTALL 	4991K (129K free)
- INSTALL_C700	4681K (439K free)
2019-02-07 20:33:44 +00:00
skrll
406e0d1ea5 Convert to kmem 2019-02-07 13:48:27 +00:00
skrll
e0062b97b1 more KNF (remove names from prototypes) 2019-02-07 13:43:44 +00:00