Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (3h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-10 02:10:08 UTC Now

2021-09-25 20:16:17 UTC MAIN commitmail json YAML

Make all of the EISA chipset functions call through real functions,
rather the macros.

(thorpej)

2021-09-25 20:05:55 UTC MAIN commitmail json YAML

indent: extract probably_typedef into separate function

This condition is complicated enough that it warrants being split into
several clauses, maybe even with an explanation.

No functional change.

(rillig)

2021-09-25 19:49:13 UTC MAIN commitmail json YAML

indent: reduce code and data size for lexing of numbers

Instead of having a table of strings (121 pointers + 121 data
relocations), reduce that table to the actual character data and use a
secondary table for looking up the correct row in the main table.

No functional change.

(rillig)

2021-09-25 19:16:32 UTC MAIN commitmail json YAML

2021-09-25 18:49:03 UTC MAIN commitmail json YAML

indent: rename option variable to be more expressive

No functional change.

(rillig)

2021-09-25 18:02:49 UTC MAIN commitmail json YAML

tests/indent: demonstrate mergin of comments

This may or may not have been intended. Especially with the option
'-nfc1' the result looks confusing. It's not a case that occurs every
day, though.

(rillig)

2021-09-25 17:55:37 UTC MAIN commitmail json YAML

Disable drmkms module builds.

They haven't been functional (and won't be before fixing genfb abi).
In a new drm update, we haven't prioritized fixing the build either.

(maya)

2021-09-25 17:36:51 UTC MAIN commitmail json YAML

2021-09-25 17:29:13 UTC MAIN commitmail json YAML

indent: convert parser_state from ibool to bool

indent.c:400:5: error: suggest parentheses around assignment used as
    truth value
io.c:271:32: error: ���~��� on a boolean expression

No functional change intended.

(rillig)

2021-09-25 17:20:02 UTC MAIN commitmail json YAML

indent: convert options from ibool to bool

No functional change intended.

(rillig)

2021-09-25 17:11:24 UTC MAIN commitmail json YAML

indent: prepare for lint's strict bool mode

Before C99, C had no boolean type. Instead, indent used int for that,
just like many other programs. Even with C99, bool and int can be used
interchangeably in many situations, such as querying '!i' or '!ptr' or
'cond == 0'.

Since January 2021, lint provides the strict bool mode, which makes bool
a non-arithmetic type that is incompatible with any other type. Having
clearly separate types helps in understanding the code.

To migrate indent to strict bool mode, the first step is to apply all
changes that keep the resulting binary the same. Since sizeof(bool) is
1 and sizeof(int) is 4, the type ibool serves as an intermediate type.
For now it is defined to int, later it will become bool.

The current code compiles cleanly in C99 and C11 mode, as well as in
lint's strict bool mode. There are a few tricky places:

In args.c in 'struct pro', there are two types of options: boolean and
integer. Boolean options point to a bool variable, integer options
point to an int variable. To keep the current structure of the code,
the pointer has been changed to 'void *'. To ensure type safety, the
definition of the options is done via preprocessor magic, which in C11
mode ensures the correct pointer types. (Add CFLAGS+=-std=gnu11 at the
very bottom of the Makefile.)

In indent.c in process_preprocessing, a boolean variable is
post-incremented. That variable is only assigned to another variable,
and that variable is only used in a boolean context. To provoke a
different behavior between the '++' and the '= true', the source code
to be indented would need 1 << 32 preprocessing directives, which is
unlikely to happen in practice.

In io.c in dump_line, the variables ps.in_stmt and ps.in_decl only ever
get the values 0 and 1. For these values, the expressions 'a & ~b' and
'a && !b' are equivalent, in all versions of C. The compiler may
generate different code for them, though.

In io.c in parse_indent_comment, the assignment to inhibit_formatting
takes place in integer context. If the compiler is smart enough to
detect the possible values of on_off, it may generate the same code
before and after the change, but that is rather unlikely.

The second step of the migration will be to replace ibool with bool,
step by step, just in case there are any hidden gotchas in the code,
such as sizeof or pointer casts.

No change to the resulting binary.

(rillig)

2021-09-25 15:18:38 UTC MAIN commitmail json YAML

Refactor and cleanup sio (uPD7201) drivers.

- remove confusing syscn*() functions (and its header) and prepare
  explicit siottycninit(), siottycnget() and siottycnput() functions
- use exported struct consdev and cn_tab to initialize siotty console
- enable and handle E/S interrupts to make BREAK signal detected properly
- make CSR (status regsiters) access functions inline static
- make single byte read/write (i.e. cnputc() and cngetc()) functions
  static inline and take struct sio_register rather than sio channel
