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 (178d) 

2024-05-10 07:21:58 UTC Now

2020-10-04 13:24:59 UTC MAIN commitmail json YAML

make(1): clean up local variables in Parse_DoVar

The variable "line" was misnamed since it turned from the beginning of
the line to the variable name.  The variable "cp" was named too broadly.
Having two moving pointers in a single parsing function was too much.

Now p is the only moving pointer.  From it, the variable name and value
are extracted as the pointer flies by.  These more specific names make
the lower half of the function more readable since Var_Set(name, value)
sounds more correct and to the point than Var_Set(line, cp).

Memory management for the possibly expanded variable value is now
simpler as there may or may not be an expanded value, and that is freed
in every case.  No need for another Boolean variable called freeCp
anymore.  Distinguishing between the unexpanded value and the actual
value highlights the data flow.

Using const pointers is a step into the direction of having a parser
that operates on a read-only string.  Right now the string is destroyed
upon parsing.

(rillig)

2020-10-04 11:58:57 UTC MAIN commitmail json YAML

make(1): fix out-of-bounds memory access in Parse_DoVar

When a line starts with "=value", this is interpreted as a variable
assignment, with an empty variable name.  In that case, there is no
"previous character" from the '='.  Accessing that character therefore
was an out-of-bounds read access.

If a whole file starts with "=value", instead of just a single line,
this out-of-bounds access can actually lead to a segmentation fault.
This depends on the memory allocator though.

(rillig)

2020-10-04 10:35:25 UTC MAIN commitmail json YAML

make(1): only use the VARE_ASSIGN flag if necessary

When checking the right-hand side of a variable assignment for syntax
errors, it does not matter  whether a '$$' is expanded to '$' or kept as
'$$'.

(rillig)

2020-10-04 10:34:18 UTC MAIN commitmail json YAML

2020-10-04 10:16:10 UTC MAIN commitmail json YAML

make(1): add basic tests for the += assignment operator

(rillig)

2020-10-04 09:45:44 UTC MAIN commitmail json YAML

Fix ramdisk overflow:

- switch to x_disklabel (drop non-native label support)
- switch to x_fsck_ffs and x_newfs (drop byte-swapped and Apple UFS support)
- switch to more

(rin)

2020-10-04 09:42:48 UTC MAIN commitmail json YAML

Fix ramdisk overflow:

- switch to x_disklabel (drop non-native label support)
- switch to x_fsck_ffs and x_newfs (drop byte-swapped and Apple UFS support)
- switch to more

(rin)

2020-10-04 09:34:18 UTC MAIN commitmail json YAML

Fix miniroot overflow by switching to x_fsck_ffs and x_newfs
(drop byte-swapped and Apple UFS support).

(rin)

2020-10-04 08:32:52 UTC MAIN commitmail json YAML

make(1): add test for combining :sh with +=

(rillig)

2020-10-04 08:22:59 UTC MAIN commitmail json YAML

make(1): make documentation of Error more precise

(rillig)

2020-10-04 08:14:35 UTC MAIN commitmail json YAML

make(1): add another test for parsing :sh assignments

(rillig)

2020-10-04 08:09:12 UTC MAIN commitmail json YAML

2020-10-04 08:02:17 UTC MAIN commitmail json YAML

make(1): test another edge case for the :sh assignment

(rillig)

2020-10-04 07:49:45 UTC MAIN commitmail json YAML

2020-10-04 06:53:15 UTC MAIN commitmail json YAML

2020-10-04 06:15:55 UTC MAIN commitmail json YAML

Ensure event_thread stays in event loop upon creation.

(nat)

2020-10-03 23:16:29 UTC MAIN commitmail json YAML

make(1): replace strcpy with memcpy in Hash_CreateEntry

The string length is already known, no need to recalculate it.

(rillig)

2020-10-03 22:33:26 UTC MAIN commitmail json YAML

make(1): remove unnecessary code from Hash_DeleteEntry

This function is only called 2 times, and both callers pass valid
arguments.

(rillig)

2020-10-03 22:32:50 UTC MAIN commitmail json YAML

autoconf: Blame devices holding up boot with config_pending.

