Commit Graph

283800 Commits

Author SHA1 Message Date
rillig
b48717edf1 make(1): in jobs mode, extract echo control into separate functions
This removes the clutter from the code that calls these functions.  That
code is still complicated enough since it modifies variables it
shouldn't.
2020-12-12 10:05:15 +00:00
skrll
ff970d373c Move evbarm/fdt/fdt_memory.[ch] to sys/dev/fdt and simplify the api and
some operations.  This allows other architectures to use it.
2020-12-12 09:27:31 +00:00
tsutsui
1464ae0c47 Remove options (NVNODE, NBUF, and BUFPAGES) for small RAM machines.
These options make extracting binary sets much slower even on miniroot.
Instead, use "options BUFCACHE=5" (use 5% of memory for buffercache) and
also specify "-fno-unwind-tables" for COPTS to shrink INSTALL kernel.

Worth to pullup to netbsd-9.
2020-12-12 05:48:55 +00:00
tsutsui
562e3dda50 Fetch files via ftp using auto-fetching with URL per each binary set.
On slower machines, it takes more than five minutes to get a large
set binary and it could cause timeout of ftp control session, so
getting multiple binary sets in a single ftp session always fails.

Briefly tested on HP 9000/425e with 9.1 tree and ftp.netbsd.org binaries.
No particular comments on tech-install@ and port-hp300@.

Maybe should be pulled up to netbsd-9.
2020-12-12 05:23:21 +00:00
pgoyette
803bf850bc Also add the new test to the sets lists. 2020-12-12 03:03:14 +00:00
pgoyette
56b2bfc290 Add directory entry for new libossaudio test 2020-12-12 02:50:26 +00:00
rillig
38e8ece1e7 make(1): make printing of shell commands independent from the job 2020-12-12 02:03:36 +00:00
rillig
8db63e3598 make(1): in jobs mode, extract writing of shell commands
Right now, the test sh-flags.mk demonstrates many variants to configure
echoing of the shell commands (-s, .SILENT, '@'), error handling (-i,
.IGNORE, '-') and whether the commands are run (-n, -N, .MAKE,
.RECURSIVE, '+').

Even more variants are possible by configuring the shell to have error
control.  None of the built-in shell definitions has error control, so
it is unlikely that anybody uses them, but who knows.

Being able to configure these details at 3 levels is good, but what
makes all this really hard to understand is that some of these switches
interact in non-obvious ways.  For example, in jobs mode, a single
command can change job->ignerr (in JobPrintSpecialsEchoCtl), which will
affect all further commands of that job.