- use proper integer type (uint16_t) for getsiocsr() as siotty.c
- handle channel dependent CR2A and CR2B registers properly
- use more explicit definitions for RR_* macro used by getsiocsr()
- define and use proper RR0 (read register) values
  (there is no isStatusReg(r) macro used on 4.4BSD/luna68k)

Tested on LUNA with both wscons console and serial console.

(tsutsui)

2021-09-25 15:16:36 UTC MAIN commitmail json YAML

Sync with OpenBSD r1.101:

When processing a received packet, only sync the amount of bytes
mcx(4) told us has arrived.  The DMA map's mapsize on RX packets
is the length of the allocated buffer.  For mcx(4), this can be
more than around 9000 bytes, as each buffer will be at least as
big as the maximum supported MTU.  There's no need to sync the
whole buffer, if it's only a small packet.

(jmcneill)

2021-09-25 14:38:31 UTC MAIN commitmail json YAML

indent: use standard definition for bool, true, false

(rillig)

2021-09-25 14:26:05 UTC MAIN commitmail json YAML

indent: merge duplicate code for initializing buffers

No functional change.

(rillig)

2021-09-25 14:16:06 UTC MAIN commitmail json YAML

indent: clean up initialization of options

The default values in 'struct pro' were redundant but all consistent,
even with the commented defaults in main_parse_command_line.

No functional change.

(rillig)

2021-09-25 13:38:33 UTC MAIN commitmail json YAML

2021-09-25 13:26:07 UTC MAIN commitmail json YAML

2021-09-25 13:06:06 UTC MAIN commitmail json YAML

tests/indent: test deeply nested struct declarations

(rillig)

2021-09-25 13:04:55 UTC MAIN commitmail json YAML

2021-09-25 12:47:17 UTC MAIN commitmail json YAML

tests/indent: clean up test driver

For most of the test data, it was not necessary to copy the files to the
working directory, even though the comment said so.  The test data had
been taken from the cleaned files anyway.

Use sed instead of cp to copy the files, to allow for comments in all
kind of files, even the type lists for the option '-U'.

(rillig)

2021-09-25 12:20:44 UTC MAIN commitmail json YAML

2021-09-25 10:41:03 UTC MAIN commitmail json YAML

2021-09-25 10:24:10 UTC MAIN commitmail json YAML

indent: make lex_char_or_string simpler

The previous code was so tricky that every second line needed a comment
that explains what's going on.  Replace the complicated code with the
usual straight-forward string-copying patterns.

No functional change.

(rillig)

2021-09-25 09:52:21 UTC MAIN commitmail json YAML

2021-09-25 09:46:29 UTC MAIN commitmail json YAML

2021-09-25 09:22:39 UTC MAIN commitmail json YAML

tests/indent: fix ShellCheck warnings, use simple variables

(rillig)

2021-09-25 08:54:31 UTC MAIN commitmail json YAML

Move DRM-driver firmware from base to its own set, gpufw

This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.

(maya)

2021-09-25 08:23:32 UTC MAIN commitmail json YAML

indent: add nonnull memory allocation functions

The only functional change is a single error message.

(rillig)

2021-09-25 08:04:13 UTC MAIN commitmail json YAML

2021-09-25 07:59:52 UTC MAIN commitmail json YAML

2021-09-25 07:55:24 UTC MAIN commitmail json YAML

2021-09-25 07:46:41 UTC MAIN commitmail json YAML

indent: rename variables of type token_type

The previous variable name 'code' conflicts with the buffer of the same
name.

No functional change.

(rillig)

2021-09-24 18:47:29 UTC MAIN commitmail json YAML

2021-09-24 18:37:03 UTC MAIN commitmail json YAML

indent: extract parse_indent_comment from fill_buffer

No functional change.

(rillig)

2021-09-24 18:14:06 UTC MAIN commitmail json YAML

2021-09-24 18:00:13 UTC MAIN commitmail json YAML

indent: rename local variable in fill_buffer

The local variable name 'com' prevented grouping the global variables
combuf, s_com, e_com and l_com into a struct named 'com'.

No functional change.

(rillig)

2021-09-24 17:37:55 UTC MAIN commitmail json YAML

2021-09-24 16:29:31 UTC MAIN commitmail json YAML

indent: fix token duplication after C99 comment

The code that keeps blank lines after C99 comments still looks wrong,
but at least it's better than before.

(rillig)

2021-09-24 15:48:35 UTC MAIN commitmail json YAML

