Commit Graph

278214 Commits

Author SHA1 Message Date
rin
8c4e0d2bbb Fix uvmexp.ncolors for some big.LITTLE configuration; it is uncertain
which CPU is used as primary, and as a result, secondary CPUs can
require larger number of colors.

In order to solve this problem, update uvmexp.ncolors via
uvm_page_recolor(9) when secondary CPUs are attached, as done for
other ports like x86.

Pointed out by jmcneill@, and discussed on port-arm@:
http://mail-index.netbsd.org/port-arm/2020/07/03/msg006837.html

Tested and OK'd by ryo@.
2020-07-04 04:39:20 +00:00
lukem
702ffa073c make: fix sign-compare warning
Fix -Wsign-compare warning on amd64, introduced in rev 1.239
2020-07-04 03:08:20 +00:00
lukem
95fccb75a2 NetBSD-ftpd 20200615
Update version to "NetBSD-ftpd 20200615" for changes:
- Increase some buffer sizes.
- Rename blacklist to blocklist.
2020-07-04 01:20:42 +00:00
uwe
71a0f0ceb5 wtouchln - verify/clip input parameters
From Naman Jain in PR lib/55454
2020-07-03 23:28:51 +00:00
rillig
f4f4a9077d make(1): reduce line length in var.c 2020-07-03 22:40:55 +00:00
rillig
c1dbee04ea make(1): refactor ApplyModifier_SysV to have less indentation 2020-07-03 22:34:22 +00:00
rillig
977d1d3077 make(1): clean up documentation, small refactorings for variables
- document the callback for VarModify
- clearly mark the callbacks
- shorten the documentation for some callback functions
- fix the documentation of VarSYSVMatch
- remove unnecessary null check from VarLoopExpand
- add test for applying modifiers to empty strings
2020-07-03 22:10:42 +00:00
jdolecek
8648f78621 add a cast to (struct statvfs *) for STATVFSBUF_GET() to make sure it's
never assigned to anything else
2020-07-03 19:37:27 +00:00
rillig
ec00d0b13b make(1): add another test for the SysV :%=% modifier 2020-07-03 19:29:25 +00:00
pgoyette
1aba634484 Consistent use of comma in lists. 2020-07-03 19:22:38 +00:00
rillig
9215194b8f make(1): add expected test result for modmisc 2020-07-03 19:21:11 +00:00
christos
5a80c6a868 sync with mount.h, always use the structure size. 2020-07-03 19:00:01 +00:00
jdolecek
6471d774f6 don't overallocate (follows similar change to compat/sys/statvfs.h) 2020-07-03 18:49:37 +00:00
rillig
839d614315 make(1): fix bug in :E modifier, introduced in r1.239 today
That case was not covered by the tests before.
2020-07-03 18:41:50 +00:00
rillig
abc8b07393 make(1): fix indentation in var.c
Fixing the indentation manually is a tedious task.  indent(1) was no help
since it has several bugs and is not flexible enough for the original
make code.
2020-07-03 17:48:47 +00:00
skrll
b1eeadb79c KNF (sort includes) 2020-07-03 17:22:14 +00:00
skrll
4a314e0b78 1 page is enough for memhook now since the merge of the rmind-uvmplock
branch and the removal of sys/arch/arm/arm32/mem.c

The last users of memhook don't care about number of CPUs or page colours.
2020-07-03 17:14:23 +00:00
rillig
dfddd9d1ba make(1): add Hash_ForEach to avoid duplicate code 2020-07-03 17:03:09 +00:00
rillig
aa9c7243ec make(1): fix indentation and alignment 2020-07-03 17:00:47 +00:00
maxv
ef06fc5cad hardclock_ticks -> getticks() 2020-07-03 16:23:02 +00:00
maxv
0da96df8e5 In cpu_uarea_{alloc,free}:
- My previous change in this file was not correct, kremove does not free
   the underlying PA, which caused a very slow leak under memory pressure.
   Rework to correctly free the PA.
 - Add a second redzone, this time after the stack, to catch several stack
   overflows. The main concern is read overflows which leak the heap that
   follows the stack.
 - UVM_KMF_WAITVA doesn't fail, so remove error check.
 - Add KASSERTs.
