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
tnn
5b19b2d2d5
annotate xvasprintf w/ format string attribute
2020-02-29 14:03:17 +00:00
maxv
9b4a455b77
pass the address of the field, instead of relying on it being the first
...
field of the structure/union, no functional change, discussed with plunky@
2020-02-29 11:40:06 +00:00
skrll
b12b7ef3a8
Group some PCI only modules together and only build them on a subset of
...
platforms. The list is not complete.
2020-02-29 11:03:44 +00:00
isaki
3d4cb61926
Minor fix. audio_prinfo.pause is u_char, not bool.
2020-02-29 09:38:10 +00:00
isaki
9178c7e6bd
Release memories on audiobellclose.
...
It's rest of the last commit.
2020-02-29 07:13:37 +00:00
isaki
da8a629a85
round_blocksize must return a multiple of the framesize
...
even if 6 channels mode.
I believe that keeping "good alignment" is just a wish, not constraint.
2020-02-29 06:34:30 +00:00
isaki
098a1006a1
round_blocksize must return a multiple of the framesize.
...
It's not divisible when blk=GCSCAUDI_PRD_SIZE_MAX and channels=4.
2020-02-29 06:25:33 +00:00
isaki
6e396296c4
round_blocksize must return a multiple of the framesize
...
even if passed blocksize is greater than the upper limit.
2020-02-29 06:06:29 +00:00
isaki
3204498c44
round_blocksize must return a multiple of the framesize.
...
aucc(4) supports 3 channels mode.
2020-02-29 06:03:55 +00:00
isaki
c509fb12bb
Remove rounding by 4 bytes on round_blocksize().
...
For drivers which supports only 16bit * 2channels sampling,
rounding by 4 bytes no longer meaningful.
2020-02-29 05:51:10 +00:00
isaki
b7468096e2
Describe about (existing) constraints on round_blocksize().
2020-02-29 05:39:03 +00:00
nisimura
8635cce95c
add comments to show the RX filter intent
2020-02-29 04:27:53 +00:00
kamil
3a80519d9d
ld.elf_so(1): Implement DT_GNU_HASH
2020-02-29 04:27:01 +00:00
kamil
e8e477017a
Implement DT_GNU_HASH
...
DT_GNU_HASH serves the same purpose as DT_HASH, however it is a distinct
and faster apprach implemented and designed in the GNU toolchain in 2006.
DT_GNU_HASH is preferred whenever available.
Original GNU benchmarks claim 50% faster dynamic linking time.
https://www.sourceware.org/ml/binutils/2006-06/msg00418.html
Code based on FreeBSD and OpenBSD, both were based on DragonFlyBSD.
2020-02-29 04:24:33 +00:00
kamil
4e9bea3d5d
Implement and integrate GNU Hashing function
...
Define Elf_Hash struct that contains ELF/SYSV and GNU hash checksum.
Implement _rtld_gnu_hash() for DT_GNU_HASH.
Adapt existing code to compute all Elf_Hash types, instead of only
the ELF/SYSV one.
Rename _rtld_elf_hash() to _rtld_sysv_hash() to match the GNU toolchain
terminology.
_rtld_gnu_hash() uses Dan Bernstein's string hash function posted eons ago
on comp.lang.c.
2020-02-29 04:23:05 +00:00
kamil
e5a904478f
Separate matched symbol functionality out of _rtld_symlook_obj()
...
Simplifies the code and it will allow to use the matched symbol
functionality by other users.
2020-02-29 04:21:42 +00:00
nisimura
8ad57d4b7d
make sure to accept bcast frame all the time
2020-02-29 04:02:06 +00:00
nisimura
e1c0edcdfa
iron out receive filter multicast/promisc logic
2020-02-29 02:51:14 +00:00
macallan
11ea30bb62
do what FreeBSD does and OF_quiesce() only on PowerMac11,2 and 12,1
2020-02-28 22:14:10 +00:00
macallan
bf5b21a663
switch PowerMac7,* CPUs to full speed via OF
...
if we do this later we hang
2020-02-28 22:09:34 +00:00
kim
648e402b3e
Remove unreferenced SSH_RELEASE
2020-02-28 17:50:29 +00:00
kim
cbed902728
Fix duplicate entries in the keywords list.
2020-02-28 17:27:34 +00:00
msaitoh
ca6a4f453f
Replace bnx_ifmedia_upd() in bnx_init() with mii_ifmedia_change() for future
...
locking changes.
2020-02-28 14:57:55 +00:00
msaitoh
ebdef54f25
Replace bnx_ifmedia_upd() in bnx_mgmt_init() with mii_ifmedia_change() for
...
future locking changes. Suggested by thorpej@.
XXX Need more work for bnx_ifmedia_upd() itself.
2020-02-28 14:20:06 +00:00
isaki
d86c3d1145
Drop 512 bytes limit on auvia_round_blocksize().
...
This fixes attach on 6 channels device.
PR kern/55017.
2020-02-28 13:31:03 +00:00
macallan
8fbd006440
- document the config register
...
- do some setup and send a start command
- mark the sensor as invalid if readings are out of range
now this works properly on my PCI-X G5
2020-02-28 13:18:25 +00:00
christos
a04c941cc5
Deal with sshkey_sign. I am going to fix this properly at some point, but
...
it needs coordination from upstream (Patrick Welche)
2020-02-28 13:00:51 +00:00
kamil
3fcf6843f7
Avoid undefined behavior in left shift semantics
...
hfs_vfsops.c:477:19, left shift of 1 by 31 places cannot be represented in type 'int'
2020-02-28 11:27:38 +00:00
kim
18db4c45f2
Cleanup
...
- Match the case of the UsePAM keyword used in the manual page and code,
to aid case-sensitive grep etc.
- Remove references to obsole UseLogin and UsePrivilegeSeparation keywords.
- Whitespace police
2020-02-28 10:59:58 +00:00
kim
cbc2c8ca59
Move NetBSD.org-specific entry above the match-all entry
...
The first matching entry that sets an option "wins." Therefore more
specific matches should be provided before the "Host *" entry that
matches everything. This way options set in the more specific entry will
not be accidentally made ineffective by the match-all entry.
2020-02-28 10:41:48 +00:00
kim
aa06efc870
Typo fix (remove extra TPM)
2020-02-28 07:31:38 +00:00
kim
7fa57f6b97
Fix .Dt to match installed section
2020-02-28 07:30:51 +00:00
msaitoh
e72e0efefb
When a media change is requested, don't just all (*if_init)(). That's
...
needlessly disruptive and incompatible with future locking changes.
We can use ether_mediachange() instead.
2020-02-28 06:53:22 +00:00
yamaguchi
f6ee8e280e
Update sc->sc_parent->dk_rawvp while the lock named dk_rawlock held
...
to prevent a race condition
Fixes PR kern/55026
OKed by mlelstv@, thanks
2020-02-28 06:01:23 +00:00
msaitoh
3102c6481b
Move PHY_RESET() in the media change path from if_et.c to etphy.c.
...
I don't know if the reset is required or not. I tested some media
transitions without the reset and it worked. It might be OK to remove
but Linux does it only in et1011c_config_aneg(). So move the reset to
etphy_service(,,MII_MEDIACHG)'s autonego case. This change is also
required for future locking changes.
2020-02-28 05:13:19 +00:00
riastradh
55a1499437
Teach zfs bdevsw to do b_psize.
...
This is needed, among other things, to swap on zvols.
Attempting to swap on zvols currently deadlocks but that's a separate
issue that needs to be fixed too!
2020-02-28 03:52:26 +00:00
sevan
322778c4e2
Cast to make up for the difference in type between our bus_dma_map(9) and
...
theirs. Where we expect kvap to be of void **, they expect caddr_t (typedef char *).
2020-02-27 23:15:34 +00:00
sevan
657257e0c1
Add an implementation of MCLGETI.
...
Borrowed from sys/dev/pci/if_bwfm_pci.c
2020-02-27 22:58:57 +00:00
ad
bf79731039
Tighten up the locking around vp->v_iflag a little more after the recent
...
split of vmobjlock & v_interlock.
2020-02-27 22:12:53 +00:00
pgoyette
52a67c0117
Module compat_netbsd32_50 requires module compat_50_quota
2020-02-27 20:54:24 +00:00
ad
b90b824e65
Remove an unneeded ifdef MULTIPROCESSOR.
2020-02-27 20:52:25 +00:00