mandoc 1.14.6 out.

(wiz)

2021-09-24 13:14:50 UTC MAIN commitmail json YAML

2021-09-24 13:13:08 UTC MAIN commitmail json YAML

2021-09-24 13:11:39 UTC MAIN commitmail json YAML

2021-09-24 13:08:16 UTC MAIN commitmail json YAML

Merge conflicts, avoid ssp issues

(christos)

2021-09-24 13:07:34 UTC MAIN commitmail json YAML

2021-09-24 08:40:35 UTC MAIN commitmail json YAML

Add copyright for no-memcpy toeplitz hash, pointed out by wiz@n.o, thanks.

(knakahara)

2021-09-24 08:07:40 UTC MAIN commitmail json YAML

2021-09-24 08:04:15 UTC MAIN commitmail json YAML

Make the KOBO and NETWALKER kernels compile again.

(skrll)

2021-09-24 06:30:02 UTC MAIN commitmail json YAML

2021-09-24 06:23:35 UTC MAIN commitmail json YAML

indent: fix space-tab in indentation

(rillig)

2021-09-24 05:26:06 UTC MAIN commitmail json YAML

Fix build failure for i386 INSTALL_XEN3PAE_DOMU, sorry.

(knakahara)

2021-09-24 04:11:02 UTC MAIN commitmail json YAML

Add RSS toeplitz hash functions which calculate from mbuf.

(knakahara)

2021-09-24 04:09:32 UTC MAIN commitmail json YAML

Import asymmetric toeplitz hash without memcpy implemented by ryo@n.o.

This implementation has better performance than memcpy'ed one.
(30%-60% improvement in micro benchmark)

import from
    https://github.com/ryo/l2pkt/blob/master/l2pkt/toeplitz_hash.c

(knakahara)

2021-09-24 00:29:46 UTC MAIN commitmail json YAML

Move XEN3_DOM0 as close as possible to GENERIC.
Document why some options are disabled
Set NO_PCI_MSI_MSIX to work around crashes reported in multiple PR

(manu)

2021-09-23 22:54:09 UTC MAIN commitmail json YAML

make: fix memory leak in error case of the ':?' modifier

(rillig)

2021-09-23 17:51:52 UTC MAIN commitmail json YAML

sun4v: update TODO with current status when running on a T5-based system

(palle)

2021-09-23 15:43:21 UTC MAIN commitmail json YAML

2021-09-23 15:42:29 UTC MAIN commitmail json YAML

Add some Intel devices:

- Tiger Lake
- I225V and I225LM
- WiFi 6 AX201

(msaitoh)

2021-09-23 15:19:03 UTC MAIN commitmail json YAML

2021-09-23 13:59:27 UTC MAIN commitmail json YAML

Spell the number of nanoseconds as 10^9.  Forgotten in previous.

(uwe)

2021-09-23 13:58:26 UTC MAIN commitmail json YAML

Minor markup tweaks.

(uwe)

2021-09-23 13:49:59 UTC MAIN commitmail json YAML

Spell the number of nanoseconds as 10^9.

10^9 is 1e9 (it's "e" that spells 10 here), not 10e9.  The target
audience of this man page is not likely to be very fluent in floating
point, so avoid significand/exponent spelling and use the spelling
that it is familiar with.

(uwe)

2021-09-23 13:16:13 UTC MAIN commitmail json YAML

2021-09-23 12:17:57 UTC MAIN commitmail json YAML

printf(3): mention snprintb(3)

(wiz)

2021-09-23 11:28:47 UTC MAIN commitmail json YAML

2021-09-23 10:31:23 UTC MAIN commitmail json YAML

ena: fix packet reordering issue

A reorder occures when
- memory allocation fails in bus_dmamap_load_mbuf() or
- submission queue is full

This patch makes ena(4) to
- allocate memory in advance (BUS_DMA_ALLOCNOW flag in bus_dmamap_create())
- check if the queue is vacant before pcq_get()

Patch from KUSABA Takeshi <t-kusaba@iij.ad.jp>

(jmcneill)

2021-09-23 10:13:29 UTC netbsd-9 commitmail json YAML

2021-09-23 10:11:02 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #1348):

bin/cp/utils.c: revision 1.47

PR/54564: Jan Schaumann: cp of a fifo yields an empty file

Don't short-circuit 0 sized stat entries if they don't belong to regular
files.

Also don't try to mmap non-regular files.

(martin)

2021-09-23 10:09:20 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1347):

bin/mkdir/mkdir.c: revision 1.39

PR bin/56398

The final component of both a/b/c and a/b/c/ is "c", so that's the one
to which the -m arg applies.

