Commit Graph

280010 Commits

Author SHA1 Message Date
gson
69570b99d6 Remove superfluous empty line 2020-08-26 13:32:56 +00:00
isaki
72719b1753 Fix misuse of device_private(). sc_dev is device_t. 2020-08-26 12:59:28 +00:00
simonb
f34bcfad7a Use the vm.uspace sysctl instead of using the USPACE kernel define. 2020-08-26 10:56:01 +00:00
simonb
e960fc946b Don't rely on the USPACE kernel define as a fallback if the vm.uspace
sysctl fails.  We've got bigger problems if the sysctl fail anyway.
2020-08-26 10:54:12 +00:00
simonb
bf2324f170 Define a UPAGES_MAX constant to size the a md_upte array in MIPS's
struct mdlwp.  This is exposed to userland, so we can't use something
based on PAGE_SIZE.
2020-08-26 10:51:45 +00:00
jdolecek
93a5ccc635 for jp keymap map also scan code 49 to right bracket to handle ARCHISS model
PR kern/55608 by Shinichi Doyashiki
2020-08-26 10:34:03 +00:00
rillig
64625d7ce0 make(1): add test for the .ALLTARGETS special variable 2020-08-25 22:51:54 +00:00
rillig
2aef26128e make(1): add test for the :L modifier 2020-08-25 22:25:05 +00:00
rillig
e13e7bd34f make(1): add test for the :D modifier 2020-08-25 21:58:08 +00:00
rillig
f42bee7f88 make(1): fix error message for ::!= modifier with shell error
It's just too easy to confuse st->val and val.
2020-08-25 21:16:53 +00:00
rillig
e5ea4e5f8d make(1): add test for ::!= modifier with shell error 2020-08-25 21:07:39 +00:00
rillig
b8d9af4f48 make(1): move test for the ::= modifier to varmod-assign 2020-08-25 20:49:40 +00:00
leot
056172a33c Fix a typo in a comment 2020-08-25 20:02:33 +00:00
kre
6a95badd88 Idiot typo, generated by an idiot, fixed by the same one. 2020-08-25 19:42:02 +00:00
rillig
e94ae9b561 make(1): explain the varmod-assign test
I have no idea why I added the mod-assign-nested test.  It is completely
boring and doesn't provide any insight.
2020-08-25 18:59:30 +00:00
rillig
a3c983f271 make(1): allow make to be compiled in C90 mode
Since the inline functions are the only C99 feature used by now, setting
USER_CFLAGS='-std=c90 -ansi -Dinline=' is enough for compiling make with
a C90 compiler.
2020-08-25 17:37:09 +00:00
rillig
1c84dcceb3 make(1): fix obvious bugs in -DCLEANUP mode
The outdated type name FreeProc had been renamed to LstFreeProc.
Casting the function free to it is not necessary since the type of this
function is already exactly the correct type.  Anything else would be
undefined behavior anyway.

The uninitialized sufflist in Suff_ClearSuffixes was ok until now
because the Lst functions had silently skipped any calls with invalid
arguments.  This silent skipping is a good argument to have strict
argument validation since it detects these unintended control flows.
2020-08-25 16:50:02 +00:00
rillig
1366bfb67d make(1): allow custom build options 2020-08-25 16:39:19 +00:00
christos
63457cef70 turn on fortify since it is setgid (from scole_mail) 2020-08-25 16:39:16 +00:00
rillig
be84e647d6 make(1): distinguish enum flags and values in debugging mode
When printing an enum value in debugging mode, distinguish between
bitsets containing flags and ordinary enums that just contain different
values.

Make the macros in enum.h more uniform.  Provide a simple scheme for
defining the run-time type information of enums whose number of values
is a number with more than 2 bits set in the binary representation.
This case was not obvious before, and it was pure luck that the current
interesting enum types only had 3, 10 or 32 different values.

The type with the 32 different values actually only has 31 significant
bits since the enum constant OP_OPMASK is only used when querying the
enum, not for defining or describing the possible values.  For this
reason, it was unavoidable to refactor the rtti macros, to support even
this case.
2020-08-25 16:27:24 +00:00
rillig
f0060e78de make(1): demonstrate how the parser handles spaces in variable names
Not that anyone would need this feature, or that it was ever intended to
be used at all.  But it is there, and if someone ever wants to fix this
part of the parser, they should at least know about this behavior.
2020-08-25 16:20:32 +00:00
rillig
477445d9e7 make(1): add test for variable assignment using the '=' operator 2020-08-25 16:07:39 +00:00
ryoon
3ea17bd477 Sort correctly, pointed by wiz@. Thank you 2020-08-25 15:31:24 +00:00
skrll
dfbf68d1af More debug 2020-08-25 15:03:48 +00:00
christos
0f41c159c4 RR/54971: scole_mail: sockstat command output incorrect for normal
user As the PR hints, it is not enough to have kern.expose_address=1
to see kernel addresses, we also need to have the PK_KMEM bit set
which we achieve by installing sockstat setgid kmem and opening
and closing /dev/mem. (/usr/src/sys/kern/kern_proc.c:311). It is
unfortunate that we need to give the program more privilege, to
prove to the kernel that we have the privilege to see the data.
2020-08-25 14:05:17 +00:00
skrll
f6e3e63266 KNF 2020-08-25 13:42:09 +00:00
gson
9d42296eb9 Only expect the fmod test case to fail when using qemu's TCG CPU emulation,
and not under hardware virtualization such as qemu -accel nvmm.
2020-08-25 13:39:16 +00:00
skrll
deb70e3954 Style on config_finalize_register arguments - make consistent will all
other callers of config_finalize_register
2020-08-25 13:36:41 +00:00
skrll
8efa41a803 Protect tegra124_cpu_init_cpufreq against being run more than once.
config_finalize will call all config_finalize_register functions until
all registered functions return 0.  rf_autoconfig currently returns 1
which means tegra124_cpu_init_cpufreq would get called multiple times.
2020-08-25 13:33:43 +00:00
riastradh
c9aa4f445f Fix getrandom() tests.
Use sigaction() without SA_RESTART -- signal() implies SA_RESTART so
we never got the EINTR.