The goal of this refactoring is to make the code easier to understand by
making the switches on the job level constant and by moving all
modifications to them to the ShellWriter.
2020-12-12 01:42:33 +00:00
rillig
27790ccd7f make(1): inline local variable in ApplyModifiersIndirect 2020-12-12 00:53:23 +00:00
rillig
741fced9be make(1): in ApplyModifiersIndirect, rename local variable
In other places, the parsing position is abbreviated as pp as well.
2020-12-12 00:42:35 +00:00
rillig
df6fa3cc00 make(1): remove const from function parameters
These have been left-overs from refactoring, when these pieces were
extracted to separate functions.
2020-12-12 00:33:25 +00:00
rillig
f650bd93fa make(1): inline Targ_Ignore and Targ_Silent
Each of these functions was only used 2 times, and each of these calls
used a different part of the whole expression.
2020-12-12 00:05:05 +00:00
rillig
ad7305d632 make(1): clean up comments for command line options 2020-12-11 23:00:59 +00:00
rillig
a4123952e2 make(1): fix documentation of POSIX configuration
Empty commands are always allowed, whether in POSIX mode or not.
2020-12-11 22:53:08 +00:00
rillig
fd30830cf1 make(1): remove DEFMAXLOCAL and DEFMAXJOBS
These have been hard-wired all the time.  The word LOCAL doesn't make
sense anymore since the code for running jobs remotely has gone.
2020-12-11 22:48:31 +00:00
jmcneill
64fce61f41 Simplify gits_command by getting rid of the _BYTE_ORDER test and just
always use the loop + htole64 path.
2020-12-11 22:42:31 +00:00
rillig
6bf5f23d39 make(1): mark strange code that calls exit(signo)
In other places, the exit status of make is carefully chosen to be 0
(success), 1 (did not make everything), 2 (other error).  Using a signal
number is not guaranteed to be consistent among operating systems and is
therefore a weird choice.
2020-12-11 22:33:06 +00:00
riastradh
800615b324 Touch up cgdconfig(8) man page.
- Suggest adiantum first.
- Remove references to Blowfish.
- Clarify that ivmethod is relevant only for ancient compatibility.
2020-12-11 21:52:19 +00:00
jmcneill
48ded1a4d9 Preserve ST Lower and Upper fields when clearing Mask bit in the MSI-X
vector control register.
2020-12-11 21:40:50 +00:00
jmcneill
7a2fe7e810 Fix spelling in comment. 2020-12-11 21:22:36 +00:00
ryoon
704d4179fb Describe after example like other examples 2020-12-11 18:49:37 +00:00
christos
cf7777a2e0 PR/55851: Martin Husemann: recognize <symbol>.part.<n> names
This is gross; perhaps we should hide them completely (not print them
in stack traces etc.)
2020-12-11 18:25:45 +00:00
christos
d8dceee84f fix aarch64 crossgdb 2020-12-11 18:23:25 +00:00
christos
22c0a8465b regen 2020-12-11 18:22:11 +00:00
skrll
cde0ef3d27 s:aarch64/cpufunc.h:arm/cpufunc.h:
a baby step in the grand arm header unification challenge
2020-12-11 18:03:33 +00:00
nia
d00c08ec75 add some basic tests for libossaudio
since there are already tests for audio this is focused on making
sure the ioctls translate properly and implement the necessary OSS
compat quirks.

right now this only covers the dsp ioctls, it should also cover the
mixer ioctls, although that's significantly harder.
2020-12-11 12:29:27 +00:00
skrll
a319d98135 Multiple inclusion protection define consistency 2020-12-11 09:40:28 +00:00
knakahara
2348bef959 Fix build failure when XNEPV is defined. 2020-12-11 09:22:20 +00:00
dholland
0a0324410f arm copyin/out: make copyin not use copyout's epilogue (typo in labels)
The epilogues are the same, so this is harmless, but if they ever
changed (e.g. after rearranging the register usage) it would be broken
in a very confusing way.
2020-12-11 09:14:19 +00:00
dholland
53166c520a arm bswap32: fix fatal typo in thumb code (PR 55854) 2020-12-11 09:02:33 +00:00
skrll
0188024f31 Trailing whitespace 2020-12-11 08:23:46 +00:00
nonaka
f9a11fc69d hvn(4): fix unable to ifconfig up/down. 2020-12-11 08:13:08 +00:00
knakahara
f38b032d02 Not pic->pic_addroute but pic->pic_hwunmask should enable interrupts for MSI-X.
pic->pic_addroute should not enable interrupt, because callers expect
interrupts have been disabled until they call pic->pic_hwunmask.