(martin)

2021-09-23 10:08:35 UTC netbsd-8 commitmail json YAML

2021-09-23 10:04:53 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1697):

bin/mkdir/mkdir.c: revision 1.39

PR bin/56398

The final component of both a/b/c and a/b/c/ is "c", so that's the one
to which the -m arg applies.

(martin)

2021-09-23 09:09:34 UTC MAIN commitmail json YAML

Add support COMPAT_LINUX for aarch64

(ryo)

2021-09-23 09:07:39 UTC MAIN commitmail json YAML

add aarch64, and sort architecture names by alphabetical order.

(ryo)

2021-09-23 06:58:47 UTC MAIN commitmail json YAML

Since trampoline ABI ver0 is also used in other emulation environments (e.g. linux emulation),
checking (emul->e_sigobject != NULL) to determine if it is allowed or not.

(ryo)

2021-09-23 06:56:27 UTC MAIN commitmail json YAML

2021-09-23 06:34:00 UTC MAIN commitmail json YAML

Print the cache information in similar formats and arm and aarch64, e.g.

arm before
[  1.0000000] cpu0: 32KB/64B 2-way L1 PIPT Instruction cache
[  1.0000000] cpu0: 32KB/64B 2-way write-back-locking-C L1 PIPT Data cache
[  1.0000000] cpu0: 2304KB/64B 16-way write-through L2 PIPT Unified cache

arm after
[  1.0000000] cpu0: L1 32KB/64B 2-way (256 set) PIPT Instruction cache
[  1.0000000] cpu0: L1 32KB/64B 2-way (256 set) write-back-locking-C PIPT Data cache
[  1.0000000] cpu0: L2 2304KB/64B 16-way (2304 set) write-through PIPT Unified cache

aarch64 before
[  1.0000030] cpu1: L1 48KB/64B*256L*3W PIPT Instruction cache
[  1.0000030] cpu1: L1 32KB/64B*256L*2W PIPT Data cache
[  1.0000030] cpu1: L2 2048KB/64B*2048L*16W PIPT Unified cache

aarch64 after
[  1.0000030] cpu1: L1 48KB/64B 3-way (256 set) PIPT Instruction cache
[  1.0000030] cpu1: L1 32KB/64B 2-way (256 set) PIPT Data cache
[  1.0000030] cpu1: L2 2048KB/64B 16-way (2048 set) PIPT Unified cache

(skrll)

2021-09-22 17:37:32 UTC MAIN commitmail json YAML

wscons: add definitions for B��PO, a standardized, Dvorak-style optimized
keyboard layout for French

(nia)

2021-09-22 14:15:29 UTC MAIN commitmail json YAML

fail on error, not on success.

(mlelstv)

2021-09-22 11:33:54 UTC MAIN commitmail json YAML

2021-09-22 05:42:19 UTC MAIN commitmail json YAML

ksymsmmap: Add missing uao_reference(9) call for ks->ks_uobj.

Fix failure for savecore(8) and subsequent kernel panic, introduced to
kern_ksyms.c rev 1.03, at least for sh3 and alpha.

For sh3 and alpha, savecore(8) supports coff and ecoff, respectively, via
libkvm via nlist(3). nlist(3) routines for coff and ecoff use mmap(2) and
munmap(2) for /dev/ksyms.

This munmap(2) decrements reference count for ks->ks_uobj. Unless it is
incremented in ksymsmmap(), ks->ks_uobj will be freed unexpectedly.

(rin)

2021-09-21 23:06:18 UTC MAIN commitmail json YAML

make: reduce relocations, thereby reducing .text size

No functional change.

(rillig)

2021-09-21 22:53:35 UTC MAIN commitmail json YAML

make: reduce relocations and thereby .text size, make opname const

No functional change.

(rillig)

2021-09-21 22:48:04 UTC MAIN commitmail json YAML

make: rename and invert CondParser.lhsStrict to leftUnquotedOK

The new name is easier to grasp than the rather abstract word 'strict'.

No functional change.

(rillig)

2021-09-21 22:38:25 UTC MAIN commitmail json YAML

make: do not allow unquoted 'left == right' after modifier ':?'

Having a static variable for state that clearly belongs in the parser
looked suspicious, and indeed it was wrong.

When the distinction between .if conditions and expressions of the form
${condition:?:} was added in cond.c 1.68 from 2015-05-05, a new unit
test was added, but it didn't cover this edge case.  At that time, the
state of the condition parser consisted of a few global variables
instead of a separate data type, as would have been appropriate for
parsing nested conditions.

