Commit Graph

283736 Commits

Author SHA1 Message Date
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
rin
073102d0ca Data written to bcmdmac(4) should be in little-endian. 2020-12-01 04:15:04 +00:00
rin
4a4535ad48 Data written to and read from bcmmbox(4) should be in little-endian. 2020-12-01 04:14:31 +00:00
rin
ce0e26aec6 Fix style of error message. 2020-12-01 03:28:08 +00:00
rin
28e8e716dd earmv6{,hf}eb has been switched to BE8.
Thanks for discussion in port-arm and tech-toolchain, especially
thorpej and mrg for useful comments.
2020-12-01 02:55:14 +00:00
rin
04c2531340 Fix confusions related to encoding of instructions.
For __ARMEB__ in BE8 mode, instructions are encoded in little-endian.
Therefore, we need to swap bytes against these in native byte order.

In other cases, i.e., __ARMEL__ and __ARMEB__ in BE32 mode, instructions
are in native byte order, and we don't need to swap them.
2020-12-01 02:48:28 +00:00
rin
5ff9767d5b Fix earmv6{,hf}eb start-up routines:
- Turn on U-bit in SCTLR before E-bit is turned on by ``setend be'',
  in order to avoid undefined condition. ARM1176JZF-S, at least, halts
  if only E-bit is turned on.

- Turn on EE-bit in SCTLR instead of B-bit as we've switched to BE8.
2020-12-01 02:46:19 +00:00
pgoyette
1761fcfd85 Be consistent with mark-up of vop_reclaim 2020-12-01 02:43:18 +00:00
rin
e092cf89bf Switch earmv6{,hf}eb to BE8 in kernel side.
My strategy here is to define _ARM_ARCH_BE8 macro in arm/cdefs.h, if
__ARMEB__ && _ARM_ARCH_6.

Use this macro to determine whether system is compiled for and running on
BE8 mode or not.

Note that, for __ARMEB__, some conditions become compile-time constants
determined by _ARM_ARCH_BE8 macro, e.g., whether BE8 or BE32 are accepted
as a userland binary, or unaligned memory access is possible or not.
2020-12-01 02:43:13 +00:00
rin
a3e196b030 gcc.old: Switch earmv6{,hf}eb to BE8, ported from gcc. 2020-12-01 02:39:48 +00:00
rin
8f72a86eed Switch earmv6{,hf}eb from BE32 (deprecated) to BE8 (new), which enables
- binary compatibility with earmv7{,hf}eb and later, as well as
  COMPAT_NETBSD32 on aarch64eb
- unaligned memory access

whereas compatibility with earmv5{,hf}eb and prior is lost.

As we have never released kernel and userland for earmv6{,hf}eb yet,
this does not causes any compatibility problems.

Discussed on port-arm and tech-toolchain.
2020-12-01 02:39:08 +00:00
jkoshy
d1342fa268 Unbreak the lint build (sync to elftoolchain [r3912]). 2020-11-30 22:26:30 +00:00
sjg
25f0e79eda Added meta-cmd-cmp 2020-11-30 21:36:52 +00:00
rillig
30d7ed040f make(1): fix tests for :gmtime and :localtime for 32-bit time_t
https://bugs.freebsd.org/251465
2020-11-30 21:10:15 +00:00
skrll
b63e3dbc20 Ensure stores are observed before the 'sev' instructions. 2020-11-30 21:06:56 +00:00
rillig
6e61cbbfc0 make(1): clean up variable names in Dir_FindFile
The special path entry is called .DOTLAST, therefore the local variable
should have the same name.

A variable named 'base' must not point to the slash of a pathname.  It
may only point to the character after the slash, everything else is
confusing, even if it's only for a brief moment.
2020-11-30 20:25:37 +00:00
rillig
74587d252a make(1): document difference between 'cur' and 'dot' 2020-11-30 20:17:00 +00:00