Commit Graph

280371 Commits

Author SHA1 Message Date
rillig
2d4a05ee59 make(1): rename Lst_Memeber to Lst_FindDatum
The new name nicely aligns with Lst_Find and Lst_FindFrom.
2020-08-30 11:12:05 +00:00
skrll
c0fe0ae21d Add some debug options to help find why the automated tests are failing.
XXX turn off on release branch
2020-08-30 07:09:02 +00:00
skrll
41655ae023 Trailing whitespace 2020-08-30 07:08:13 +00:00
mrg
48bad64f01 install dmxproto.pc and dpmsproto.pc 2020-08-30 04:51:03 +00:00
macallan
63d26f4e1f make us.apple the default USB keyboard layout 2020-08-29 23:00:10 +00:00
thorpej
a63d213ab6 G/C GET_IDLE_PCB -- it hasn't been used for some time. 2020-08-29 22:50:27 +00:00
macallan
1035fefe6e provide KB_APPLE layout variant which uses Command-F* to switch console screens
mostly for consistent behaviour across *Books which may have ADB or USB
keyboards
2020-08-29 22:42:53 +00:00
macallan
f905729269 properly map left Command to Meta_L and left Option to Alt_L
Mostly for correctness, should help non-US layouts
2020-08-29 22:33:53 +00:00
uwe
9158e53999 Minor wording tweaks from Dan Plassche. 2020-08-29 21:42:25 +00:00
rillig
31e761ac2c make(1): use loops instead of Lst_ForEach for propagating to cohorts
For one-liners, Lst_ForEach creates a lot of overhead, both at runtime
and for reading and understanding the code.

In this simple case where the structure of the traversed nodes is not
modified, a simple loop is enough.  This avoids a lot of conversions to
void * and thus prevents type mistakes.
2020-08-29 20:20:44 +00:00
thorpej
b0669daa38 Bump UBC_WINSHIFT to 16 (64KB), and UBC_NWINS to 4096 (256MB total).
Alpha has plenty of KVA to use for this.
2020-08-29 20:08:08 +00:00
thorpej
13c5b655f2 - Centralize per-CPU pmap initialization into a new pmap_init_cpu()
function.  Call in from pmap_bootstrap() for the boot CPU, and
  from cpu_hatch() for secondaary CPUs.
- Eliminiate the dedicated I-stream memory barrier IPI; handle it all from
  the TLB shootdown IPI.  Const poison, and add some additional memory
  barriers and a TBIA to the PAUSE IPI.
- Completly rewrite TLB management in the alpha pmap module, borrowing
  somoe ideas from the x86 pmap and adapting them to the alpha environment.
  See the comments for theory of operation.  Add a bunch of stats that
  can be reported (disabled by default).
- Add some additional symbol decorations to improve cache behavior on
  MP systems.  Ensure coherency unit alignment for several structures
  in the pmap module.  Use hashed locks for pmap structures.
- Start out all new processes on the kernel page tables until their
  first trip though pmap_activate() to avoid the potential of polluting
  the current ASN in TLB with cross-process mappings.
2020-08-29 20:06:59 +00:00
rillig
f52782ac02 make(1): fix sh-dots test
The exact output depends on the shell.  Some shells prefix the error
message with their name, some don't.
2020-08-29 19:35:38 +00:00
christos
0a22125dca Make the "interesting" flags match the netstat ones, so:
route show -inet
    netstat -r -f inet

outputs match.
2020-08-29 19:28:32 +00:00
christos
ce43f29fa9 Instead of defining RTF_LLINFO, use RTF_LLDATA 2020-08-29 19:27:40 +00:00
christos
ad93f4b708 Document 'L' 2020-08-29 19:27:08 +00:00
rillig
fc496dc802 make(1): add test for the .ifmake directive 2020-08-29 19:07:32 +00:00
thorpej
7e4c09e726 - cpu_need_resched(): Explicitly cover each RESCHED_* case, and add a
comment explaining why we don't need to act on IDLE+REMOTE.
- cpu_signotify(): Move to machdep.c, and if we're asked to notify
  an LWP running on another CPU, send an AST IPI to that CPU.  Add some
  assertions.
- cpu_need_proftick(): Move to machdep.c, add some assertions.
2020-08-29 19:06:32 +00:00
jakllsch
5ea5576a98 tegra_xusb: fix xusb static firmware build
To work around objcopy and ld now being unable to create a EABI5 object
from a binary, use the assembler directive .incbin in inline assembly
to pull in the firmware blob.

