Commit Graph

283502 Commits

Author SHA1 Message Date
christos f3f0e8207f __sentinel__ = __sentinel__(0) 2020-12-04 17:56:04 +00:00
rillig 2cf4367e86 make(1): improve variable names in Arch_ParseArchive
The variable buf used to be a Buffer, now it is a simple string pointer.
2020-12-04 14:51:46 +00:00
rillig 65a2faf0b6 make(1): use consistent variable names for list nodes 2020-12-04 14:39:56 +00:00
rillig cb63c1e6d4 make(1): use fixed format for debug output of the directory cache
The previous output format had a %-20s conversion specifier.  This
produced different output depending on the length of the pathname, which
was too difficult to normalize.  By moving the directory name to the
end, it is no longer necessary to fill up any space, and the numbers are
always aligned properly.

As a result, 3 of the unit tests no longer need any special
postprocessing of their output.
2020-12-04 14:28:50 +00:00
skrll 3672aff462 Remove unnecessary casts 2020-12-04 08:29:11 +00:00
skrll 5366c4d023 Ensure translation table updates are visible to the hardware walker(s)
in pmapboot_enter.
2020-12-04 08:24:41 +00:00
skrll 62168433fc Trailing whitespace 2020-12-04 08:00:53 +00:00
skrll 6783f58cb0 Use __func__ in panic calls (and misc style changes) 2020-12-04 07:12:57 +00:00
skrll b74a1d3d8a Update stats in the coherent case. Reported by jmcneill. 2020-12-04 07:11:35 +00:00
thorpej ad62715351 Build ip_sync.c with -Wno-error to avoid failing due to excessive stack
usage.
2020-12-04 00:44:39 +00:00
thorpej 2c5ba6c2be Build x86emu.c with -fno-inline, otherwise all of the auto-inlining
the compiler does causes stack usage to exceed the limits we've set.
2020-12-04 00:43:00 +00:00
thorpej 4a8de7c848 In pfr_fix_anchor(), change an overlapping bcopy() call to a memmove()
call.
2020-12-04 00:41:10 +00:00
thorpej ca36980932 - malloc(9) -> kmem(9)
- In ibm561_set_cmap(), allocating 3K on the stack is not polite; allocate
  a temporary buffer for the cmap data using kmem_alloc().
2020-12-04 00:38:08 +00:00
thorpej 30e584e46a Rewrite linux_sys_alarm() to use dogetitimer() / dosetitimer(), rather
than fiddling with process timers directly.
2020-12-04 00:26:16 +00:00
nia aab2f38b54 Add some missing channel order related ioctl defines.
These are no-ops (unimplemented) on both FreeBSD and Solaris
and the one piece of code I've found that uses it seems to assume the
call will fail so it should be safe to leave this returning EINVAL.

However, it does need the definitions to compile...
2020-12-03 22:10:21 +00:00
rillig 1c121ce6e2 make(1): format coverage summary as a table
This is only used interactively, not in the official builds, therefore
the additional dependency on Perl doesn't matter.  The same result could
have been achieved in any other programming language, but probably not
as concisely.
2020-12-03 18:43:02 +00:00
rin 70e5b5b4b7 tlb_print_*() are used only if _ARM_ARCH_7; caught by clang -Wunused-function. 2020-12-03 10:23:45 +00:00
skrll eb1cc5eabf Fix build 2020-12-03 08:48:06 +00:00
kre b2fc8900ac PR bin/55834
count blocks written in unsigned 64 bit counter
rather than signed int which overflows after 2^31-1
blocks (2TiB) after which neither the 5 minute
status updates or SIGINFO (^T) reports are issued
until the negative numbers increase past 0 and
wildly inaccurate reports would be written.
2020-12-03 08:25:57 +00:00
skrll 69120ac14e Provide and use a sev() macro for the sev instruction.
While here use the correct barrier to ensure completion of memory accesses
before a couple of the sev() calls.
2020-12-03 07:45:51 +00:00
wiz 0fff63c9f6 comparision -> comparison 2020-12-02 14:20:19 +00:00
wiz d5fdd803ef Update default pkgsrc database location from /var/db/pkg to /usr/pkg/pkgdb. 2020-12-02 14:18:13 +00:00
wiz c245ef2708 Mention pkg_install update. 2020-12-02 14:09:18 +00:00
wiz 0a3564ede9 Define PREFIX for pkg_install build. 2020-12-02 13:54:25 +00:00
wiz c42605055f merge pkg_install after import of 20201202 version 2020-12-02 13:53:50 +00:00
rin 530d774931 Explicitly link liblber and libssl when ldap support is enabled.
Fix sun2, i.e., MKPIC=no build.
2020-12-02 02:21:43 +00:00
rillig 583d8bd566 make(1): add test and tutorial for indirect modifiers 2020-12-01 22:16:36 +00:00
rin 7ef80779bc Add missig date for previous. 2020-12-01 22:09:43 +00:00
rillig 5514a0f21b make(1): rename local variable in Dir_SetPATH
The variable name should reflect the close relationship to the .DOTLAST
keyword that can be used in search paths.
2020-12-01 20:47:52 +00:00
rillig 71bfc5d9d5 make(1): add test for the special .MAKEFLAGS variable 2020-12-01 20:37:30 +00:00
rillig 0ab8d018af make(1): add test for parse errors in variable name in Var_SetWithFlags 2020-12-01 20:15:23 +00:00
rillig 44b654a638 make(1): document handling of irrelevant conditions before 2020-07-09 2020-12-01 19:37:23 +00:00
rillig c81fc28b06 make(1): adjust condition descriptions in test cond-short
Before, the conditions in the output had been expanded, which made them
illegible.  The expanded conditions were unrealistic as well since the
evaluation flags differ between a condition and normal evaluation
(VARE_WANTRES, VARE_UNDEFERR).
2020-12-01 19:33:50 +00:00
rillig 28c9f54dfc make(1): remove Dir_InitDir
The function name had been too ambiguous since it didn't mention the
particular directory that was initialized.  Instead of that function,
Dir_InitCur is called directly from main_Init.