Blame message requires `boot -x' (AB_DEBUG).

Fix ata so it doesn't mismatch config_pending_incr/decr devices.

(riastradh)

2020-10-03 22:27:00 UTC MAIN commitmail json YAML

PR/55693: Andreas Gustafsson: factor(6) lists factors in wrong order
Sync with FreeBSD and change their -h (that printed hex) to -x because
we were already using -h.

(christos)

2020-10-03 22:25:05 UTC MAIN commitmail json YAML

make(1): clean up hash table implementation

Having the hash function potentially redefined is a bit too much
flexibility.  If actually needed, this should be done using a patch, not
using the C preprocessor.

Converting the macro to a function made the control flow easier to
understand.  It also revealed that the variable p was unnecessary in
both Hash_FindEntry and Hash_CreateEntry.

(rillig)

2020-10-03 21:52:51 UTC MAIN commitmail json YAML

2020-10-03 21:43:41 UTC MAIN commitmail json YAML

make(1): remove dead store in ParseGetLine

GCC 5 didn't dare to optimize this by itself.

(rillig)

2020-10-03 21:23:42 UTC MAIN commitmail json YAML

make(1): inline macro ISEQOPERATOR

The name of the macro was wrong.  These characters are not used in an
equality operator, it's an assignment operator.

(rillig)

2020-10-03 21:19:54 UTC MAIN commitmail json YAML

make(1): use consistent pattern for parsing whitespace

The pp and cpp in the function names stand for "parsing position" and
"const parsing position".

(rillig)

2020-10-03 20:34:06 UTC MAIN commitmail json YAML

make(1): add unit test for the Towers of Hanoi puzzle

(rillig)

2020-10-03 18:54:18 UTC MAIN commitmail json YAML

PR 55384: detangle pm->ptstart from the "install" flag (selecting a
target partition). Instead introduce a new PTI_INSTALL_TARGET per partition
flag and deal with it in the partitioning backends.

Honour pm->ptstart when allocating new partitions - it is supposed to be
the first sector usable by NetBSD.

(martin)

2020-10-03 18:42:20 UTC MAIN commitmail json YAML

- centralize number parsing code
- enable -g
- KNF

(christos)

2020-10-03 18:35:21 UTC MAIN commitmail json YAML

2020-10-03 18:34:15 UTC MAIN commitmail json YAML

bump for set_rpc_maxgrouplist

(christos)

2020-10-03 18:33:52 UTC MAIN commitmail json YAML

add set_rpc_maxgrouplist

(christos)

2020-10-03 18:31:29 UTC MAIN commitmail json YAML

2020-10-03 18:30:39 UTC MAIN commitmail json YAML

add set_rpc_maxgrouplist(3)

(christos)

2020-10-03 18:29:02 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2020-10-03 18:06:37 UTC MAIN commitmail json YAML

Add -A (noac) option to turn off the attribute cache. (Maciej W. Rozycki)

(christos)

2020-10-03 17:33:23 UTC MAIN commitmail json YAML

Add a comment describing the rpb::rpb_vptb field.

(thorpej)

2020-10-03 17:32:49 UTC MAIN commitmail json YAML

Provide an alternate delay function that uses the Qemu get-time hypercall.

(thorpej)

2020-10-03 17:31:46 UTC MAIN commitmail json YAML

Qemu loads the kernel directly, and so there's no bootloader to provide
a "bootinfo" structure for us.  Qemu does, however, place a Linux kernel
parameter block at kernel_text[] - 0x6000 that contains Linux-style kernel
command line arguments.  So, add a prom_qemu_getenv() that allows us to
look for specific things passed along to the kernel from there, and use
them as follows:

- Support specifying the root device in the forms "root=/dev/wd0a",
  "root=wd0a", or "rootdev=wd0".
- Support SRM-like -flags ... in the form of "flags=AD".  In the case of
  Qemu, we also assume that no flags=... is the same as "flags=A", i.e.
  perform an auto-boot.

Also allow an alternate delay() function to be specified, if the platform
wishes to provide one.

(thorpej)

2020-10-03 17:30:54 UTC MAIN commitmail json YAML

make(1): add test demonstrating the Towers of Hanoi puzzle

It's not the primary task of make to handle procedure calls with
parameters, combined with lexical scoping, therefore the code does not
look as straight-forward or clean as in other programming languages.  It
feels more like squeezing a programming problem from the imperative
world into the world of declarative dependencies.

A more idiomatic way of implementing this puzzle should be as a
dependency graph since that's both the natural structure of the puzzle
and the primary domain of make.  Something like having a main target
"hanoi-5" that depends on intermediate targets of the form
"move-1.2.3.4.5-_._._._._-_._._._._", each representing a single
configuration of the stacks.  These targets could be generated
dynamically.  A benefit of this implementation would be that the puzzle
could be resumed from an arbitrary configuration, just just from the
initial configuration.

(rillig)

2020-10-03 15:38:13 UTC MAIN commitmail json YAML

make(1): demonstrate naive output filtering with csh in parallel mode

(rillig)

2020-10-03 15:28:37 UTC MAIN commitmail json YAML

make(1): fix shell definition for csh

The bug has been there since at least 1993-03-21.  This is strong
evidence that nobody has ever used the csh in parallel mode.

(rillig)

2020-10-03 15:23:42 UTC MAIN commitmail json YAML

make(1): demonstrate wrong output when using csh in parallel mode

(rillig)

2020-10-03 15:21:13 UTC MAIN commitmail json YAML

2020-10-03 15:00:57 UTC MAIN commitmail json YAML

2020-10-03 14:41:20 UTC MAIN commitmail json YAML

make(1): inline Str_FindSubstring in ModifyWord_Subst

(rillig)

2020-10-03 14:39:36 UTC MAIN commitmail json YAML

2020-10-03 14:01:16 UTC MAIN commitmail json YAML

Filter out the VUSECOUNT_GATE bit

(christos)

2020-10-03 13:51:34 UTC MAIN commitmail json YAML

MMIO configuration space is in guest byte order. AArch64 BE is special,
as the guest starts in LE and we switch to BE after the kernel starts.
For this case, we need to byte swap all config space accesses.

(jmcneill)

2020-10-03 13:22:39 UTC MAIN commitmail json YAML

make(1): replace backslash-newline with ordinary string literals

The character sequence backslash-newline is not mentioned in ISO C99.

(rillig)

2020-10-03 13:06:56 UTC MAIN commitmail json YAML

make(1): allow to disable debug logging options

This is only intended for the unit tests, to selectively enable and
disable debug logging as needed.  Previously the tests for debug logging
required complicated postprocessing that was not obvious when looking at
the test .mk file alone, but was specified externally in
unit-tests/Makefile.

This is the simplest possible implementation.  Another variant would
have been to selectively disable individual debug logging options, but
that would have made the code more complicated.

The -dL option is not affected by -d0 since that is not really a debug
option, even if it is implemented as one.

(rillig)

2020-10-03 12:51:49 UTC MAIN commitmail json YAML

make(1): extract ApplyModifier_Literal into separate function

(rillig)

2020-10-03 12:46:52 UTC MAIN commitmail json YAML

make(1): extract ApplyModifier_Unique into separate function

(rillig)

2020-10-03 12:30:17 UTC MAIN commitmail json YAML

make(1): in lint mode, reject modifiers without delimiter

The expression ${VAR:LPL} must now be written as ${VAR:L:P:L}.  The
manual page has never documented that some modifiers don't need to be
delimited by ':' and others need to.  That would have been unnecessarily
confusing anyway.

(rillig)

2020-10-03 12:26:11 UTC MAIN commitmail json YAML

2020-10-03 10:42:09 UTC MAIN commitmail json YAML

make(1): ignore -env and -literal in assignments to .MAKE.EXPORTED

Previously, assigning the string "-env" to the variable .MAKE.EXPORTED
had the same effect as the .export-env directive.  This was only due to
a sloppy implementation, not by design.

For the string "-literal" and the directive .export-literal, the
situation was even worse since the actually executed code was a wild
mixture between .export and .export-literal that in the end exported the
expanded form of the variable.  Therefore there was no practical use
case of this implementation flaw.

(rillig)

2020-10-03 10:31:05 UTC MAIN commitmail json YAML

make(1): do not export variable names starting with '-'

By convention, names of environment variables consist of uppercase
letters and underscores.  Most of them start with an uppercase letter.
In a few cases, the names also contain lowercase letters, such as in
http_proxy.

Variable names starting with a hyphen are confusing and might be
mistaken as command line options.  Therefore don't export these.

This also affects a few edge cases that don't occur in practice, such as
setting .MAKE.EXPORTED=-env or .MAKE.EXPORTED=-literal.  These had not
worked as expected anyway.

(rillig)

2020-10-03 10:13:39 UTC MAIN commitmail json YAML

make(1): clean up confusing code in Var_Export

The generated code stays exactly the same.

(rillig)

2020-10-03 10:04:34 UTC MAIN commitmail json YAML

make(1): format code in arch.c

(rillig)

2020-10-03 09:56:00 UTC MAIN commitmail json YAML

Add missing __BEGIN_DECLS/__END_DECLS to force function declarations into
the "C" namespace.

(martin)

2020-10-03 09:48:40 UTC MAIN commitmail json YAML

2020-10-03 09:37:04 UTC MAIN commitmail json YAML

2020-10-03 09:10:26 UTC MAIN commitmail json YAML

make(1): add test for the -dF option

(rillig)

2020-10-03 08:29:32 UTC MAIN commitmail json YAML

2020-10-03 08:16:53 UTC MAIN commitmail json YAML

2020-10-03 07:52:30 UTC MAIN commitmail json YAML

2020-10-03 06:36:01 UTC MAIN commitmail json YAML

make(1): fix indentation of code for printing enum values

(rillig)

2020-10-03 05:56:26 UTC MAIN commitmail json YAML

2020-10-02 22:20:25 UTC MAIN commitmail json YAML

make(1): use hash table for looking up open directories by name

As long as there are less than 20 open directories, it's perfectly fine
to use a doubly-linked list for name lookup.  A singly linked list or
even an array list would have been better, but anyway.

When the number of directories rises above 1000, which happens with
dirdeps.mk, linear list lookup becomes too expensive, especially since
each list entry is compared using a strcmp call, in a callback function
that is not inlined.

Using a hash table is much more efficient than linear lookup.  While
here, abstract all operations regarding the openDirectories list into a
new data type that provides a simple and straight-forward API.  This
strongly typed API is especially important since the current
implementation of the list and hash table is weakly typed, using void *
for the actual data, and StringList and CachedDirList refer to the
exactly same type, they just have different names to help the human
readers but don't provide any type safety.

(rillig)

2020-10-02 20:48:37 UTC MAIN commitmail json YAML

make(1): add test for repeating the :L variable modifier

(rillig)

2020-10-02 20:34:59 UTC MAIN commitmail json YAML

2020-10-02 18:46:54 UTC MAIN commitmail json YAML

make(1): add test for the special .PATH target and variable

(rillig)

2020-10-02 17:42:33 UTC MAIN commitmail json YAML

make(1): in ApplyModifier_To, update pp in each branch

Before, the parsing position was updated once at the beginning, which
didn't make sense.  Updating it in each branch allows to decide for its
appropriate value in each branch individually.

(rillig)

2020-10-02 17:33:14 UTC MAIN commitmail json YAML

undo previous for 'r' and 'e' modifiers; they should no go further than
the last '/'.

(christos)

2020-10-02 17:27:12 UTC MAIN commitmail json YAML

Build arm64.img for aarch64eb with a LE FFS, and include GENERIC64 in
release builds.

(jmcneill)

2020-10-02 14:59:56 UTC MAIN commitmail json YAML

Revert rev 1.5:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/fdt/dw_apb_uart.c#rev1.5

The device is capable to recognize break signal actually.
Reset cnmagic from +++++ to default.

Pointed out by jakllsch. Thanks!

(rin)

2020-10-02 14:36:54 UTC MAIN commitmail json YAML

Do not assume that _lwp_getprivate() returns unbiased private pointer

Cherry-pick and adapt:

>From 2a9ce60de98e53198047daaeeec3cf09ece4e693 Mon Sep 17 00:00:00 2001
From: Kamil Rytarowski <n54@gmx.com>
Date: Fri, 2 Oct 2020 16:13:09 +0200
Subject: [PATCH] [compiler-rt] [netbsd] Improve the portability of
ThreadSelfTlsTcb

Use __lwp_gettcb_fast() and __lwp_getprivate_fast(), as _lwp_getprivate()
can be a biased pointer and invalid for use in this function on all CPUs.

(kamil)

2020-10-02 13:45:07 UTC MAIN commitmail json YAML

2020-10-02 13:08:07 UTC MAIN commitmail json YAML

xterm: Enable SIXEL graphics support.

could also enable REGIS, it will require -lm and i suppose isn't
a default upstream yet(?)

test with "-ti vt340".

(nia)

2020-10-02 07:33:47 UTC MAIN commitmail json YAML

2020-10-01 23:52:51 UTC MAIN commitmail json YAML

make(1): clean up documentation of Main_ParseArgLine

The previous documentation contained lots of irrelevant implementation
details.

(rillig)

2020-10-01 23:44:36 UTC MAIN commitmail json YAML

2020-10-01 23:42:22 UTC MAIN commitmail json YAML

make(1): clean up option handling

The test for argvalue == NULL for the individual options was unnecessary
since that is already done in the common part.

(rillig)

2020-10-01 23:28:01 UTC MAIN commitmail json YAML

make(1): format code in MainParseArgs

(rillig)

2020-10-01 23:20:48 UTC MAIN commitmail json YAML

make(1): extract handling of the -m option into separate function

(rillig)

2020-10-01 23:14:08 UTC MAIN commitmail json YAML

make(1): extract option handling for -j/-J into separate functions

(rillig)

2020-10-01 23:06:56 UTC MAIN commitmail json YAML

make(1): extract MainParseArgChdir into separate function

This removes the struct stat from MainParseArg.

(rillig)

2020-10-01 23:02:08 UTC MAIN commitmail json YAML

make(1): extract MainParseArg into separate function

That part of the code is long enough and independent enough to get its
own function.  Having a struct stat in MainParseArgs just didn't feel
like a correct abstraction level.

(rillig)

2020-10-01 22:42:00 UTC MAIN commitmail json YAML

2020-10-01 21:22:47 UTC MAIN commitmail json YAML

xeyes: Enable anti-aliasing with XRENDER

If you prefer the "classic" look, "xeyes +render"

(nia)

2020-10-01 21:00:55 UTC MAIN commitmail json YAML

make(1): add note about "..." with duplicate shell commands

(rillig)

2020-10-01 18:34:06 UTC MAIN commitmail json YAML

Reset the entries for drochner and dsl

i386 and amd64 are now maintained by core.

(kamil)

2020-10-01 18:23:29 UTC MAIN commitmail json YAML

Remove

(kamil)

2020-10-01 18:21:11 UTC MAIN commitmail json YAML

Drop TODO.ptrace

The remaining issues are mostly tracked in the ATF ptrace tests and GDB
or LLDB test-suite.

(kamil)

2020-10-01 18:19:20 UTC MAIN commitmail json YAML

Drop TODO.sanitizers

The LLVM work is merged mostly to GCC.
The remaining work is not worth tracking here and is restricted mostly to
fixing bugs from various 'make check-*' targets in LLVM.

(kamil)

2020-10-01 17:13:19 UTC MAIN commitmail json YAML

synaptics: Emulate scrolling when the middle button is held with TrackPoints

idea stolen from various other operating systems.

this configurable with a sysctl in case somebody wants to hold the middle
button, e.g.  with old window managers that close menus when a button is
released.

(nia)

2020-10-01 15:08:11 UTC MAIN commitmail json YAML

erect a signpost for weary travellers

(nia)

2020-10-01 14:33:26 UTC MAIN commitmail json YAML

comment was likely true in 2007 but no longer reflects the reality of hw

(nia)

2020-10-01 13:49:18 UTC MAIN commitmail json YAML

Link librumpclient explicitly. Fix sun2, i.e., MKPIC=no build.

(rin)

2020-10-01 08:27:20 UTC MAIN commitmail json YAML

2020-10-01 07:31:27 UTC MAIN commitmail json YAML

2020-10-01 07:21:36 UTC MAIN commitmail json YAML

2020-10-01 06:59:34 UTC MAIN commitmail json YAML

2020-10-01 06:40:16 UTC MAIN commitmail json YAML

2020-10-01 02:00:04 UTC MAIN commitmail json YAML

Fix up the debug stuff for if_tap and if_vether

(pgoyette)

2020-09-30 23:58:13 UTC MAIN commitmail json YAML

Fix off-by-one in channel count, from Mark Millard.

(jmcneill)

2020-09-30 20:20:53 UTC MAIN commitmail json YAML

Add if_tap directory for DEBUG builds.

(roy)

2020-09-30 17:51:10 UTC MAIN commitmail json YAML

Fix
% set x='a/b c/d.e'
% echo $x:q:h

(christos)

2020-09-30 17:14:11 UTC MAIN commitmail json YAML

Be like other tests and speciy the binary name we install

(roy)

2020-09-30 17:11:31 UTC MAIN commitmail json YAML

2020-09-30 17:05:59 UTC MAIN commitmail json YAML

2020-09-30 16:47:55 UTC MAIN commitmail json YAML

2020-09-30 16:35:49 UTC MAIN commitmail json YAML

Move el[01]_trap_exit into vectors.S where the callers exist

(skrll)

2020-09-30 14:56:34 UTC MAIN commitmail json YAML

Set sc_fifolen=1 for the no fifo case

(jmcneill)

2020-09-30 14:54:33 UTC MAIN commitmail json YAML

2020-09-30 14:43:15 UTC MAIN commitmail json YAML

tap(4): update the test so that we can open the tap to ping across a bridge

ping with tap closed to ensure it fails
ping with tap open to ensure it works

(roy)

2020-09-30 08:43:47 UTC MAIN commitmail json YAML

add linux compatible /proc/cpuinfo

(ryo)

2020-09-30 08:40:49 UTC MAIN commitmail json YAML

add some fields of ID_AA64ISAR1_EL1 definition (ARMv8.6)

(ryo)

2020-09-30 08:32:00 UTC MAIN commitmail json YAML

Revert previous - test is a shell script, no debug info installed

(martin)

2020-09-30 08:21:27 UTC MAIN commitmail json YAML

Add if_vether debug dir

(martin)

2020-09-30 07:55:31 UTC MAIN commitmail json YAML

add missing new if_vether subdir.

(mrg)

2020-09-30 06:46:43 UTC MAIN commitmail json YAML

make(1): extract ApplyModifier_Quote into separate function

(rillig)

2020-09-30 06:27:02 UTC MAIN commitmail json YAML

make(1): remove redundant assertions in lst.c

These pointers are dereferenced shortly after the assertion, which
reliably leads to a SIGSEGV.

(rillig)

2020-09-30 06:15:43 UTC MAIN commitmail json YAML

make(1): fix typos in test for the :L variable modifier

(rillig)

2020-09-30 05:58:22 UTC MAIN commitmail json YAML

make(1): fix bug in evaluation of indirect variable modifiers

Since 2020-09-22, when indirect variable modifiers were applied to a
variable expression based on an undefined variable, these modifiers did
not change the state of a variable expression from undefined to defined.
The modifiers that do this are :D, :U, :L, :P.  Minimal example:

${VARNAME:${:UL}}

The :L modifier from the inner expression sets the value of the outer
expression to its variable name, in this case "VARNAME".  The outer
expression was not marked as being defined though, which resulted in a
"Malformed conditional" error.

In the commit from 2020-09-22, vardebug.exp had changed a lot, and I had
not inspected the change closely.  The important detail was in lines 56
and 60, where VAR_JUNK|VAR_KEEP changed into VEF_UNDEF, thereby losing
the VEF_DEF bit.

(rillig)

2020-09-30 05:42:06 UTC MAIN commitmail json YAML

make(1): demonstrate bug in evaluation of indirect variable modifiers

Reported by sjg.

(rillig)

2020-09-30 05:04:55 UTC MAIN commitmail json YAML

Add some KNF whitespace.

(simonb)

2020-09-29 19:58:50 UTC MAIN commitmail json YAML

2020-09-29 19:41:48 UTC MAIN commitmail json YAML

2020-09-29 19:33:36 UTC MAIN commitmail json YAML

inet: Treat LINK_STATE_UNKNOWN as LINK_STATE_UP when changing

It's something we have always done.
it's really rare for anything to transition to UNKNOWN from either
UP or DOWN, but technically it is possible.

(roy)

2020-09-29 19:20:08 UTC MAIN commitmail json YAML

make(1): rename ShortVarValue to UndefinedShortVarValue

(rillig)

2020-09-29 18:48:43 UTC MAIN commitmail json YAML

make(1): add test for using the :D variable modifier as comment

(rillig)

2020-09-29 18:44:30 UTC MAIN commitmail json YAML

make(1): remove unused assignments to local variables

These only became obvious once ApplyModifier had been extracted, which
shrank the source code of ApplyModifiers by about 100 lines.

Even GCC 5 had seen that they are redundant and had not generated any
code for them.

(rillig)

2020-09-29 18:33:23 UTC MAIN commitmail json YAML

2020-09-29 18:31:39 UTC MAIN commitmail json YAML

make(1): extract ApplyModifier from ApplyModifiers

This allows a return, instead of a variable assignment followed by a
break, saving a few lines of source code.

The size of the resulting binary shrinks as well, even though the code
is essentially the same as before.

(rillig)

2020-09-29 18:31:31 UTC MAIN commitmail json YAML

libtap: Improve comment

(roy)

2020-09-29 18:16:24 UTC MAIN commitmail json YAML

make(1): fix test job-output-long-lines

The test failed on Linux since the test relied on the two child
processes interleaving each other.  This is not guaranteed to happen
though.

(rillig)

2020-09-29 18:13:29 UTC MAIN commitmail json YAML

2020-09-29 16:35:42 UTC MAIN commitmail json YAML

2020-09-29 16:34:08 UTC MAIN commitmail json YAML

2020-09-29 15:29:17 UTC MAIN commitmail json YAML

Apply patch provided by Izumi Tsutsui in PR 55382: make ext2 partitions
show up in the outer (MBR) partition table, needed for example on Cobalt
where firmware boots from that partition.

(martin)

2020-09-29 14:29:56 UTC MAIN commitmail json YAML

PR 55381: try to deal with moved (but not yet saved) partitions when
calculating free space

(martin)

2020-09-29 14:08:43 UTC MAIN commitmail json YAML

When reporting an error before daemonizing, prefix the error message
with the program name.

(gson)

2020-09-29 12:04:48 UTC MAIN commitmail json YAML

xinstall: define MAKE_NATIVE so our make parts compile

(roy)

2020-09-29 08:52:11 UTC MAIN commitmail json YAML

Add [-]eee and [-]vlan-hwfilter.

(msaitoh)

2020-09-29 07:51:01 UTC MAIN commitmail json YAML

Log a message when a process blocks due to a lack of entropy.
Discussed on tech-kern.

(gson)

2020-09-29 03:04:03 UTC MAIN commitmail json YAML

2020-09-29 03:02:19 UTC MAIN commitmail json YAML

2020-09-29 02:58:53 UTC MAIN commitmail json YAML

2020-09-29 02:49:56 UTC MAIN commitmail json YAML

2020-09-29 01:33:01 UTC MAIN commitmail json YAML

Improve time keeping and host CPU usage when running in Qemu:
- clockattach(): Allow multiple calls when running in Qemu. Anything
  after this first one is ignored, but this gives us a change to use
  a clock source provided by the VM directly, rather than relying on
  a more expensive hardware emulation.
- Add cpu_initclocks_secondary(), to handle clock setup on secondary
  CPUs, if needed.
- Allow us to use the WTINT PALcode call in cpu_idle() to idle in a lower
  power state (Qemu's PALcode supports this).
- Use the Qemu per-cpu set-alarm-rel call as the hardclock interrupt
  source.  In Qemu environments, reduce hz to 50 (rather than the
  default 1024) to give the clock a snowball's chance when running on
  a host system with hz=100.  XXX We have to manually re-calculate
  tick and tickadj.  There should be MI code to do this for us.  Also
  in Qemu environments, let hardclock() drive the sched clock by setting
  schedhz=0.

(thorpej)

2020-09-29 01:20:59 UTC MAIN commitmail json YAML

mcclock_init(): Only do our work if called on the primary CPU.

(thorpej)

2020-09-29 01:19:52 UTC MAIN commitmail json YAML

If running in Qemu, don't report stray edge-triggered ISA interrupts.
Works around an issue I obvserved with serial console in Qemu.

(thorpej)

2020-09-29 01:17:22 UTC MAIN commitmail json YAML

Add alpha_pal_wtint(), which invokes the WTINT PALcode call.

(thorpej)

2020-09-29 00:13:13 UTC MAIN commitmail json YAML

Add a slow twiddle option.  This speeds up a pmax netboot by 15% and
is only 1% slower than no twiddle.

(simonb)

2020-09-28 23:31:18 UTC MAIN commitmail json YAML

make(1): replace Lst_Open with direct iteration

(rillig)

2020-09-28 23:13:57 UTC MAIN commitmail json YAML

2020-09-28 23:02:02 UTC MAIN commitmail json YAML

make(1): migrate Make_ProcessWait from Lst_ForEachUntil to Lst_ForEach

(rillig)

2020-09-28 22:38:32 UTC MAIN commitmail json YAML

make(1): remove the inline attribute from debug_printf

The code size overhead of a varargs function is much more than I had
expected.  Since GCC 5 didn't inline the function anyway and it is only
used in debug mode, there is no point keeping multiple copies of that
code around.

(rillig)

2020-09-28 22:23:35 UTC MAIN commitmail json YAML

2020-09-28 21:11:05 UTC MAIN commitmail json YAML

make(1): extract logging from ApplyModifiers into separate functions

These two logging blocks are massive enough to disturb the reading flow
of the remaining code.

Even without these two blocks, ApplyModifiers is still 250 lines long,
which is quite much.

(rillig)

2020-09-28 21:01:53 UTC MAIN commitmail json YAML

make(1): move variable modifier :sh into separate function

(rillig)

2020-09-28 20:55:20 UTC MAIN commitmail json YAML

make(1): make debug logging in var.c compatible to C90

The ... ellipsis for macros is only available since C99.

(rillig)

2020-09-28 20:46:12 UTC MAIN commitmail json YAML

2020-09-28 18:51:34 UTC MAIN commitmail json YAML

PR 55379: avoid creating bogus /etc/fstab lines for /dev/cd* if no
cdrom is available.

(martin)

2020-09-28 18:40:24 UTC MAIN commitmail json YAML

2020-09-28 18:13:25 UTC MAIN commitmail json YAML

PR 55377: mark boot partitions in the partition size display, as suggested
by Izumi Tsutsui (minor modifications + all bugs by me)

(martin)

2020-09-28 16:27:47 UTC MAIN commitmail json YAML

Remove a no-longer-accurate comment.

(thorpej)

2020-09-28 13:50:22 UTC MAIN commitmail json YAML

ifconfig: Just look at if_data->ifi_link_state for carrier

It should be the sole source of truth.
if_data is also carried in ifa_data from getifaddrs(3) which saves
more ioctl calls.

(roy)

2020-09-28 12:47:49 UTC MAIN commitmail json YAML

fix typo that prevented bytes/physsect reporting from working

(jakllsch)

2020-09-28 12:15:23 UTC MAIN commitmail json YAML

2020-09-28 12:14:47 UTC MAIN commitmail json YAML

2020-09-28 12:04:19 UTC MAIN commitmail json YAML

Only set pmap_devmap_bootstrap_done if something gets mapped.

Think acpi_platform_devmap

(skrll)

2020-09-28 11:54:24 UTC MAIN commitmail json YAML

2020-09-28 11:34:47 UTC MAIN commitmail json YAML

Default reg-shift is 2, not 0, for DW APB UART

(jmcneill)

2020-09-28 11:33:15 UTC MAIN commitmail json YAML

Auto-detect DW APB UART FIFO length and print the FIFO length when enabled
instead of just "working fifo".

(jmcneill)

2020-09-28 11:32:19 UTC MAIN commitmail json YAML

Use com_init_regs_stride instead of a4x tag

(jmcneill)

2020-09-28 06:04:08 UTC MAIN commitmail json YAML

unbreak. bsd.files.mk needs to have an includes target, see also
share/wscons/fonts/Makefile

(nia)

2020-09-28 05:43:59 UTC MAIN commitmail json YAML

first step towards r5xx support:
- no CRTC programming yet, we just use whatever mode the (open)firmware hands
  us
- palette control, fb location etc. all work
- hardware acceleration for character drawing, scrolling etc. works
- hardware cursor works
... tested & still works on various radeons in various macppc machines

(macallan)

2020-09-28 05:38:41 UTC MAIN commitmail json YAML

2020-09-28 03:48:12 UTC MAIN commitmail json YAML

qemu device for INSTALL, too.

(thorpej)

2020-09-28 03:34:07 UTC MAIN commitmail json YAML

2020-09-28 03:32:51 UTC MAIN commitmail json YAML

more unit-tests

(sjg)

2020-09-28 03:30:47 UTC MAIN commitmail json YAML

2020-09-28 02:44:34 UTC MAIN commitmail json YAML

Whitespace alignment nit.

(simonb)

2020-09-28 02:06:27 UTC MAIN commitmail json YAML

Remove unnecessary dieQuietly calls

(sjg)

2020-09-28 01:24:34 UTC MAIN commitmail json YAML

Ensure that parse errors report 'stopped in'

(sjg)

2020-09-28 01:20:29 UTC MAIN commitmail json YAML

Protect where the bootinfo esym value is less than the kernel "end"
symbol by setting the end of kernel marker to the greater of these
two values.
XXX: elf2ecoff bug??

(simonb)

2020-09-28 00:13:03 UTC MAIN commitmail json YAML

make(1): format job.h consistently

(rillig)

2020-09-28 00:06:36 UTC MAIN commitmail json YAML

make(1): split Job.jobPipe into 2 separate fields

Just because these file descriptors have to be in an array when they are
created is not reason enough to keep this array and a few access macros
in the Job struct.  It's better to have separate fields, as they can be
documented independently.

(rillig)

2020-09-27 23:59:37 UTC MAIN commitmail json YAML

Add a "qemu" driver to access services provided by the Qemu VM.  First
order of business is to use the Qemu "get-time" console service call as
the perferred system timecounter.

(thorpej)

2020-09-27 23:56:25 UTC MAIN commitmail json YAML

make(1): in JobCreatePipe, use descriptive field names

(rillig)

2020-09-27 23:52:02 UTC MAIN commitmail json YAML

make(1): fix indentation in JobCreatePipe

(rillig)

2020-09-27 23:17:36 UTC MAIN commitmail json YAML

Don't use the PCC timecunter on emulated Qemu systems.

(thorpej)

2020-09-27 23:16:10 UTC MAIN commitmail json YAML

2020-09-27 23:12:12 UTC MAIN commitmail json YAML

make(1): rewrite documentation of Job

The comment above a struct is supposed to give a high-level overview.
The previous comment didn't do that but instead listed the struct fields
in declaration order in a numbered list, which was not helpful.

(rillig)

2020-09-27 22:17:07 UTC MAIN commitmail json YAML

make(1): improve documentation of CachedDir and Dir_AddDir

(rillig)

2020-09-27 21:39:08 UTC MAIN commitmail json YAML

2020-09-27 21:35:16 UTC MAIN commitmail json YAML

2020-09-27 21:19:36 UTC MAIN commitmail json YAML

2020-09-27 20:13:45 UTC MAIN commitmail json YAML

make(1): mark test for the :Ox variable modifier as probabilistic

It fails very seldom, but it can.

(rillig)