(rillig)

2021-09-21 21:59:56 UTC MAIN commitmail json YAML

2021-09-21 21:43:32 UTC MAIN commitmail json YAML

make: remove unnecessary negation from CondParser_StringExpr

No functional change.

(rillig)

2021-09-21 21:39:32 UTC MAIN commitmail json YAML

make: remove unnecessary const from parameters

These were leftovers from earlier refactorings, when extracting code to
separate functions.

No functional change.

(rillig)

2021-09-21 21:03:36 UTC MAIN commitmail json YAML

make: fix out-of-bounds memory read (since previous commit)

(rillig)

2021-09-21 20:54:42 UTC MAIN commitmail json YAML

make: reduce indentation in CondParser_FuncCall

No functional change.

(rillig)

2021-09-21 20:51:39 UTC MAIN commitmail json YAML

make: fix documentation about operator associativity in conditions

(rillig)

2021-09-21 20:34:38 UTC MAIN commitmail json YAML

2021-09-21 15:56:55 UTC MAIN commitmail json YAML

UsePrivilegeSeparation is no more

(christos)

2021-09-21 15:08:45 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 15:07:43 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 15:06:21 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 15:05:41 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 15:04:27 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 15:03:08 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 15:01:59 UTC MAIN commitmail json YAML

2021-09-21 15:00:34 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:59:14 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:57:26 UTC MAIN commitmail json YAML

remove extra changes

(christos)

2021-09-21 14:56:42 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:56:08 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:55:14 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:54:26 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:54:02 UTC MAIN commitmail json YAML

undo previous, wrong file.

(christos)

2021-09-21 14:52:40 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:51:29 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:50:53 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:50:12 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:49:01 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:47:28 UTC MAIN commitmail json YAML

use KAUTH_MACHDEP_UNMANAGEDMEM instead of KAUTH_GENERIC_ISSUSER like all the
other framebuffers.

(christos)

2021-09-21 14:42:01 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:41:28 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:40:14 UTC MAIN commitmail json YAML

don't opencode kauth_cred_get()

(christos)

2021-09-21 14:38:52 UTC MAIN commitmail json YAML

use l->l_cred since it is available.

(christos)

2021-09-21 14:36:34 UTC MAIN commitmail json YAML

use l->l_cred since it is available.

(christos)

2021-09-21 14:30:16 UTC MAIN commitmail json YAML

2021-09-21 13:51:46 UTC MAIN commitmail json YAML

Fix C++ case for eventfd.h and timerd.h

(ryoon)

2021-09-21 09:24:15 UTC MAIN commitmail json YAML

linux_sys_fstatat64: Add support for AT_EMPTY_PATH flag.

This is required for rtld shipped with glibc 2.33.

Now, userland of Fedora 34 is working fine on NetBSD/amd64.

(rin)

2021-09-20 23:22:36 UTC MAIN commitmail json YAML

Fix the message that appears if you patch -R an unapplied patch.

(dholland)

2021-09-20 21:05:15 UTC MAIN commitmail json YAML

2021-09-20 14:30:05 UTC MAIN commitmail json YAML

eventfd_destroy(): Add missing kmem_free().

(thorpej)

2021-09-20 11:47:26 UTC MAIN commitmail json YAML

Use coherent DMA mappings when possible.

(jmcneill)

2021-09-20 11:27:30 UTC MAIN commitmail json YAML

Use coherent DMA mappings when possible.

(jmcneill)

2021-09-20 11:12:35 UTC MAIN commitmail json YAML

KNF, i.e. #include <sys/param.h> then #include <sys/types.h>

Fixes builds

(skrll)

2021-09-20 08:31:09 UTC MAIN commitmail json YAML

Add a comment that .set_leds function won't work correctly on cngetc(9).

I'm afraid all other keyboard drivers that have .set_leds function
(like sgimips/dev/zs_kbd.c) have the same issue.
Maybe we needs 'polled' flag in .set_leds function, or an independent
.set_leds accessop in struct wskbd_consops for cons(9).

(tsutsui)

2021-09-20 02:26:05 UTC MAIN commitmail json YAML

Update the status of the thorpej-futex branch.

(thorpej)

2021-09-20 02:23:29 UTC MAIN commitmail json YAML

Note eventfd, timerfd, POSIX timers, and preadv()/pwritev() additions
to COMPAT_LINUX / COMPAT_LINUX32.

(thorpej)

2021-09-20 02:20:31 UTC MAIN commitmail json YAML

Regen for preadv(2) / pwritev(2).

(thorpej)