The pseudo CachedDir entry ".DOTLAST" is initialized at the very
beginning.  The observable behavior is unchanged since this a
memory-only object with no connection to the file system.
2020-12-01 19:28:32 +00:00
rillig c6ea76207f make(1): add tests for suppressing "stopped in"
These tests demonstrate the unwanted behavior described in PR bin/55578
and PR bin/55832.
2020-12-01 17:50:04 +00:00
skrll dbbf4b86eb G/C MUTEX_PAUSE_{PAUSE,WAKE} 2020-12-01 14:53:47 +00:00
skrll 10f330c25e Trailing whitespace 2020-12-01 14:52:36 +00:00
skrll 951bfa96cb Simplify the simplification... basically always set sctlr.u before setting
cpsr.e
2020-12-01 13:11:55 +00:00
bouyer cfd5acca1c Enable ldap support in racoon(8). Proposed on tech-userlevel,
"Go for it" from christos@
2020-12-01 10:10:57 +00:00
skrll 4c3da175a7 Trailing whitespace 2020-12-01 08:39:39 +00:00
skrll 1fed23d42b Simplify previous 2020-12-01 08:35:31 +00:00
yamaguchi 950111cadd Dequeue aqb from sc_atq_live even when the last command is failed
iavf(4) didn't dequeue aqb from sc_atq_live that is a list for
buffer in use when a command is failed by ETIMEDOUT.

This causes a panic in the following sequence:

 1. enqueue an aqb to sc_atq_live at iavf_aqb_post()
 2. the last command is failed by ETIMEDOUT
 3. enqueue the aqb used in the failed command to sc_atq_idle
    at an error handling in iavf_attach()
 4. dequeue the same aqb from sc_atq_live and enqueue sc_atq_idle
    again at iavf_cleanup_admin_queue()
   - sc_atq_idle is broken at that time
 5. free the aqb in sc_atq_idle more than once

Fix PR/55822

reviewed by knakahara@n.o.
2020-12-01 04:39:03 +00:00
rin f720a7330d Raspberry Pi [0-3] have been supported in big-endian mode.
Thanks ryo and skrll for their kind review!
2020-12-01 04:36:05 +00:00
rin 7ef73ded12 G/C unused. 2020-12-01 04:21:26 +00:00
rin 938ac472bd rpi.img: Bump boot partition in a similar manner to other images. 2020-12-01 04:21:10 +00:00
rin 7f6948285e Build RPI and RPI2 kernels also for earmv6{,hf}eb. 2020-12-01 04:20:21 +00:00
rin 0c34370d4a Do not attach vchiq(4) in big-endian mode.
For big-endian mode, all data written to and read from DMA buffer must be
byte-swapped. This requires heavy modifications to third party codes.

Also, we will switch to vc4 drm driver, hopefully soon.
2020-12-01 04:19:04 +00:00
rin 7a22b097eb Link RPI and RPI2 kernels in BE8 format for big-endian variants. 2020-12-01 04:18:26 +00:00
rin d5c140a33a bcm2835-fb seems byte-swapped to CPU when running in big-endian mode. 2020-12-01 04:17:10 +00:00
rin 3ee282f2bb Data written to and read from bcm283x UART registers should be in little-endian. 2020-12-01 04:16:18 +00:00