Commit Graph

287630 Commits

Author SHA1 Message Date
mrg
201465fecc push the FFSv1 superblock code into ffs_find_superblock() and
hide all the ugliness in this function, out of ufs_open().

NFC, objects same size if not identical.
2021-05-12 08:45:28 +00:00
cjep
ac6ba04d2d Add macOS High Sierra to the list of verified build platforms 2021-05-12 06:39:28 +00:00
thorpej
d1083ec146 Pass along our device handle to the PCI bus instance we attach. 2021-05-12 04:07:34 +00:00
simonb
35f4fddec3 Whitespace nit. 2021-05-12 03:53:37 +00:00
nia
47f65e3eb4 doc: added Neo 2 keyboard layout 2021-05-11 14:52:22 +00:00
nia
694dad1773 wskbd.4: document neo layout 2021-05-11 14:51:34 +00:00
simonb
b8df08a1a4 Use "static" in the function intro if the function is static. 2021-05-11 14:41:08 +00:00
nia
68060a3e71 wscons: add support for the Neo 2 German keyboard layout
Neo is an optimized layout for German and English, similar to
Dvorak for English. It can be used to type most Latin-based languages
and has separate layers for symbols and directional commands.
2021-05-11 10:16:48 +00:00
simonb
9294f4a7d4 Revert rev 1.5 - put the NOFPU option back. Older cnMIPS cores don't
have an FPU.
2021-05-11 09:21:24 +00:00
skrll
d0fa619d08 Consistently have ALIGN sizes as the power of two size, i.e. change
FDT_ALIGN, and use the same math(s) to round.

In the process fix the load_offset for the kernel to use the EFIBOOT_ALIGN
aligned address if that's what we get from AllocatePages.
2021-05-11 07:15:10 +00:00
yamaguchi
428f5be81d Make authproto not change when "authproto" is not in command option 2021-05-11 06:58:03 +00:00
yamaguchi
77103423a2 clear authentication protocol when SPPP_AUTHPROTO_NONE is specified 2021-05-11 06:42:42 +00:00
yamaguchi
99fdb9d66a Drop packets that have no NCP not to start auto-dial 2021-05-11 06:33:17 +00:00
yamaguchi
0d7b654a12 Added missing if_oerror incrementing 2021-05-11 06:27:18 +00:00
yamaguchi
9500534129 Move RCA event after RCR event
A authentication failed by TO+ event between RCA and RCR events
 1. RCA event in REQ-SENT state
   - REQ-SENT => ACK-RCVD
 2. TO+ event
   - ACK-RCVD => REQ-SENT
 3. RCR+ event
   - REQ-SENT => ACK-SENT

By moving RCA after RCR, the state is transisted to OPENED
 1. RCR event
   - REQ-SENT => ACK-SENT
 2. TO+ event
   - state is not changed
 3. RCA event
   - ACK-SENT => OPENED
2021-05-11 06:21:28 +00:00
thorpej
ce4235044b Forward the bridge's devhandle to the downstream bus. 2021-05-11 06:03:54 +00:00
yamaguchi
5416d07a0e Add tests for "pppoectl {no}[ipcp|ipv6cp]" 2021-05-11 05:57:02 +00:00
yamaguchi
aa069c4991 Added keywords that are ipcp, noipcp, ipv6cp, noipv6cp
for configuring NCP
2021-05-11 05:51:42 +00:00
thorpej
63c2a287cf All of the OFW-enumerated busses now associate the OFW node with the
device at config_found() time, so we can remove all of the stuff from
device_register() that does it, leaving only the @pci case to fix that
up (similar situation with ACPI on ARM and x86).

Adapt the boot device matching code to use the devhandle from the
device_t rather than the previous mechanism, and add some comments
explaining what's going on and some assertions to validate the
comments.

Collapse the sun4v vdsk boot device detection into the normal "sd"
case because it's almost identical to the normal "sd" case anyhow.
2021-05-11 03:43:30 +00:00
rin
86042b19c0 Cherry-pick upstream fix for GCC10 regression to -misel option.
Assembler codes generated by GCC are identical with that of our local
fix in rev 1.26 for 32-bit processors, and no significant changes for
64-bit processors also.

master: https://gcc.gnu.org/g:6156df483fa50a08f561b6c248819f2992aa380d
gcc-10: https://gcc.gnu.org/g:5f665c1ca452673e9812cd92b07bd31441c0ac5b
(diffs are same)

commit r12-9-g6156df483fa50a08f561b6c248819f2992aa380d
Author: Segher Boessenkool <segher@kernel.crashing.org>
Date:   Tue Apr 20 12:00:50 2021 +0000

    rs6000: Fix cpu selection w/ isel (PR100108)

    There are various non-IBM CPUs with isel as well, so it is easiest if we
    just don't consider that flag here (it is not needed).

    2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>

            PR target/100108
            * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
            OPTION_MASK_ISEL.
2021-05-11 01:47:20 +00:00
rin
5811b9203b In preparation to import upstream fix, revert our local fix in rev 1.26:
http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c#rev1.26

> Fix regression introduced to GCC10, where it wrongly recognizes 32-bit
> processors as POWER9 if -misel flag is specified.
2021-05-11 01:39:09 +00:00
rin
282acd838f Call bus_dmamap_unload(9) via ixgbe_dmamap_unload(), before freeing
DMA buffer. Also, when the buffer is already freed, do not call
bus_dmamap_unload(9) (no resource leaks with this change).

