263184 Commits

Author SHA1 Message Date
jmcneill
f62244a84d Use acpi_md_intr_establish/disestablish to handle device IRQs. The existing
code abused AcpiOsInstallInterruptHandler, which is meant for installing
the SCI handler.
2018-11-16 23:05:50 +00:00
jmcneill
f608d0812d Add MD functions for establishing and disestablishing interrupt handlers. 2018-11-16 23:03:55 +00:00
scole
4c8f1ccfba PR toolchain/53710
allow 64bit target to compile on 32bit host

Ok'ed by <christos>
2018-11-16 20:49:08 +00:00
martin
a67ab68028 Now that size estimates are not way off anymore, only double the size
for the minimal suggested partition.
2018-11-16 19:55:18 +00:00
martin
7a2eea57bf Sync install size estimates with current reality 2018-11-16 19:54:03 +00:00
jmcneill
118f5d8840 Add intr_establish_xname stub 2018-11-16 19:46:52 +00:00
jakllsch
201aaa4d77 make pcihost_intr_evcnt static, like the other functions 2018-11-16 19:32:01 +00:00
kre
b8df536590 Belated Condolonces on the loss of your m_devget() copy argument.
In sympathy we offer you a welcome to 8.99.26
2018-11-16 17:18:29 +00:00
martin
a7088d468b Bump image size 2018-11-16 17:07:42 +00:00
martin
a1b609db0f Bump space for ramdisk image 2018-11-16 17:07:10 +00:00
jmcneill
664652b0fe Restore acpi_pci_ignore_boot_config lost in previous commit 2018-11-16 15:41:27 +00:00
jmcneill
cce19cc266 Add intr_establish_xname support to arm and expose it to intrctl 2018-11-16 15:06:21 +00:00
tsutsui
730f9ec0e6 Fix boot failure from installation floppies. PR port-macppc/53103
Also bump version to denote a visible fix.
Should be pulled up to netbsd-8 and netbsd-7.
2018-11-16 14:58:54 +00:00
mlelstv
dd276a2ec2 The test for regular file was wrong.
From yarl on freenode, thanks!
2018-11-16 13:55:17 +00:00
martin
9dff62c0b5 Adjust for libcurses bump 2018-11-16 13:02:52 +00:00
ryo
b3731ba225 fix type of argument for va_arg; don't round to 32bit. 2018-11-16 10:51:08 +00:00
blymn
a887f4aff9 Fix for PR lib/52063
Many thanks to  Onno van der Linden (o.vd.linden@quicknet.nl) for providing
the bulk of the patch that fixes the issue.
2018-11-16 10:12:00 +00:00
blymn
9e52bb661f Bump libcurses minor version due to fix for lib/52063 2018-11-16 10:09:29 +00:00
ozaki-r
4dae353ba2 rtadvd: use %u to print unsigned variables 2018-11-16 08:57:10 +00:00
manu
b553c427d4 Use reclaim2 to fix reclaim/lookup race conditions
The PUFFS reclaim operation had a race condition with lookups: we could
be asked to lookup a node, then to reclaim it before lookup completion.
At lookup completion, we would then create a leaked node.

Enter the PUFFS reclaim2 operation, which features a nlookup argument.
That let us count how many lookups are pending and avoid the above
described scenario. It also makes the codes simplier.
2018-11-16 02:39:02 +00:00
manu
b108c62b50 Build fix
From David H. Gutteridge
2018-11-16 00:34:50 +00:00
jmcneill
8921709252 If the bootloader specifies a boot mac-address, use it to find the root device. 2018-11-15 23:53:40 +00:00
jmcneill
a158dd7e2e Add support for loading kernels over NFS. 2018-11-15 23:52:33 +00:00
jakllsch
269297e942 Correctly handle signed/unsigned quantities in kernel HID parser.
Should fix PR kern/53605.
2018-11-15 23:01:45 +00:00
jdolecek
fa57652bf8 remove #ifdef DEBUG printf, it seems to have outlived it's usefulness 2018-11-15 22:15:43 +00:00
scole
1651344f1f enable some incorrectly commented-out code 2018-11-15 20:39:18 +00:00
scole
a9d15dd126 change "PCB" to "pcb" 2018-11-15 20:06:23 +00:00
jmcneill
8ae4ffc8e7 A64 timer errata can cause the timer to fire too soon, so skip KASSERT here too. 2018-11-15 17:15:52 +00:00
riastradh
392573537a No need to write any initializer here, casted or otherwise.
(Sorry about the build breakage; thanks, kre!)
2018-11-15 16:58:56 +00:00
maxv
631fa80507 Woah man, fix enormous leak.
Possible info leak: [len=1056, leaked=931]
	#0 0xffffffff80bad351 in kleak_copyout
	#1 0xffffffff80b2cf64 in uvm_swap_stats.part.1
	#2 0xffffffff80b2d38d in uvm_swap_stats
	#3 0xffffffff80b2d43c in sys_swapctl
	#4 0xffffffff80259b82 in syscall