This also probably makes TEGRA210_XUSB_BIN_STATIC actually work.
2020-08-29 19:06:17 +00:00
christos
53f0e087ea add WGACA 2020-08-29 18:54:33 +00:00
rillig
a02fdff94e make(1): add tests for .else and .for + .endif 2020-08-29 18:50:25 +00:00
christos
41a44ad8ce Partially revert previous: set RTF_HOST regardless of mask for point-to-point
links. Unbreaks IPSEC/L2TP configurations.
2020-08-29 17:41:14 +00:00
rillig
d28d390c4c make(1): add tests for .SILENT, .BEGIN and .END 2020-08-29 17:34:21 +00:00
rillig
64e0a331dc make(1): fix build with -DUSE_EMALLOC 2020-08-29 16:47:45 +00:00
rillig
cad1a8f59c make(1): explain the shuffled messages in the test output 2020-08-29 16:13:27 +00:00
christos
812f89458a Locking protocol changed again, unlock after send/recv 2020-08-29 16:07:11 +00:00
thorpej
78fcb07de0 Enable DIAGNOSTIC by default in -current. Should be commented out
in release branches.  Add commented-out LOCKDEBUG option.
2020-08-29 16:00:36 +00:00
thorpej
4ddf659796 In ipl2psl_table[], use IPL_SCHED instead of IPL_CLOCK (the legacy name),
and add a comment noting that this is the level IPIs come in with on
alpha.
2020-08-29 15:29:30 +00:00
rillig
f76631bc42 stdio(3): fix typos in the manual page
fputc cannot read characters, it can only write them.
2020-08-29 15:25:57 +00:00
thorpej
b8e5e342e7 Make sure init_prom_interface() only runs once, otherwise we initialize
a mutex twice, and that upsets LOCKDEBUG.  But instead of seeing a
proper message about it, the output happens before the PROM console
interfcace is initialized, we would end up with a translation fault
back into SRM.
2020-08-29 15:16:12 +00:00
rillig
157f198ab9 make(1): add test for the special .IGNORE dependency source 2020-08-29 15:06:33 +00:00
christos
4802d37db0 PR/55599: Valery Ushakov: libpcap gets SIGBUS on strictly aligned CPUs
Define LBL_ALIGN as suggested
2020-08-29 15:05:33 +00:00
rillig
6c6514f5e6 make(1): fix assertion failure for .SUFFIXES in archives
This occurred in the posix1.mk test, even though it is disabled in
unit-tests.  But in tests/usr.bin/make it still runs.  There, it should
have produced an "expected failure" but crashed instead.

The archive-suffix test is the stripped-down version of the posix1 test.
2020-08-29 14:47:26 +00:00
rillig
3c38adc32d make(1): trust that Var_Parse never returns NULL
That function is quite long, but all its return paths lead either to the
expanded variable expression, or to var_Error or varNoError.
2020-08-29 13:38:48 +00:00
fcambus
527132cc8c Fix a bunch of typos in various man pages. 2020-08-29 13:32:27 +00:00
rillig
82fdd8ef8a make(1): trust that Var_Subst never returns NULL
It really never does, and it doesn't even report errors.  It just
returns the content of the buffer, up to the first parse error.
2020-08-29 13:16:54 +00:00
rillig
5701760711 make(1): make getBoolean simpler
This function is so seldom used that there is no point having
complicated code for it.
2020-08-29 13:04:30 +00:00
rillig
123d5708b5 make(1): add comments for ModifyWord_Subst
Without any comments, the code is unnecessarily hard to follow.
2020-08-29 12:48:17 +00:00
rillig
0f5754839c make(1): clean up comments in dir.c 2020-08-29 12:39:32 +00:00
rillig
7571daa697 make(1): clean up documentation for CompatInterrupt and Compat_Run 2020-08-29 12:36:20 +00:00
rillig
b2375adf62 make(1): split ApplyModifier_To into paragraphs 2020-08-29 12:27:10 +00:00
rillig
1c4ffcb2c3 make(1): remove ReturnStatus, SUCCESS and FAILURE
These are used in so few places now that it is easier to use a simple
Boolean for them.
2020-08-29 12:20:17 +00:00
rillig
b48f40fbd4 make(1): clean up comments in suff.c, small refactorings
In SuffParseTransform, the parameter names have been renamed to make the
"side effects" comment redundant.

In Suff_AddSuffix and Suff_AddLib, the parameter has been made const.

In SuffRemoveSrc, the unused variable has been removed, and the return
type has been fixed.
2020-08-29 12:01:46 +00:00
rillig
23181bcce8 make(1): add bmake_strsedup for duplicating a substring 2020-08-29 11:24:54 +00:00
rillig
a030b41f9a make(1): merge duplicate code for bmake_strldup 2020-08-29 11:13:43 +00:00
rillig
1421342aa6 make(1): fix test opt-debug-g1
Including the directory cache made the test output fragile.
2020-08-29 10:52:47 +00:00
rillig
bb2ba6a0e5 make(1): rename LstNode functions to match their type 2020-08-29 10:41:12 +00:00
rillig
938bc75c66 make(1): clean up indentation, comments and variable scope in job.c 2020-08-29 10:35:03 +00:00
rillig
4ec235756f make(1): remove duplicate code for allocation a substring 2020-08-29 10:32:00 +00:00
rillig
f6a7d0bc31 make(1): rename Lst_FindB back to Lst_Find
The migration from "comparison function" to "match function" is done,
the "B" in the names is no longer needed.
2020-08-29 10:12:06 +00:00