Commit Graph

264764 Commits

Author SHA1 Message Date
knakahara 37f36945b2 Add KERNEL_LOCK in ppptioctl() to protect struct ppp_softc members.
struct linesw.i_ioctl can be called without any preservation when the caller's
struct cdevsw is set D_MPSAFE such as ucom(4).
2019-01-24 09:31:09 +00:00
mrg 0a9044b05b mknative gcc7 for ppc and arm64. 2019-01-24 08:56:43 +00:00
msaitoh 383c964987 No functional change intended:
- Use "do {} while (/*CONSTCOND*/false)" for null DPRINTF().
- Reduce indent level of wm_linkintr_gmii().
2019-01-24 04:50:04 +00:00
cherry 8b9c2e1032 The event_channel_op hypercall uses a newer API since
__XEN_INTERFACE_VERSION__  0x00030202

Since hvm_op only supports event_channel_op via the newer API, we
can't get away with our current event_channel_op_compat shim.

We thus introduce the new API to our internal hypercall C API
interface.

This change should have no effect on the PV kernels, since they will
continue to use the pre 0x00030202 API.
2019-01-24 04:16:16 +00:00
cherry c55fd1a555 hvm_op returns a signed value.
The pattern is that a hypercall which returns a value < 0 may imply an
error.
2019-01-24 04:11:38 +00:00
macallan 06f467a6c5 get rid of homegrown pci_conf_hook(), use the mechanism from arm32_pci_chipset
instead
less difference to evbarm
2019-01-23 22:13:01 +00:00
christos a964285a66 - fix wrong size allocation that triggers buffer overflow
- remove unneeded casts and assertions
XXX: pullup-8
2019-01-23 20:46:18 +00:00
uwe 7142fa3957 It's section 3 page, not section 2. While here, xref puffs(3) in the
SEE ALSO section too.
2019-01-23 19:43:49 +00:00
jmcneill 20220d2989 skip clflush on aarch64, too 2019-01-23 19:02:49 +00:00
martin 076f00a246 There are aarch64 Cortex cpus that do not trap on some floating point
exceptions - so apply the arm handling for aarch64 as well.
2019-01-23 17:36:01 +00:00
dholland 9187482ccd Some acronyms related to SIM cards; PR 53901 from Nikolai Lifanov. 2019-01-23 16:22:14 +00:00
sborrill 83f5934395 Don't call OS_ReadSysInfo Platform class call on RISC OS 3 2019-01-23 14:52:49 +00:00
sborrill fd1714100d Add xosmodule_enumeratewithversion() to allow operating systems modules
to be enumerated along with their version numbers.
2019-01-23 14:49:00 +00:00
kamil 0c9e5725c2 Change the place of initproc initialization
The initproc variable cannot be initialized in start_init as there
is a race between vfs_mountroot and start_init.

PR kern/53817 by Andreas Gustafsson
2019-01-23 13:38:30 +00:00
ryoon e7131048d8 Fix no options DEBUG nor DIAGNOSTIC build 2019-01-23 11:15:11 +00:00
msaitoh 7b8ad7df1d - Move the location of calling setup_eee() in ixgbe_attach(). The previous
location was too early. The new location is before calling
  ixgbe_set_phy_power().
- Restore call of setup_eee() in ixgbe_init_locked(). It was removed in
  rev. 1.99 (FreeBSD r320688).
- When calling setup_eee(), pass enable/disable correctly.
2019-01-23 09:47:52 +00:00
msaitoh 65ced74619 Call ixgbe_init_swfw_semaphore(hw) before calling ixgbe_check_wol_support()
because ixgbe_check_wol_support()->ixgbe_check_wol_support()->
ixgbe_get_device_caps() accesses semaphore.
2019-01-23 09:01:24 +00:00
skrll 907cdcbbc0 Fix mvfr0.fptrap = 0 description 2019-01-23 07:41:54 +00:00
msaitoh b423de8d5e Fix build break (return type of mii_writereg). 2019-01-23 07:40:05 +00:00
msaitoh 5edd3f26a3 Welcome to 8.99.31 (MII {read,write}reg API change). 2019-01-23 07:05:52 +00:00
msaitoh 09af776371 Nowadays some UEFI BIOSes don't enable some PCI devices' address decoding.
To resolve this problem, pci_map.c rev. 1.34-1.36 changed the
pci_mapreg_(sub)map()'s to set the decode bit if it's not set. It's good for
almost all drivers, but some other drivers don't use pci_mapreg_map().
In drivers which don't use pci_mapreg_map(), some of them expilicitly enable
decoding but others don't. Add code to enable decoding to them.

 See also the following discussion:
	http://mail-index.netbsd.org/tech-kern/2017/03/22/msg021678.html
2019-01-23 06:56:19 +00:00
msaitoh c31a44f85d KNF. No functional change. 2019-01-23 05:50:34 +00:00
thorpej dfaf6e7909 Implement subroutines for parsing out some of the generic properties
specified in the pinctrl bindings, and adapt Meson, Rockchip, and
Allwinner pinctrl back-ends to use them.