By the way, the old implement writes zero to Vector Control for MSI-X Table
Entries, howerver it must be read and updated.  Because, there are not only
Mask Bit but also ST lower and ST upper.
2020-12-11 07:49:39 +00:00
simonb
28c9f023c7 Add ${LIBUTIL} to DPADD. 2020-12-11 07:24:38 +00:00
martin
66e4afe8fc Fix editor mishap in r1.18 2020-12-11 07:01:27 +00:00
msaitoh
79570ba1ba Don't use EIMC_OTHER bit because it's read only other than 82598.
Documents say:

  82598:
     All of bit 31(OTHER bit) of EIxx are reserved. In reality, at least
    EIMS_OTHER and EIMC_OTHER exist and the OTHER interrupt doesn't work
    without EIMS_OTHER.

  Other than 82598:
     EIMS_OTHER is read only and EIMC_OTHER doesn't exist. If one of
    bit 29..16 is set, EIMS_OTHER is set to 1 (Note that bit 30(TCP timer
    isn't included)). Even if write bit 31 of EIMC to 1, it's ignored
    (EIMS_OTHER doesn't set).

 We introduced new spin mutex in ixgbe.c rev. 1.260, so it's OK to remove
EIMC_OTHER stuff. We already set EIMS_OTHER in if_init(), so keep it for
82598. No functional change other than 82598.

 Another solution is to control bit 30..16 directly to mask/unmask interrupt
instead of the mutex.

TODO:
  Some MSI-X interrupt(LSC, module insertion/removal etc.)'s mask/unmask
  code between ixgbe_msix_admin() and ixgbe_handle_admin() may be wrong.
  It'll be fixed later.
2020-12-11 05:01:19 +00:00
thorpej
2ef9bcafb7 Use sel{record,remove}_knote(). 2020-12-11 03:00:09 +00:00
thorpej
b56263bd4d Add sel{record,remove}_knote(), so hide some of the details surrounding
knote / kevent registration in the selinfo structure.
2020-12-11 01:25:29 +00:00
rillig
4ea80e710c make(1): document why runIgnImpl is used in jobs mode 2020-12-11 01:08:51 +00:00
rillig
428f1d7ff5 make(1): add tests for comments and non-comments in jobs mode 2020-12-11 01:06:10 +00:00
rillig
7700639ac4 make(1): rename shell flags in struct Shell
The previous name 'echo' was too unspecific, given that the other fields
in the same struct are called echoOff, echoOn, echoTmpl.
2020-12-11 00:29:01 +00:00
rillig
c3ac7df32f make(1): clean up comments for struct Shell 2020-12-11 00:22:23 +00:00
rillig
2ef0fcb76c make(1): name Shell fields consistently
They are all templates with a single %s placeholder, so embed this
unambiguously in the variable name.  The previous variable names didn't
provide any clue that echoCmd, execIgnore and errExit had a lot in
common.
2020-12-10 23:54:41 +00:00
rillig
5a661125e0 make(1): clean up JobPrintCommand
The local variable 'cmd' had been used for both the unexpanded and the
expanded command.  This in turn had required the parameter to be
non-const.
2020-12-10 23:36:20 +00:00
rillig
b49a832956 make(1): eliminate global variable numCommands
It had only been used in a very small scope.  The elimination of
Lst_ForEach made it easy to turn this global variable into a local
variable.
2020-12-10 23:12:59 +00:00
rillig
db56543590 make(1): extract JobOpenTmpFile from JobStart 2020-12-10 23:03:00 +00:00
rillig
59fc03e088 make(1): rename RunFlags to CommandFlags
Flags of similar names are also available in CmdOpts (global command
line options) and Job.  The new name CommandFlags emphasizes that these
flags apply to the smallest scope possible, which is a single command,
as opposed to the whole GNode/Job.
2020-12-10 22:45:30 +00:00
rillig
cdd16e62bf make(1): split Job.errOffOrExecIgnore into separate fields
Like errOnOrEcho, these two fields were completely unrelated.  One of
them expected a %s placeholder, the other didn't.
2020-12-10 22:34:39 +00:00
rillig
f4364e07ec make(1): split Job.errOnOrEcho into separate fields
They have never been related.  Furthermore, Job.errOn is really tricky
to reach at all.  To do that, one has to define a custom shell and set
hasErrCtl=true.  The manual page has an example for that, but it's
probably not use in practice, just like the possibility to use the C
shell for all commands.
2020-12-10 22:17:37 +00:00
rillig
ec213df12c make(1): negate Job.silent to echo
This gets rid of a few explicit negations and an implicit negation in
the variable name.
2020-12-10 21:41:35 +00:00