Otherwise, MMU fault occurs for some bus_dma(9) implementations.

With this fix, X550-T1 and X540-T1 work fine on alpha (at least
DS10 with PCI-PCIe reverse bridge).

Discussed with msaitoh. Thanks!
2021-05-11 01:30:30 +00:00
yamaguchi
bdaf362302 Added ioctl commands for configuring NCP of pppoe(4) 2021-05-11 01:27:45 +00:00
yamaguchi
daaf816306 back to r1.34 because of mistake of commit log 2021-05-11 01:23:21 +00:00
yamaguchi
8a818d09dc Revert previous commit because of mistake of commit log
back to r1.230(if_spppsubr.c) and r1.31(if_sppp.h)
2021-05-11 01:15:11 +00:00
yamaguchi
6921f43579 Added keywords that are ipcp, noipcp, ipv6cp, noipv6cp
for configuring NCP
2021-05-11 01:00:49 +00:00
yamaguchi
f381967972 Added missing '$' 2021-05-11 00:55:51 +00:00
thorpej
495d41e946 Specify the "fdt" interface attribute when configuring via FDT, since
mainbus also carries the "mainbus" interface attribute.
2021-05-10 23:58:52 +00:00
thorpej
65c738d19c Associate the OpenBoot / OpenFirmware node with attached devices
at config_found() time.
2021-05-10 23:53:44 +00:00
simonb
dfd617a3b0 Column alignment. 2021-05-10 14:27:47 +00:00
thorpej
964806864a sparc{,64} promlib -> devhandle_t glue 2021-05-10 13:59:30 +00:00
christos
627850c8ed fix clang build (on_signal is dead) 2021-05-09 15:40:27 +00:00
nia
6383164a17 ossaudio: Set handle on OSSv4 mixer devices 2021-05-09 12:51:45 +00:00
nia
5d7326fb2a libossaudio: Various OSSv4 fixes to allow reference programs to compile
- Define various new AFMT_*. These are not returned as supported
  formats by SNDCTL_DSP_GETFMTS, because it would be very silly to
  have Vorbis in the kernel.

- Implement PLAYTGT and RECSRC. For each NetBSD audio device
  we only return one playback and recording source, "primary".

- Return preferred channel configuration in capabilities.
  Either DSP_CH_STEREO, DSP_CH_MONO, or DSP_CH_MULTI
  depending on the current hardware format.

- SNDCTL_DSP_HALT_* simply flushes the audio device.
2021-05-09 11:28:25 +00:00
martin
df9fc8fe01 Do not allow editing of start/size/fs-type for partitions that
are already carved in stone (e.g. defined in an outer MBR while we are
editing the inner disklabel).
2021-05-09 11:06:20 +00:00
martin
e2b83173c8 Keep MSDOS partition size and subtype consistent - some u-boot are picky. 2021-05-09 10:39:00 +00:00
martin
43fa2aa1e9 For FS_MSDOS report the MBR type as fs_sub_type. 2021-05-09 10:37:49 +00:00
christos
cc3abd3a65 Disable again initfini; breaks some archs and not worth dealing with when
we have both gcc's active in the tree.
2021-05-08 19:36:28 +00:00
nia
bd36d9a7d1 aiomixer: bound the drawn area to the screen size, rather than replacing it 2021-05-08 14:49:13 +00:00
nia
c920972433 aiomixer: do not adjust class widget pad height, draw to end of screen
ncurses refuses to paint pads if the height argument extends beyond
the bounds of the screen. it's probably not good for our curses either.

libcurses wresize() refuses to resize a pad beyond the bounds of the
screen even if it was created with a larger size. this is probably
a bug.

found by uwe
2021-05-08 14:38:26 +00:00
cjep
db32e0f652 Also include terminfo for platforms with static libraries (e.g. sun2). From uwe/nia. 2021-05-08 14:11:37 +00:00
nia
a7559334b0 aiomixer: fix background banding with slightly older libcurses
reported by uwe
2021-05-08 13:28:45 +00:00
skrll
4e15d77406 KNF 2021-05-08 13:10:29 +00:00
skrll
ae706e3c44 KNG 2021-05-08 13:09:58 +00:00
nia
2b7f454527 aiomixer: try to make sure the first pane is always "outputs"
In QEMU with an ac97 audio device, "inputs" is the first pane,
which is significantly less important especially when you don't
have input in QEMU most of the time.
2021-05-08 13:03:40 +00:00
nia
dbb501c421 aiomixer: Fix sorting of ac97 controls 2021-05-08 12:53:15 +00:00
nia
8f193ef2d3 doc: imported aiomixer 2021-05-08 12:45:04 +00:00
christos
e30fc55584 mention gdb hack discovered by rin. 2021-05-08 12:27:21 +00:00
christos
2d56ebfab5 PR/56153: Rin Okuyama: alpha miscompiles malloca() macro. 2021-05-08 12:23:47 +00:00
rin
0c720f9cde Turn on constty instead of ttyE0 as done for majority of other ports
in order to make both framebuffer and serial consoles happy.

Also, change TERM from vt220 to vt100 for console and constty
in accordance with other ports.
2021-05-08 10:08:33 +00:00