Ok jmcneill@
2019-01-23 04:21:54 +00:00
msaitoh b155c19ac3 Make evbmips/conf/WGT624V3 compilable:
- Modify for new read/write API
- Do "#if 0" for unused structures.
2019-01-23 03:38:26 +00:00
kre bcc54a5c42 And as long as we're attempting to achieve perfection in code
that is never going to be executed, let's also check for possible
overflow in a sum that will never be computed...
2019-01-23 02:48:48 +00:00
kre 1f29642da2 There's no point setting errno, it is just overwritten by err
in the exit path ... this function never fails, it simply sometimes
doesn't actually expand the %m and just leaves the format string
intact.

And declare variables at the head of their scope, not at some random
place in the middle of the code, whatever C allows, that is just ugly.
2019-01-23 02:32:06 +00:00
christos 223b7e5915 limit allocation to PTRDIFF_T to appease gcc-7, from mrg@ 2019-01-23 02:00:00 +00:00
mrg bfe7e5d8b3 memset to zero the entire array, not just 8 bytes of it.
picked up by gcc7's checker that the array size has not
been multipled by the member size.

here, we had 8 but should have had 8 * sizeof(int).

XXX: real bug - pullup-7, pullup-8
2019-01-23 00:08:06 +00:00
mrg 1fbe8d0596 remove diag assert - the compiler demands fp is non NULL now. 2019-01-23 00:05:47 +00:00
mrg 571b11f4e9 - fix Makefile.gthr CONFIG_LINKS handling. demand only that
gthr-default.h source be found.  fix installing the symlink.
- -Wno-error=incompatible-pointer-types needed for libgomp/lock.c
- build new libsupc++ files with -std=gnu++1z
- install new libstdc++ bits files. (XXX use bits_sup_headers
  from libstdc++/include/Makefile.am with mknative-gccm)
- start to get libstdc++ to build: various flag updates.
2019-01-22 23:55:54 +00:00
mrg 77affcd9b5 mostly mknative-gcc for i386 and sparc and gcc 7.4.
sparc gets to libstdc++, and i386 has the same libgcc issue as amd64.
2019-01-22 23:52:21 +00:00
jmcneill cf80abde24 Add sun50i DE clocks. 2019-01-22 23:06:49 +00:00
jdolecek 062be89d87 fix pasto; still PR kern/53307 2019-01-22 22:22:06 +00:00
jdolecek 92aa3d3d61 add BADPMP quirk also for AMD Hudson AHCI SATA Controller, seems in some
configurations/BIOS versions the PMP reset works, in others not; it's better
to have the common configuration working

related to PR kern/53307
2019-01-22 22:14:20 +00:00
jdolecek 9787bdeaee add BADPMP quirk for Intel 82801JI SATA Controller (AHCI mode), which
apparently has problem with the PMP reset

part of PR kern/53307 - Christos machine
2019-01-22 22:09:27 +00:00
jmcneill c6c3e714d1 Enable parent clocks and de-assert resets 2019-01-22 21:45:39 +00:00
roy 70c6970391 Fix SMALLPROG build. 2019-01-22 21:38:08 +00:00
jmcneill 10139ac9e3 Add drivers for DE2 bus and clock controllers. 2019-01-22 20:17:36 +00:00
martin cf341f607a Support redrawing all windows when in a msg prompt via Ctrl-l. 2019-01-22 18:39:49 +00:00
skrll 18a9b5c8db Fix build after API change 2019-01-22 17:41:06 +00:00
jmcneill 4e922df3a9 Add sunxisramc 2019-01-22 16:36:07 +00:00
jmcneill 3474e94152 Add support for A64 and H6, and register self as a syscon 2019-01-22 16:35:48 +00:00
jmcneill 2eecdc14be dts updated to 4.20.3 2019-01-22 15:49:26 +00:00
jmcneill 08b496a70d Fix return type of lan9118_mii_readreg 2019-01-22 15:34:04 +00:00
jmcneill 41b86294f5 Update for 4.20.3 dts changes 2019-01-22 15:28:45 +00:00
roy 162ca8bc14 Note import of dhcpcd-7.1.0 2019-01-22 15:22:55 +00:00
roy e7231952c6 Sync 2019-01-22 15:20:21 +00:00
jmcneill 8dbb374eb8 Listen for PMFE_SPEED_CHANGED events and automatically update a9tmr frequency 2019-01-22 15:17:33 +00:00
roy da2c316c5d Import dhcpcd-7.1.0 with the following changes:
* NetBSD: sets SO_RERROR on to detect receive socket overflow
* BSD: route improvements to avoid listening for own changes
* IP6: implement IP6 address sharing
* BSD: catch UP/DOWN events when interfaces does support media changes
* IPv4LL: remember old address when carrier is lost
2019-01-22 15:16:24 +00:00
jmcneill 2084d65025 Merge conflicts. 2019-01-22 15:13:22 +00:00