2018-11-15 14:19:23 +00:00
jmcneill
5d8748607d WSDISPLAYIO_SFONT: Do not attempt to print to the console in the middle of
resizing when DEBUG is defined.
2018-11-15 13:50:51 +00:00
kre
1a51c84815 Update signature in prototype of efi_relva() to match
change in definition in previous, and explicitly cast
NULL to paddr_t to avoid gcc noise.
2018-11-15 11:20:59 +00:00
maxv
019979a1f3 Reduce indentation level. 2018-11-15 11:18:33 +00:00
maxv
ec3805d3b8 Remove the 'copy' argument from m_devget(), unused. While here rename
off0->off.
2018-11-15 10:56:29 +00:00
maxv
67fb29629f Add KASSERTs. 2018-11-15 10:37:26 +00:00
martin
352a555edc Make use of the new positional parameters to better describe the first
partitioning step. Remove size limits/hints encoded in the translations
and replace them by values from the code.
2018-11-15 10:34:21 +00:00
maxv
5c98710094 Remove the 't' argument from m_tag_find(). 2018-11-15 10:23:55 +00:00
martin
ac730b5183 Add a new helper function to show messages with positional parameters 2018-11-15 10:23:32 +00:00
maxv
e7985a6afd Simplify the mtag API:
- Remove m_tag_init(), m_tag_first(), m_tag_next() and
   m_tag_delete_nonpersistent().

 - Remove the 't' argument from m_tag_delete_chain().
2018-11-15 10:06:06 +00:00
maxv
decaffde75 Merge uipc_mbuf2.c into uipc_mbuf.c. Reorder the latter a little to gather
similar functions. No functional change.
2018-11-15 09:38:57 +00:00
martin
34ccfcc91f Explicitly document the incompatibility between USE_PIGZGZIP
and USE_XZ_SETS. Disable the latter if the former is enabled.
2018-11-15 09:23:50 +00:00
knakahara
a8700cbec5 tprof: Add silvermont, airmont support.
I tested on Atom C2758 (Rangeley).
2018-11-15 07:20:31 +00:00
riastradh
71c39f780a Don't try to interpret the second half of a 64-bit BAR as another one.
From msaitoh@.
2018-11-15 06:53:58 +00:00
riastradh
fe26b32950 Use callout_halt, not callout_stop, for FreeBSD callout_drain shim.
Callers expect callout_drain will wait for it to complete if it has
fired.
2018-11-15 05:43:57 +00:00
riastradh
191d101a58 cbrtl_powl is xfail only if long double has more bits than double. 2018-11-15 05:14:20 +00:00
riastradh
3075d1d32f Make the direct-map API always available, but fail if KASAN or rump.
(Only for architectures that support it at all; on others,
__HAVE_MM_MD_DIRECT_MAPPED_PHYS/IO are still undefined and the
functions unimplemented.)

This gives modules like zfs an opportunity to use it.

While here, fix the one caller of mm_md_direct_mapped_phys that
ignored the return value (and make sure to call pmap_kremove/update
before uvm_km_free).
2018-11-15 04:59:02 +00:00
riastradh
d810a3da5f Include <bsd.own.mk> before using ACTIVE_CC. Fixes make errors. 2018-11-15 04:57:00 +00:00
riastradh
5016a9c839 Respect the __HIDE_DELAY kludge like on other ports. 2018-11-15 04:56:52 +00:00
riastradh
c3426bd36f Need <dev/mm.h> for mm_md_direct_mapped_phys.
It turns out this code always sees __HAVE_MM_MD_DIRECT_MAPPED_PHYS as
disabled on amd64, for reasons that I shall address forthwith, but it
is enabled on aarch64 and so the MKZFS=yes build breaks.
2018-11-15 04:55:49 +00:00
riastradh
6af8fc2044 Be consistent about _KERNEL vs _HARDKERNEL in zfs.
As it happens, on x86 both _HARDKERNEL and _KERNEL get defined; see
the conditional in sys/rump/Makefile.rump that _refrains_ from
defining _RUMPKERNEL on x86.

So the only version of this code that has been tested is the one with
all of it included.  But on, e.g., aarch64, we do not get _HARDKERNEL
here, and the code fails to build because some things use the field
struct spa::spa_deadman_cycid under _KERNEL when it is declared only
under _HARDKERNEL.

If there's a reason _not_ to use this in rump -- and it's not obvious
to me why -- then all access to the field needs to agree to use
_HARDKERNEL.
2018-11-15 04:55:38 +00:00