While here, reduce the timeout to something more reasonable so we
don't waste 20min of testbed time if anything goes wrong and the
one-second alarm doesn't fire.
2020-08-25 01:37:38 +00:00
rillig
fa70c4fdc5 make(1): in debug mode, print GNode details in symbols
A string like OP_DEPENDS|OP_OPTIONAL|OP_PRECIOUS is much easier to read
and understand than the bit pattern 00000089.

The implementation in enum.h looks really bloated and ugly, but using
this API is as simple and natural as possible.  That's the trade-off.

In enum.h, I thought about choosing the numbers in the macros such that
it is always possible to combine two of them in order to reach an
arbitrary number, because of the "part1, part2" in the ENUM__SPEC macro.
The powers of 2 are not these numbers, as 7 cannot be expressed as the
sum of two of them.  Neither are the fibonacci numbers since 12 cannot
be expressed as the sum of 2 fibonacci numbers.  I tried to find a
general pattern to generate these minimal 2-sum numbers, but failed.
2020-08-24 20:15:51 +00:00
ryoon
c0e80e46cf Do not split for AUTHORS
And bump date.
2020-08-24 19:36:32 +00:00
ryoon
2906f3a5f1 Add a missing comma
And bump date
2020-08-24 19:32:33 +00:00
ryoon
2f676885a3 Add COMPAT_90
And bump date.
2020-08-24 19:30:00 +00:00
ryoon
1a756d3f9b Add a missing comma
And bump date.
2020-08-24 19:27:36 +00:00
ryoon
ffc2b60eb2 Markup authors
And bump date.
2020-08-24 19:25:57 +00:00
ryoon
061048509a Link to i386/spic(4) instead of spic(4)
And bump date.
2020-08-24 19:22:06 +00:00
ryoon
c48880b9cf Link to i386/pnpbios(4) instead of pnpbios(4)
And bump date.
2020-08-24 19:16:42 +00:00
msaitoh
d2f3f61773 Fix handling of IXGBE_REQUEST_TASK_NEED_ACKINTR again... 2020-08-24 19:03:27 +00:00
msaitoh
d39d2fa1df The admin workqueue can be used even if the interface is not up.
OK'd by thorpej@. Will fixes PR#55534 reported by Shinichi Doyashiki
2020-08-24 18:42:17 +00:00
riastradh
e96b516f47 Restore obsolete entries for make's modorder tests.
These tests were removed a week ago, but their set list entries were
removed rather than marked obsolete.
2020-08-24 18:41:22 +00:00
msaitoh
5dc3df36d2 Fix ixgbe_sfp_cage_full() on X550EM_A.
In ixgbe_handle_mod():

		switch (hw->mac.type) {
		case ixgbe_mac_82599EB:
			cage_full = IXGBE_READ_REG(hw, IXGBE_ESDP) &
			    IXGBE_ESDP_SDP2;
			break;
		case ixgbe_mac_X550EM_x:
		case ixgbe_mac_X550EM_a:
			cage_full = IXGBE_READ_REG(hw, IXGBE_ESDP) &
			    IXGBE_ESDP_SDP0;
			break;
		default:
			break;
		}

so I had thought that IXGBE_ESDP_SDP0 bit is 1 on cage is full.
In reality, at least, X550EM_A's SFP+ cage is 0 on cage is full.
So invert the logic of ixgbe_sfp_cage_full() on X550EM_A
2020-08-24 18:31:14 +00:00
martin
dec88ece21 Backout previous, commiter was dazed and confused 2020-08-24 18:22:30 +00:00
msaitoh
97adabe45f Fix race in ixgbe_detach() to prevent panic on shutdown. 2020-08-24 18:21:59 +00:00
martin
1247dfe5c0 Add modorder* make unit test files 2020-08-24 18:18:51 +00:00
msaitoh
09ff13da8d Fix handling of IXGBE_REQUEST_TASK_NEED_ACKINTR in ixgbe_handle_admin(). 2020-08-24 18:16:04 +00:00
nia
e0214d24d5 afterboot.8: If it needs a disclaimer that most people shouldn't do it... 2020-08-24 12:58:16 +00:00
nia
452f8ae6e8 uname -p, pointed out by various 2020-08-24 12:46:57 +00:00
kardel
634cbaafea Keep the change check invariant intact. The previous code could miss
status updates by picking up a new status different from the tested
status. This left addresses in the DETACHED state although the
link status is already UP again.

addresses PR/kern 55538
2020-08-24 12:46:04 +00:00
nia
cc5aa5b8ac afterboot.8: uname -p, pointed out by various people 2020-08-24 12:45:48 +00:00