2021-09-20 02:20:03 UTC MAIN commitmail json YAML

2021-09-20 01:07:57 UTC MAIN commitmail json YAML

2021-09-20 01:07:46 UTC MAIN commitmail json YAML

2021-09-20 01:01:05 UTC MAIN commitmail json YAML

2021-09-20 01:00:55 UTC MAIN commitmail json YAML

2021-09-20 00:09:34 UTC MAIN commitmail json YAML

Regen for eventfd.

(thorpej)

2021-09-20 00:09:02 UTC MAIN commitmail json YAML

2021-09-19 23:52:08 UTC MAIN commitmail json YAML

Regen for timerfd.

(thorpej)

2021-09-19 23:51:37 UTC MAIN commitmail json YAML

2021-09-19 23:02:23 UTC MAIN commitmail json YAML

Regen for POSIX timer syscalls.

(thorpej)

2021-09-19 23:01:50 UTC MAIN commitmail json YAML

2021-09-19 22:32:45 UTC MAIN commitmail json YAML

Remove redundant linux32_to_native_timespec() prototype.

(thorpej)

2021-09-19 22:30:28 UTC MAIN commitmail json YAML

2021-09-19 22:09:32 UTC MAIN commitmail json YAML

G/C some unused (and unnecessary) definitions.

(thorpej)

2021-09-19 20:52:47 UTC MAIN commitmail json YAML

s/Plese/Please/ in comment, and fix an article in obio_wdc.c comment.

(andvar)

2021-09-19 20:43:46 UTC MAIN commitmail json YAML

review and fix rest of the typos in alpha pmap.c.

(andvar)

2021-09-19 17:33:39 UTC MAIN commitmail json YAML

- LINUX_SIGEV_PAD is incorrect for 64-bit systems, because sigval_t
  contains a pointer.  Correct this.
- Add routines to convert from Linux to native sigevent_t.

(thorpej)

2021-09-19 17:10:42 UTC MAIN commitmail json YAML

Sort errors, remove extra comma.

(wiz)

2021-09-19 15:52:56 UTC MAIN commitmail json YAML

Note eventfd(2) and timerfd(2).

(thorpej)

2021-09-19 15:52:05 UTC MAIN commitmail json YAML

2021-09-19 15:51:28 UTC MAIN commitmail json YAML

2021-09-19 11:43:54 UTC MAIN commitmail json YAML

Use more C99 designated initializer.

(tsutsui)

2021-09-19 11:37:01 UTC MAIN commitmail json YAML

2021-09-19 10:46:17 UTC MAIN commitmail json YAML

2021-09-19 10:34:10 UTC MAIN commitmail json YAML

2021-09-19 07:55:18 UTC MAIN commitmail json YAML

Handle CAP and Kana modifier key specification quirk of LUNA's keyboard.

LUNA's keyboard doesn't send any keycode when these modifier keys are
released.  Instead, it sends a pressed or released code per how each
modifier LED status will be changed when the modifier keys are pressed.
To handle this quirk in MI wskbd(4) layer, we have to send a faked
"pressed and released" sequence on passing keycodes to wskbd_input(9).

Tested on LUNA both on ttyE0 and WSKBD_RAW mode (on Xorg server).

(tsutsui)

2021-09-19 04:55:58 UTC MAIN commitmail json YAML

Use C99 designated initializer for wscons ops.

(tsutsui)

2021-09-18 23:54:13 UTC MAIN commitmail json YAML

explain why we skip over dev 1f func 7 in config space access functions
no functional change

(macallan)

2021-09-18 21:34:57 UTC MAIN commitmail json YAML

Fix trailing backslashes in a macro that got misaligned.

(uwe)

2021-09-18 19:59:11 UTC MAIN commitmail json YAML

oops, re-enable host_detect_local_cpu for NetBSD

(jmcneill)

2021-09-18 19:21:39 UTC MAIN commitmail json YAML

Fix one comment edit missed in previous.

(uwe)

2021-09-18 18:14:07 UTC MAIN commitmail json YAML

Fix pasto.  WSKBDIO_*BELL ioctls take struct wskbd_bell_data.

Bump date.

XXX1: the wskbd(4) (and all otther wscons(4) related) man page should
      describe more details of all ioctls.
      (usage, args and return values including structures).
XXX2: the wsbell(4) man page has description about all WSKBDIO_*BELL ioctls
      and struct wskbd_bell_data, but maybe they should be moved into this
      wskbd(4) man page and wsbell(4) should be changed to xref wskbd(4).

(tsutsui)

2021-09-18 18:01:18 UTC MAIN commitmail json YAML

