Commit Graph

3007 Commits

Author SHA1 Message Date
andvar db54414c68 s/paniced/panicked/ and s/borken/broken/ in comments. 2022-03-16 20:31:01 +00:00
mlelstv 30debab952 Don't crash when reporting an undefined symbol. 2022-02-18 06:42:59 +00:00
riastradh cde8f271ec powerpc: Sprinkle "memory" clobbers on eieio and nearby asm blocks.
Otherwise the compiler may reorder these around loads and stores,
which mostly defeats the purpose.  `asm volatile' just ensures the
instruction isn't _deleted_; it may still move around.
2022-02-16 23:49:26 +00:00
andvar 7bf69543cc s/epxected/expected/ 2022-02-12 23:30:30 +00:00
jandberg 627651f1fa Refactor cursor drawing.
Fixes rare case where cursor gets painted over when screen is cleared.
2022-02-06 10:05:56 +00:00
andvar f923619fa4 fix typos in comments. 2022-01-17 20:38:49 +00:00
andvar df3dd44824 fix typos in comments, mainly basicly -> basically. 2022-01-01 21:07:13 +00:00
msaitoh ec0ae0ee8b s/frambuffer/framebuffer/ in comment. 2022-01-01 11:45:37 +00:00
andvar e590e6c9f3 fix various typos, mainly in comments. 2021-12-26 16:08:19 +00:00
msaitoh 8589c04303 s/timout/timeout/ 2021-12-05 08:16:10 +00:00
msaitoh 73b5f8505b s/supress/suppress/ 2021-12-05 08:09:30 +00:00
msaitoh ca40522ac5 s/convience/convenience/ in comment. 2021-12-05 04:28:53 +00:00
msaitoh 43c6624729 s/invlid/invalid/ in comment. 2021-12-05 03:07:15 +00:00
andvar 9a662625bc fix typos, mainly in words minimum and maximum, but also few others. 2021-11-01 21:28:01 +00:00
andvar 6f8dc1509f fix various typos, mainly in comments, but also in man pages and log messages. 2021-10-21 13:21:53 +00:00
andvar 3940c5da3c follow fcambus steps by fixing typos for "unknown" in few more error messages. 2021-10-04 20:48:05 +00:00
thorpej 5ab06420d2 Driver "kqfilter" entry points return an error code, so if an invalid
filter is requested, return EINVAL rather than 1.
2021-09-26 16:36:18 +00:00
thorpej 12ae65d98c Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89
2021-09-26 01:16:07 +00:00
andvar a136e22ab6 fix various typos in comments, messages and documentation. 2021-09-19 10:34:06 +00:00
andvar b780d9b67b fix various typos, mainly in comments. 2021-09-16 20:17:46 +00:00
andvar c69f42d323 fix mainly same typos as in my previous commit but outside sys/dev/dm. 2021-08-21 23:00:30 +00:00
andvar 2e0bf311b3 fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected. 2021-08-17 22:00:26 +00:00
andvar 15af89acaa s/iterrupt sever/interrupt server/ 2021-08-12 20:13:54 +00:00
andvar ca503f4587 s/definitons/definitions/ 2021-08-09 21:13:05 +00:00
thorpej c7fb772b85 Merge thorpej-cfargs2. 2021-08-07 16:18:40 +00:00
rin 1d84434128 Remove parentheses from return. No functional changes. 2021-06-15 09:00:33 +00:00
rin 640dfabacd Add support for WSDISPLAYIO_MODE_DUMBFB to WSDISPLAYIO_SMODE. 2021-06-15 08:53:47 +00:00
rin a14207a9e8 kbd(4) and ms(4) carry multiple interface attributes. They are configurable
both as standalone drivers for legacy framebuffer console, or parents of
wskbd(4) and wsmouse(4), respectively. For the latter, be explicit about
using "wskbddev" and "wsmousedev" interface attributes for children.
2021-06-03 07:31:20 +00:00
dholland c736b6a748 Remove some unused variables, found by gcc -Wall. 2021-05-18 20:34:20 +00:00
dholland 562b6c7f9a Print ptrdiff_t with %td, not %d. Appeared in passing in PR 56188. 2021-05-18 20:32:18 +00:00
rin b7e3a91e98 Unhook elf2bb and txlt as they are built as tools. 2021-05-06 13:07:00 +00:00
rin f5e9e1e629 clockport_common does not need its own interface attribute.
All children are attached to clockportbus.
2021-04-28 00:35:47 +00:00
thorpej 2a022cd257 The Amiga and Atari ports abuse some autoconfiguration internals as part
of their early console bring-up, so we need to expose some of the new
internals to them and adapt the call sites.
2021-04-27 14:48:28 +00:00
thorpej 2685996b0e Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
2021-04-24 23:36:23 +00:00
simonb fa2e10609e Define __HAVE_LEGACY_INTRCNT to indicate this port uses legacy intrcnt
interrupt accounting.
2021-04-01 04:42:59 +00:00
rin 5446b18b12 Add FFSv2 support for primary- and second-stage boot loaders.
Rename primary-stage boot for FFSv1 (and ustarfs) to bootxx_ffsv1 for clarity.

Bump version to 3.1.
2021-02-25 03:42:14 +00:00
rin 852abe035b For upcoming FFSv2 support for boot.amiga, dynamically scale its size,
instead of fixing to 32KB.

Old 32KB limit comes from

(1) all R_68K_PC16 symbols get relocated, and

(2) all values in our relocation table for R_68K_32 symbols fit within
    16-bit integer.

(1) is already checked in the code. Assertion for (2) is added, but this
limit is satisfied with sufficient margin at the moment. If it is not the
case in the future, we may need to change format for relocation table.
2021-02-25 03:40:27 +00:00
rin fcd4e45f74 Regen for previous commit to GENERIC.in. 2021-01-26 10:50:20 +00:00
nia f3ec8521a0 add a commented out compat_ossaudio wherever there's compat_linux
requested by mrg
2021-01-21 06:51:54 +00:00
jandberg b614bd0aac Implement the WSDISPLAYIO_GET_FBINFO ioctl, needed by X wsfb driver. 2021-01-06 13:00:51 +00:00
thorpej 66b33a403f Use sel{record,remove}_knote(). 2020-12-19 15:12:17 +00:00
rin 9a606b13c5 regen 2020-10-26 06:22:28 +00:00
rin 7259f4cf20 Build in full debug symbols by default. 2020-10-26 06:21:49 +00:00
roy 98f3a8d458 vether: Add to kernel configurations
It's only enabled if the kernel enabled bridge AND tap.
Otherwise it's commented out.
2020-09-27 13:48:49 +00:00
isaki 667082ac9f Fix register order. %d0 is higher and %d1 is lower.
This would have rarely affected.
2020-08-22 05:09:02 +00:00
riastradh 25f11de3b9 mmap MAP_FAILED audit. 2020-08-20 15:54:11 +00:00
rin 1b18db475e Clean up _LKM --> _MODULE leftovers.
Note that _KERNEL is always defined for modules.
2020-08-10 10:59:33 +00:00
rin 0e29220ba7 Fix siginfo support for amiga, mac68k, and sun3:
- T_ZERODIV is integer divide by zero. Therefore, ksi_code should be
  FPE_INTDIV, not FPE_FLTDIV.

- Set ksi_addr for SIGTRAP. Also, set TRAP_BRKPT or TRAP_TRACE to
  ksi_code appropriately.

This fixes some tests in lib/libc/sys and lib/libc/gen.

XXX
Apply similar fixes to other m68k ports.
2020-08-10 10:51:21 +00:00
rin 76c3a0bc77 regen 2020-08-10 06:33:45 +00:00
rin 6d74044e30 Add -fno-omit-frame-pointer to m68k kernels with DDB for backtraces.
-omit-frame-pointer is enabled for -O1 and higher for GCC8 by default.
2020-08-10 06:32:57 +00:00