Commit Graph

274454 Commits

Author SHA1 Message Date
kamil
79ecd7cd2c Expose max_align_t to C99/C++
max_align_t does not depend on any pre-C99 or !C++ language feature.

This structure is in use in 3rd party essential C++ code as an extension
for older language revisions and in gnu99 code in the NetBSD distribution
(RTLD's build rules define -std=gnu11 just for exposing this struct).

Exposing max_align_t from the central NetBSD header avoid duplicate
definition in 3rd party code that could differ and produce ABI mismatched
binaries between -std= revisions.

This problem does not exist on OSs like Linux as they get this namespace
visibility defined inside LLVM or GNU toolchain headers. NetBSD ships with
its own stddef.h, rather than relying on a toolchain and its internal
extensions.
2020-03-01 15:08:16 +00:00
christos
01bcaf9378 fix a sign-compare issue (for the pam module) 2020-03-01 14:51:06 +00:00
christos
30dba8ff06 Add the sign client part. 2020-03-01 14:50:43 +00:00
nisimura
099203e5e3 introduce AXE_IS_172() conditional to highlight odd ball 172 and invert most IF-THEN-ELSE. consistent white spaces. 2020-03-01 12:23:12 +00:00
nisimura
1832e20b26 use DOPAUSE. 772B Lenovo now has working rxpause,txpause 2020-03-01 10:16:17 +00:00
nisimura
3fa1d4c419 simplify single bit tests. no code difference is observed 2020-03-01 08:32:15 +00:00
kim
b7528a1009 Sync with OpenSSH 8.2p1 sample configs
- Add GSSAPIAuthentication and related options
- Add KerberosAuthentication and related options
- Bring in the lengthy but useful comment block about
  the side-effect of UsePAM with regards to PermitRootLogin.
2020-03-01 08:21:38 +00:00
isaki
876b561c3d Improve an error message about round_blocksize. 2020-03-01 07:42:07 +00:00
isaki
64ccf8fc30 Fix wrong parameter displayed in debug messages. 2020-03-01 07:40:03 +00:00
isaki
1d286abd67 Reinitialize the sticky parameters whenever the hardware format is changed.
When the number of the hardware channels becomes less than the number of
channels that sticky parameters remember, subsequent open("/dev/sound") will
fail without this treatment.  This is for rev 1.43.
2020-03-01 07:35:33 +00:00
thorpej
c23e3641d6 Use the 64-bit PCI DMA tag if available. 2020-03-01 05:51:46 +00:00
thorpej
71d5c998bb - Support 64-bit DMA addresses for the Tx and Rx ring addresses.
- g/c and unused define.
2020-03-01 05:50:56 +00:00
thorpej
c511514a83 Use the 64-bit PCI DMA tag if avalable. 2020-03-01 05:39:05 +00:00
riastradh
fcabfbde55 Add a flag to dk_dump for virtual disk devices.
If a disk is backed by a physical medium other than itself, such as
cgd(4), then it passes DK_DUMP_RECURSIVE to disable the recursion
detection for dk_dump.

If, however, a device represents a physical medium on its own, such
as wd(4), then it passes 0 instead.

With this, I can now dump to dk on cgd on dk on wd.
2020-03-01 03:21:54 +00:00
riastradh
c06051f536 Allow dumping to cgd(4) on a dk(4).
(Technically this also allows dumping to a dk(4) on which there
happens to be a cgd(4) configured, but I'm not sure how to
distinguish that case here.  So don't do that!)
2020-03-01 03:19:46 +00:00
thorpej
bbade67de2 Upon further reflection, we actually do need to ensure that the Rx
ring and the Rx Return ring are both in the same 4GB segment.
2020-03-01 03:06:08 +00:00
thorpej
e34daa9020 - Use the 64-bit PCI DMA tag if available.
- Add a comment explaining that if we were to use more than one
  Rx ring / Rx Return ring, all of the Rx-related control data
  would need to be in the same 4G segment.
2020-03-01 03:00:31 +00:00
thorpej
86b0e826cb - Use the 64-bit PCI DMA tag if available.
- In age_dma_alloc(), ensure that all of the control data end up in the
  same 4GB segment, because the hardware requires this.
2020-03-01 02:51:42 +00:00
sevan
be3361ecf3 RIPE definition no longer exists in source 2020-03-01 02:45:04 +00:00
thorpej
3da3dd2c06 It doesn't make any sense to pass ETHER_ALIGN as the alignment constraint
to bus_dmamem_alloc().  Use PAGE_SIZE instead.
2020-03-01 02:28:14 +00:00
sevan
41abadd1d8 Order caps first 2020-03-01 02:26:16 +00:00
sevan
c3f3ca568f Merge in changes from OpenBSD 6.6 whois(1).
This improves recursion support and querying whois servers.
2020-03-01 02:19:43 +00:00
kamil
ff0a7dd170 Add defines for MIPS_XHASH (.MIPS.xhash)
MIPS version of GNU_HASH as supported by GNU toolchain.
2020-02-29 22:09:29 +00:00
ryo
616852b11f add support userspace tagged address for aarch64 (experimental)
'sysctl machdep.tagged_address' to set/clear TCR_EL1.TBI0 to enable/disable address tagging.
with 'machdep.tagged_address=1', some syscalls may cause problems?
2020-02-29 21:36:03 +00:00
ryo
3d8f5129e4 Fix pmap to work correctly with tagged addresses
- when fault, untag from address before passing to uvm/pmap functions
- pmap_extract() checks more strictly and consider the address tag
2020-02-29 21:34:37 +00:00
ryo
617b6dbf44 add helper function aarch64_addresspace() and aarch64_untag_address() to check address space, and eliminate address tag 2020-02-29 21:32:22 +00:00
thorpej
6c547a36bb Use the 64-bit PCI DMA tag, if available. 2020-02-29 21:31:55 +00:00
ryo
21f43d7b50 use macro 2020-02-29 21:30:19 +00:00
ryo
ffafbb99d3 widen bit PAR_EL1.PAR_PA from [47:12] to [51:12] for ARMv8.2 (and later).
PAR_EL1:[51:48] is RES0 in ARMv8.1 and ARMv8.0.
2020-02-29 21:29:23 +00:00
thorpej
ecffff35e4 Use the 64-bit PCI tag, if available. 2020-02-29 21:27:19 +00:00
ryo
fe374735bf use pmapboot_enter_range() 2020-02-29 21:10:09 +00:00
ryo
52e96e820b replace KSEG pages mapping code with generic function pmapboot_enter_range() 2020-02-29 21:09:11 +00:00
mgorny
445aa34b1d Workaround build failure due to -Werror=format-nonliteral
Reviewed by kamil.
2020-02-29 20:44:15 +00:00
thorpej
3929de4a34 Use the 64-bit PCI DMA tag if it's available, but range-limit to
40-bit because that's what the hardware can do.
2020-02-29 20:39:09 +00:00
ad
98ece48fc9 PR kern/55033: kernel panics when starting X
Remove the uvm_page_owner_locked_p() assertions in the x86 pmap.  The DRM
code doesn't follow the locking protocol (it's OK though, since pages aren't
changing identity) and having thought about it more we're most likely going
to have to do full PV locking to make progress on concurrent fault handing,
ergo assertions not so important.
2020-02-29 20:17:11 +00:00
thorpej
6f3ef0ba5a G/C the never-used version of ti_hostaddr that can't possibly be correct. 2020-02-29 19:29:38 +00:00
kamil
0b0e2ac42c Add extra cast to suppress incompatible-pointer-types GCC warning 2020-02-29 18:53:55 +00:00
thorpej
1626277d40 - Change the definition and usage of TI_HOSTADDR() to allow for 64-bit
DMA addresses.  Modeled after similar usage in the bge(4) driver (the
  chips supported by bge(4) are descendants of those supported by ti(4)).
- Use the 64-bit PCI DMA tag if available, otherwise we're allocating (and
  using) bounce buffers needlessly.