Update description of struct timecounter (u_int64_t -> uint64_t).

It has been changed since src/sys/sys/timetc.h rev 1.8.
Bump date.

(tsutsui)

2021-09-18 15:14:41 UTC MAIN commitmail json YAML

Remove unnecessary (and unimplemented) WSKBD_*BELL ioctls in kbd drivers.

It looks the only ioctl(4) to be implemented for WSKBDIO_*BELL in
the backend keyboard driver is WSKBDIO_COMPLEXBELL.
All other BELL ioctls (WSKBDIO_BELL, WSKBDIO_SETBELL, WSKBDIO_GETBELL,
WSKBDIO_SETDEFAULTBELL, and WSKBDIO_GETDEFAULTBELL) are handled in the
MI wskbd driver (in wskbd_displayioctl() in src/sys/dev/wscons/wskbd.c).

(tsutsui)

2021-09-18 15:09:05 UTC MAIN commitmail json YAML

Do not obfuscate r0 as "reg_tmp0".

Using r0 as a temp is a common choice.  Some instructions _must_ use
r0 as the destination (like mova or instructions with immediates).
ABI uses r0 as the return register.  So a helpful name is not that
helpful for the former use case (temp) and is confusing for the latter
two (ISA or ABI constraints).  Same object code is generated.

(uwe)

2021-09-18 14:57:10 UTC MAIN commitmail json YAML

Space after comma in operands.  Same object code is generated.

(uwe)

2021-09-18 14:24:04 UTC MAIN commitmail json YAML

2021-09-18 13:46:25 UTC MAIN commitmail json YAML

Mention about luna68k keyboard LED and buzzer command support for wskbd(4).

(tsutsui)

2021-09-18 13:44:02 UTC MAIN commitmail json YAML

Implement transmitting keyboard LED and buzzer control commands.

- enable TX on uPD7201 for keyboard port
- prepare TX queue and handle it in hardware interrupt and softint(9)
- send proper LED commands on WSKBDIO_SETLEDS
  (XXX: KANA LED is not handled in wscons)
- return current LED settings on WSKBDIO_GETLEDS
- implement WSKBDIO_COMPLEXBELL by parsing struct wskbd_bell_data and
  send proper buzzer commands
- handle pitch, period, and volume in cnbell(9)
  (XXX: no description in cnbell(9) man pages)
- use proper queued TX function for omms_enable() and omms_disable()
- add DPRINTF()s for debug
- use C99 designated initializer and misc cosmetics

Tested on LUNA and its keyboard (3W4SD-098NDT).

(tsutsui)

2021-09-18 12:25:07 UTC MAIN commitmail json YAML

gic_splx: performance optimizations

Avoid any kind of register access (DAIF, PMR, etc), barriers, and atomic
operations in the common case where no interrupt fires between spl being
raised and lowered.

This introduces a per-CPU return address (ci_splx_restart) used by the
vector handler to restart a sequence in splx that compares the new ipl
with the per-CPU hardware priority state stored in ci_hwpl.

(jmcneill)

2021-09-18 10:46:17 UTC MAIN commitmail json YAML

use isfinite(3) instead of finite(3) for portability

Fixes tools build on macOS 11.6 arm64 hosts.

(jmcneill)

2021-09-18 10:45:11 UTC MAIN commitmail json YAML

2021-09-18 09:49:57 UTC MAIN commitmail json YAML

bus_space_is_equal: fix crash when called with NULL tag

(jmcneill)

2021-09-18 06:32:41 UTC MAIN commitmail json YAML

Support __PIC__ build, in order to avoid text relocations for
/usr/tests/net/in_cksum/in_cksum.

Now, all the tests for in_cksum successfully pass for sh[34].

No binary changes for kernel.

(rin)

2021-09-18 06:31:46 UTC MAIN commitmail json YAML

cksum128mod: Prepare jump address by 'mova', instead of 'mov.l'.

Since both this 'mova' and 'and #imm' above must be used against r0,
we need extra 'mov r0, r3'. However, this should still be good both for
sh3 and sh4:

- For sh3, 'mov.l' at odd half-word address is removed; pipeline hazard
  due to instruction fetch is resolved.

- For sh4, data cache line is no longer assigned for this 'mov.l'.

Also:

- Upcoming __PIC__ support (in order to avoid text relocations when built
  in tests/net/in_cksum) becomes simpler; no need CALL_DATUM_LOCAL() for
  cksum128_tail.

- Shave off 4 bytes from text.

No regression is observed for sh3 (hpcsh) and sh4 (landisk).

(rin)