2020-07-03 16:17:24 +00:00
maxv
f235863a23 Enable trace-cmp. 2020-07-03 16:12:16 +00:00
maxv
0cdc224fdb Sync trace-pc and trace-cmp. 2020-07-03 16:11:11 +00:00
maxv
81c09e8431 Print the backend name when attaching. 2020-07-03 16:09:54 +00:00
maxv
66af4cddad more 2020-07-03 16:07:52 +00:00
rillig
51f9ee534b make(1): make code for the :E and :R modifiers simpler 2020-07-03 15:42:43 +00:00
rillig
6315badb6d make(1): add test for :R modifier 2020-07-03 15:41:37 +00:00
rillig
5686930b74 make(1): add more tests for :H, :T and :E modifiers 2020-07-03 15:33:01 +00:00
skrll
3b3140f5f6 KNF 2020-07-03 15:31:25 +00:00
rillig
2ea85ac206 make(1): clean up code for the :H and :T modifiers 2020-07-03 15:24:31 +00:00
rillig
ab6a4b146c make(1): add test for :H and :T modifiers with several words 2020-07-03 15:22:35 +00:00
rillig
ff424d034e make(1): add missing test for the :H and :T modifiers 2020-07-03 14:59:17 +00:00
rillig
1ea1146121 make(1): refactor ApplyModifiers
Previously, ApplyModifiers was 1200 lines long and pretty complicated.
Now each of the complicated modifiers has its own function, which reduces
the indentation and makes it possible to use early returns.
2020-07-03 14:14:04 +00:00
christos
d6527692c4 don't overallocate (requested by maxv@) 2020-07-03 14:08:53 +00:00
roy
f8262fcce8 unbreak build, put /var/db/dhcpcd into the set lists 2020-07-03 12:53:27 +00:00
isaki
bebda9f2a3 Fix an argument passes to auixp_intr().
This is rest of rev 1.39 (split device_t/softc) in 2012.
Problem reported and tested by Riccardo Mottola.
2020-07-03 12:39:54 +00:00
roy
1580d06b1a Add /var/db/dhcpcd back 2020-07-03 11:03:42 +00:00
roy
ec10befd40 Note import of dhcpcd-9.1.4 2020-07-03 10:47:29 +00:00
roy
61fe7a6beb Sync 2020-07-03 10:46:45 +00:00
roy
1d3a3c99fc Update to dhcpcd-9.1.4 with the following changes:
* Fix SMALL builds
 * Ensure DBDIR exists at startup
2020-07-03 10:45:43 +00:00
jmcneill
7c5cd4a6aa Move db_reset_cmd prototype to db_machdep.h (forgot to commit this file) 2020-07-03 10:19:18 +00:00
rillig
90a4c7d338 make(1): remove redundant parentheses around return value 2020-07-03 08:37:56 +00:00
skrll
b6d64ab7ab Make this compile/work on 32-bit archs. OK'ed my maxv
I thought about uintptr_t, but didn't change from Elf_Addr
2020-07-03 08:19:20 +00:00
rillig
820b5caede make(1): remove trailing whitespace 2020-07-03 08:13:23 +00:00
rillig
44d841d2c5 make(1): remove redundant parentheses around return values 2020-07-03 08:02:55 +00:00
rillig
12b3007c76 make(1): refactor Str_Match
- use shorter variable names to avoid line breaks
- eliminate c2 variable
- change return type to Boolean
2020-07-03 07:40:13 +00:00
jruoho
7b69662fe9 Skip these also for Qemu runs as they cause panics. Point to PR kern/55451. 2020-07-03 07:03:14 +00:00
skrll
1328297211 Consistency...#define<tab> 2020-07-03 06:49:26 +00:00
skrll
467df8a73e KNF (sort #includes) 2020-07-03 06:35:05 +00:00
skrll
d084c0fc75 Style and share a debug string 2020-07-03 06:33:39 +00:00