Commit Graph

287702 Commits

Author SHA1 Message Date
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
rin
2b8ef595e1 Add missing aiomixer.debug to fix debug build.
XXX
I *really* hope someone(TM) invent better replacement of
distrib/sets/lists...
2021-05-08 09:23:37 +00:00
rin
b707b569c5 Catch up with this commit:
http://www.nerv.org/netbsd/?q=id:20210507T165558Z.d4aba9e0e053181f2a98ee4ee43012b50949921b

by which per slot tcs_used flag was obsoleted.

No need to initialize __BIT(0) of sc_slots_used here; it is zero anyway
before calling tcattach().
2021-05-08 09:03:30 +00:00
mrg
ef48836c2e avoid accessing stack garbage.
on arm64eb resuming vi(1) would often crash.  in makech(), the 'csp'
variable is either set to current window data, or a local stack
variable's address '&blank'.  the window data has many lines of info
stored, and 'csp++' is used per line here.  unfortunately, a case
existed where 'csp++' operated on csp initialised from '&blank' which
eventually crashes when, on my display with 160 columns and 'csp + 155'
exceeds the mapped stack and crashes.

match the '!_cursesi_screen->curwin' conditional that initialises csp,
and avoid csp++ here.  assert() that csp != &blank in both places that
modify csp.

thanks to jdc@ and mlelstv@.

XXX: possibly also should avoid the putch() here as well.
2021-05-08 04:29:07 +00:00
thorpej
c06247ced2 Use pci_compatible_match(). 2021-05-08 00:27:02 +00:00
thorpej
c119c284e9 More symbol sanitizing. 2021-05-08 00:08:43 +00:00
christos
6bf278a2a9 enable initfini-array since all platforms support it. 2021-05-07 23:00:04 +00:00
thorpej
9db847685b Static'ify more symbols. 2021-05-07 22:46:10 +00:00
nia
209f7af6d7 hook up aiomixer 2021-05-07 21:51:20 +00:00
nia
e2c130f799 aiomixer: display the unit type for value controls 2021-05-07 19:37:03 +00:00
nia
5249aad00a aiomixer: use standout for headings, avoid banding in header
fixed a minor rendering problem when compiled against ncurses.

based mostly on feedback from uwe.
2021-05-07 17:47:30 +00:00
thorpej
b7b2b8a3d8 Liberally sprinkle static around to get more symbols out of the
global namespace.  A small bit of const poisoning in the TC code.
2021-05-07 16:58:33 +00:00
thorpej
e2840100a9 A small bit of const poisoning. 2021-05-07 16:55:58 +00:00
nia
26802ffd8d import aiomixer from git into usr.bin.
aiomixer is a graphical (curses-based) mixer for NetBSD audio.
2021-05-07 16:29:24 +00:00
cjep
72496168ad More test notes from using build.sh against non NetBSD platforms. 2021-05-07 14:52:59 +00:00
rin
893bd8c6b1 For GCC10, add -Wno-unused-result for alloca(0) here and there. 2021-05-07 12:19:48 +00:00
christos
bcc4e02eb3 Don't free things twice (Kengo Nakahara) 2021-05-07 11:11:11 +00:00
hannken
7d26170aba Track the number of cdev and bdev opens and fail dm_detach()
on open devices unless detach is forced.

PR kern/54969 (Disk cache is no longer flushed on shutdown)
2021-05-07 09:54:43 +00:00
hannken
47c6510732 Make sure the unit number of device-mapper devices matches their minor number. 2021-05-07 09:53:39 +00:00
msaitoh
7a9d05b407 Print the error value of ixgbe_reset_hw() for debugging. 2021-05-07 09:15:52 +00:00
christos
9feb722ead PR/56148: Andreas Gustafsson: lib/libc/stdio/t_printf:snprintf_float test
randomly fails.
Add checks to all places where lshift is called because it can return NULL
2021-05-06 16:15:33 +00:00
rin
735b9693ea PR port-mvme68k/56146
Build wrtvid as tools.
2021-05-06 13:23:36 +00:00
rin
b7e3a91e98 Unhook elf2bb and txlt as they are built as tools. 2021-05-06 13:07:00 +00:00
cjep
b84b6c59df Update with information from recent testing of different Linux variants
on AWS. Also FreeBSD 13.
2021-05-06 07:32:15 +00:00
mrg
f119d7e9a4 avoid GCC-10 warnings. 2021-05-06 06:52:18 +00:00
yamaguchi
5d69fa28dc do not clear destination address if there is no saved address
and add initialization of saved_hisaddr for safety

0.0.0.0 was sometimes configured to destination address when
ipcp close was occurred before ipcp tlu.
Following messages will be appeared when the issue is encountered and
debug for pppoe(4) is enabled.

tc-so:[     1.890005] pppoe0: ipcp close(starting)
(snip)
tc-so:[     1.890005] pppoe0: ipcp_open(): no IP interface
2021-05-06 06:18:16 +00:00
yamaguchi
a0c635c379 Added m_freem for safety
pointed out by knakahara@, thanks.
2021-05-06 02:05:09 +00:00
yamaguchi
0c15ac9ed3 Added missing waiting for DAD completion 2021-05-06 01:09:43 +00:00
jmcneill
bf4c995c05 Fix GENERIC64 build 2021-05-05 20:58:03 +00:00