Commit Graph

263171 Commits

Author SHA1 Message Date
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
riastradh
3c01401a94 Omit unused definition with broken cpp conditional. 2018-11-15 04:55:26 +00:00
riastradh
ec4edf7a44 Omit conflicting definition that breaks build on aarch64. 2018-11-15 04:55:17 +00:00
riastradh
30279c00db "PRIu64", not llu, to print uint64_t. 2018-11-15 04:55:06 +00:00
msaitoh
0e1d62136b - I misread ci_acpiid as ci_apicid... LAPIC ID is in ci_cpuid.
Print it correctly.
- ci_initapicid(Initial APIC ID) is uint32_t, so use %u.
2018-11-15 04:53:54 +00:00
ozaki-r
75d57a2a1e Fix the format of ifconfig linkstr; it takes an argument 2018-11-15 04:37:20 +00:00
ozaki-r
bd3e222d34 ifconfig: add linkstr/-linkstr to the help message 2018-11-15 04:36:46 +00:00
msaitoh
c84a950fbd Add MAWAU (for BND{LD,ST}X instruction) from the latest Intel SDM. 2018-11-15 03:50:22 +00:00
uwe
540f2c17fd _cursesi_addbyte - fix function comment after what looks like an
editing accident.
2018-11-15 03:17:51 +00:00
manu
1818bfe1cb Workaround NBP PN533 USB toggle bit bugs
The PN533 is known to mishandle the USB toggle bit, causing replies to
be filtered out by the host controller. As a result, the kernel sees
a timed out operation.

Vendor errata suggests that userland applications should detect the
situation on read timeout, and write a dumy frame to resync the toggle bit.
NFC Tools's libnfc does just that, but in order to succeed, the dummy
frame write must not be reported as timed out.

We therefore introduce a new USB quirk for devices known to miss output
acks. When that occur, we pretend that the operation succeeded, leaving
userland the duty to check that everything went okay.

This workaround lets libnfc recover from interrupted communications
without the need te reboot the system.
2018-11-15 02:35:23 +00:00
jmcneill
e39a167dd1 Instead of disabling preemption, set the binary point field to the minimum supported value 2018-11-15 00:01:38 +00:00
scole
8ba91f1504 - When forking, use own register stack for each thread
- For UAREA, arrange layout same as FreeBSD for now to hopefully
  ease porting woes.  add some related macros
  locore.S is incorrectly assuming same layout and seems painful
  to change bspstore in startup
- use ia64_init_return same as FreeBSD
- change some "printf" to "panic" for incompleted items

context switching is still broken but maybe less so
2018-11-14 21:10:59 +00:00
scole
14d12cb8fd add more items 2018-11-14 20:13:14 +00:00
jakllsch
c4e8c52522 Switch to NKMEMPAGES_MAX_UNLIMITED.
This aligns aarch64 with our other modern 64-bit ports.  Significantly
improves file caching utilization on aarch64 systems with copious RAM.
2018-11-14 20:03:28 +00:00