2020-02-29 18:49:53 +00:00
skrll
9e9cdb30a4 if_ixl is MD 2020-02-29 18:46:12 +00:00
kamil
33f6117993 Fix vax and mips build 2020-02-29 18:45:20 +00:00
thorpej
11979334b4 Use the 64-bit PCI DMA tag if available. Otherwise, we are needlessly
allocating (and using) bounce buffers on sytems with >4GB of RAM.

XXX pullup-9
2020-02-29 18:07:57 +00:00
mlelstv
8b765a5da5 Use utility functions to handle disk geometry. 2020-02-29 17:15:43 +00:00
thorpej
3f10cc736d earmv5 / earmv5eb is a valid MACHINE_ARCH, so match it when
setting __ARM_MAX_ARCH__.
2020-02-29 17:14:40 +00:00
mlelstv
5568ea814a Fix disk geometry calculation. Add DIOCGPARTINFO to support
getdisksize() used by other drivers, filesystems and specfs.
2020-02-29 17:03:33 +00:00
mlelstv
0157026024 Follow FreeBSD and cast MLEN and MHLEN to int. mbuf length arithmtic is
done with signed integers and this avoids comparisons with different
signedness.
2020-02-29 16:59:00 +00:00
mlelstv
68e96ced7e Fix printf to handle various datatypes for MHLEN. 2020-02-29 16:56:58 +00:00
mlelstv
a0f9af825d Fix signed/unsigned comparisons. Send data little endian. 2020-02-29 16:36:25 +00:00
skrll
ba008dc590 Disable hifn again 2020-02-29 16:25:37 +00:00
christos
b03cf17f5f Fix boot -c or -d by avoiding ipi handling before the vector is initialized. 2020-02-29 15:00:28 +00:00
mlelstv
d060fc5f4d Make getdiskinfo() compatible with a DIOCGWEDGEINFO.
dkw_parent is defined to hold the disk name as used by disk_find(), not
a partition (i.e. no partition letter appended).
2020-02-29 14:44:44 +00:00