2021-09-18 03:05:20 UTC MAIN commitmail json YAML

2021-09-18 01:47:11 UTC MAIN commitmail json YAML

Patch the build script and toolchain to allow passing through
HOST_CPPFLAGS, HOST_CXXFLAGS, but not LIBRARY_PATH because it breaks
the build. These variables are necessary to support building NetBSD
from a GNU Guix or NixOS host, where /usr/include, /lib, and all
but /bin/sh do not exist.  In many cases, support for HOST_CPPFLAGS
was incomplete. From Ryan Sundberg

(christos)

2021-09-17 22:41:48 UTC MAIN commitmail json YAML

Fix the function pointer declaration to something lint likes.

(christos)

2021-09-17 21:22:38 UTC MAIN commitmail json YAML

Fix timestamp extraction logic for Mercurial repos to use UTC.
Extend logic to also cover "hg archive".

(joerg)

2021-09-17 21:15:19 UTC MAIN commitmail json YAML

downgrade bitfield in union to a warnings (ldpd uses it).

(christos)

2021-09-17 21:06:35 UTC MAIN commitmail json YAML

remove lint hacks now that lint supports _Static_assert

(christos)

2021-09-17 21:06:04 UTC MAIN commitmail json YAML

Extra commit to fix the actual wrong comment before:
Add _Static_assert grammar and keyword

(christos)

2021-09-17 20:17:30 UTC MAIN commitmail json YAML

2021-09-17 16:16:18 UTC MAIN commitmail json YAML

Don't include <sys/device_calls.h> in the _STANDALONE case.

(thorpej)

2021-09-17 14:49:03 UTC MAIN commitmail json YAML

XXX: Teach lint about _Static_assert...

(christos)

2021-09-17 14:48:32 UTC MAIN commitmail json YAML

Use CPPFLAGS for -D and -I so that lint works.

(christos)

2021-09-17 14:09:00 UTC MAIN commitmail json YAML

Re-instate /usr/lib/dtrace which seems to have been accidentally deleted
in the previous update.

(kre)

2021-09-17 13:02:52 UTC MAIN commitmail json YAML

Sprinkle a little delay.

(nat)

2021-09-17 13:00:20 UTC MAIN commitmail json YAML

Initialize firmware mailbox counter when firmware is reset.

(nat)

2021-09-17 12:58:31 UTC MAIN commitmail json YAML

Serialize sending of firmware commands to device.

(nat)

2021-09-17 12:55:10 UTC MAIN commitmail json YAML

Use urtwn_delay_ms were possibile.

NFC intended.

(nat)

2021-09-17 10:15:35 UTC MAIN commitmail json YAML

wdc_sataprobe: Fix lock leak when atabus_alloc_drives() fails.

(rin)

2021-09-17 08:13:06 UTC MAIN commitmail json YAML

2021-09-17 02:18:05 UTC MAIN commitmail json YAML

src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/Makefile@1.2 / diff / nxr@1.2
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/Makefile@1.2 / diff / nxr@1.2
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m32/Makefile@1.2 / diff / nxr@1.2
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile@1.7 / diff / nxr@1.7
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m32/Makefile@1.2 / diff / nxr@1.2
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m64/Makefile@1.2 / diff / nxr@1.2
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m32/Makefile@1.2 / diff / nxr@1.2
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile@1.7 / diff / nxr@1.7
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/common.mk@1.6 / diff / nxr@1.6
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dd-m64/Makefile@1.2 / diff / nxr@1.2
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/Makefile@1.2 / diff / nxr@1.2
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer-m64/Makefile@1.2 / diff / nxr@1.2
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer_no_main-m64/Makefile@1.2 / diff / nxr@1.2
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile@1.7 / diff / nxr@1.7
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile@1.7 / diff / nxr@1.7
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile@1.3 / diff / nxr@1.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile@1.3 / diff / nxr@1.3
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile@1.7 / diff / nxr@1.7
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile@1.7 / diff / nxr@1.7
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/Makefile@1.2 / diff / nxr@1.2
      :
(more 13 files)
- get the version dynamically
- move more common stuff into common.mk

(christos)

2021-09-17 02:12:17 UTC MAIN commitmail json YAML

Robustness fix: handle libraries that contain . in their basename.

(christos)

2021-09-16 23:32:50 UTC MAIN commitmail json YAML

2021-09-16 22:47:29 UTC MAIN commitmail json YAML

2021-09-16 22:19:12 UTC MAIN commitmail json YAML

2021-09-16 21:29:42 UTC MAIN commitmail json YAML