283497 Commits

Author SHA1 Message Date
rillig
153e6e1aab make(1): add multiple-inclusion guard for trace.h
Needed for all-in-one mode since this header is included 3 times.
2020-11-28 08:41:53 +00:00
rillig
8b03784eeb make(1): rename conflicting global variables called 'error'
When compiling make in all-in-one mode, these variable names conflict.
They could have been merged into a single variable, but that would have
required to make it a global variable for the other modules as well.
The parse module has a similar variable called 'fatals'.  All these can
possibly be merged into a single variable, but not now.
2020-11-28 08:40:05 +00:00
rillig
3330831119 make(1): rename global variables in job.c
When compiling make in all-in-one mode, the variable name nfds conflicts
with the local variable name nfds in meta_compat_parent.

The variable name jobfds was misleading.  It has nothing to do with file
descriptors, it's just an array of jobs.
2020-11-28 08:31:41 +00:00
tsutsui
6e1d247fb0 Try to shrink ramdiskbin binary.
-Os
-rwxr-xr-x  1 tsutsui  wheel  1371212 Nov 28 14:09 obj.dreamcast/ramdiskbin*

-Os -fno-unwind-tables
-rwxr-xr-x  1 tsutsui  wheel  1366000 Nov 28 14:10 obj.dreamcast/ramdiskbin*

-Os -fno-unwind-tables -DNDEBUG
-rwxr-xr-x  1 tsutsui  wheel  1359700 Nov 28 14:11 obj.dreamcast/ramdiskbin*
2020-11-28 05:16:06 +00:00
yhardy
e11fdcfcc6 uvm_mremap: reference the appropriate backing object.
The previous approach was appropriate for anonymous
memory and device objects, which continue to work in
the same way.

OK: chs@
Fixes: PR 55237
2020-11-27 22:32:43 +00:00
riastradh
69109c6c58 ipi: Membar audit. 2020-11-27 20:11:33 +00:00
riastradh
003f8943cc tprof: Use percpu rather than a MAXCPUS-element array. 2020-11-27 20:10:25 +00:00
christos
2d6504c293 new acpica 2020-11-27 17:01:18 +00:00
christos
b558e86002 merge conflicts 2020-11-27 16:58:32 +00:00
christos
360a9019c4 13 November 2020. Summary of changes for version 20201113:
This release is available at https://acpica.org/downloads

1) ACPICA kernel-resident subsystem:

Interpreter: fixed a memory leak by using use existing buffer in
_HID repair. There was a memory leak that occurred when a _CID
object is defined as a package containing string objects. When _CID
is checked for any possible repairs, it calls a helper function to
repair _HID (because _CID basically contains multiple _HID entries).
The _HID repair function assumes that string objects are standalone
objects that are not contained inside of any packages. The _HID
repair function replaced the string object with a brand new object
and attempted to delete the old object by decrementing the reference
count of the old object. Strings inside of packages have a reference
count of 2 so the _HID repair function leaves this object in a
dangling state and causes a memory leak. Instead of allocating a
brand new object and removing the old object, use the existing
object when repairing the _HID object.

Added function trace macros to improve namespace debugging. The
namespace repair mechanism does not have function tracing macros.
Add several trace macros to improve debuggability.

Handle "orphan" _REG methods for GPIO OpRegions. Before this change
AcpiEvExecuteRegMethods() had special handling to handle "orphan"
(no matching OpRegion declared) _REG methods for EC nodes. On Intel
Cherry Trail devices there are 2 possible ACPI OpRegions for
accessing GPIOs. The standard GeneralPurposeIo OpRegion and the
Cherry Trail - specific UserDefined 0x9X OpRegions. Having 2
different types of OpRegions leads to potential issues with checks
for OpRegion availability, or in other words checks if _REG has
been called for the OpRegion which the ACPI code wants to use.
Except for the "orphan" EC handling, ACPICA core does not call _REG
on an ACPI node which does not define an OpRegion matching the type
being registered; and the reference design DSDT, from which most
Cherry Trail DSDTs are derived, does not define GeneralPurposeIo,
nor UserDefined(0x93) OpRegions for the GPO2 (UID 3) device, because
no pins were assigned ACPI controlled functions in the reference
design. Together this leads to the perfect storm, at least on the
Cherry Trail based Medion Akayo E1239T. This design does use a GPO2
pin from its ACPI code and has added the Cherry Trail specific
UserDefined(0x93) opregion to its GPO2 ACPI node to access this
pin. But it uses a "has _REG been called" availability check for
the standard GeneralPurposeIo OpRegion. This clearly is a bug in
the DSDT, but this does work under Windows. This issue leads to
the intel vbtn driver reporting the device always being in tablet-mode
at boot, even if it is in laptop mode. Which in turn causes userspace
to ignore touchpad events. So in other words, this issue causes
the touchpad to not work at boot. This change fixes this by extending
the "orphan" _REG method handling to also apply to GPIO address-space
handlers.

2) iASL Compiler/Disassembler and ACPICA tools:

iASL: Added more info to namespace dump file (-ln option). In a
separate section of the dump file (after the main namespace dump),
emit the full pathname for each namespace node, its type, and the
ASL filename and line number where it is declared.

AcpiHelp: Added an option to display/decode iASL exceptions. Option
is: -x [Hex Value] where "Hex Value" is the iASL exception code.
If Hex Value is omitted, all iASL exceptions are displayed.

iASL: Use StringLiteral instead of StringData for some ASL macros.
The use of the stringData rule allows for some "string" oriented
opcodes (Such as ToString, ToHexString, etc.) None of which make
sense with the macros in question. This change modifies the StringData
part of the rule for these macros to a simple string literal - thus
disallowing the use of ToString, ToHexString, etc.  The following
ASL operators (macros) are affected:  EisaId Fprintf Printf ToUuid
Unicode Note: The MS compiler requires the use of string literals
for these operators also.

iASL: Added a remark for an unknown UUID: ASL_MSG_UUID_NOT_FOUND.
Search the list of "known" UUIDs for the input to the ToUUID macro.

Added 5 new UUIDs to the known UUID table. All related to NVDIMM
and the NFIT table.
2020-11-27 16:56:51 +00:00
christos
43d7e2f9be map enough space for both the page we write and the guard so that we make
sure we own the guard page before we set its protection to none. This fixes
random SEGVs where the page we set protection to none probably belonged to
the dynamic linker. Reported by gson@
2020-11-27 16:50:02 +00:00
kamil
e6959f1f85 Refine the documentation
Sort includes.
Correct the historical note, pipe first appeared in AT&T UNIX v3.
Document ENOMEM.
2020-11-27 16:42:00 +00:00
gson
10c9b659e2 delete trailing whitespace 2020-11-27 15:37:06 +00:00
christos
cce00501ee make the order of the arguments in the PTYFS_FILENO macro consistent with
the order in the function calls. One of them was incorrect. Noticed by martin@
2020-11-27 14:43:57 +00:00
rillig
a229cb70c4 make(1): clean up after a successful .META test 2020-11-27 08:39:07 +00:00
rillig
053b08eb2b make(1): add very basic test about meta mode
This test is just meant to cover the existing code, it still needs to be
cleaned up to serve as a tutorial and to highlight the really
interesting points.
2020-11-27 08:36:10 +00:00
rillig
357a62a61b make(1): inline meta_file_t for printCMD
This struct had only been necessary as long as printCMD was a callback
to Lst_ForEach or Lst_ForEachUntil.
2020-11-27 08:18:14 +00:00
rillig
a41e5257d9 make(1): inline Lst_ForEachUntil in meta mode
This means no more unnecessary void pointers in function signatures and
no more abstraction level at checking a single element of a list.  In
most cases it is more appropriate to define a function that operates on
the list as a whole, thereby hiding implementation details like the
ListNode from the caller.
2020-11-27 08:07:26 +00:00
skrll
6da5d62c3f cpu_hatched_p does necessary memory barrier so remove membar_consumer
calls from before cpu_hatched_p calls.
2020-11-27 07:11:49 +00:00
yamaguchi
4cd9defac1 Fix missing disable of kpreempt while getting interface address 2020-11-27 03:37:11 +00:00
rillig
8f547784a9 fix typo in manual page for strchrnul(3) 2020-11-26 23:13:55 +00:00
jkoshy
604b08429e Sync libdwarf's manual pages with upstream. 2020-11-26 22:51:35 +00:00
jkoshy
ef39d52e3c Sync with elftoolchain upstream. 2020-11-26 21:52:00 +00:00
jkoshy
fd073023b0 Restore an overlooked 'Id' line. 2020-11-26 21:01:47 +00:00
christos
2617b55ba5 make the max text size the same as the max data size 2020-11-26 20:50:45 +00:00
skrll
0e4135c6d4 Trailing whitespace 2020-11-26 12:56:34 +00:00
skrll
777fa6409b Fix build and improve error handling 2020-11-26 12:53:03 +00:00
skrll
fef687f737 Style around setting the physical memory limit. NFCI. 2020-11-26 08:37:54 +00:00
skrll
d3a09a9812 Tweak a comment 2020-11-26 08:29:17 +00:00
skrll
bbf99531b6 Mark KASAN shadow pages as LX_BLKPAG_ATTR_NORMAL_WB. NFC as this is zero,
but someone might change it one day.
2020-11-26 08:25:01 +00:00
dholland
83e8764286 Add missing newlines to ACL prints in tunefs; from Jan Schaumann in PR 55824. 2020-11-26 02:06:01 +00:00
riastradh
0be824883b Simplify default motd text and include donation link. 2020-11-25 21:40:22 +00:00
wiz
69ad8431d5 Define LMSG outside the MAXTSIZ check so it also exists in non-MAXTSIZ kernels. 2020-11-25 21:08:59 +00:00
jmcneill
47fa0c3be8 Add support for message-based interrupts. 2020-11-25 21:02:35 +00:00
jmcneill
2deab200b0 Fix off-by-one when printing the range of SPIs in a GICv2m frame 2020-11-25 20:59:20 +00:00
skrll
62f6b38b9d Fix comment. Spotted by jmcneill@ 2020-11-25 19:50:06 +00:00
bouyer
82797af728 Add ldap parameters debug and timeout.
Fix bug when using URI (use correct len for malloc)
document ldap parameters uri, debug and timeout.
2020-11-25 18:11:00 +00:00
bouyer
346b151099 Add an option to pass a ldap uri, instead of just server and port.
uri takes precedence.
2020-11-25 16:42:53 +00:00
bouyer
b611e603fe Fix ldap: ldap_sasl_bind_s() doens't like a NULL struct berval *, pass
a pointer to a zero'd struct instead.
While there use LDAP_SASL_SIMPLE instead of NULL for mechanism,
and check return of ldap_set_option().
2020-11-25 16:41:39 +00:00
tsutsui
a3c09112c6 Reserve device-major for ld(4) on possible sdmmc(4) at scimci.
https://mail-index.netbsd.org/port-dreamcast/2014/10/25/msg000263.html
 https://mail-index.netbsd.org/port-dreamcast/2014/10/30/msg000265.html
2020-11-25 15:31:15 +00:00
tsutsui
10596905a4 Create wd0 and wd1 device node for G1IDE kernel. 2020-11-25 15:14:03 +00:00
christos
1f569f5e9e Reduce previous 2020-11-25 14:15:41 +00:00
kardel
d2c7ed0706 Fix address advancing for i386 and other 32-bit platforms.
Makes racoon grok IPv6 addresses again on these platforms.
2020-11-25 10:57:11 +00:00
yamaguchi
9ce4bce850 add KASSERT(!cpu_softintr_p());
pointed out by knakahara@n.o., thanks.
2020-11-25 10:44:53 +00:00
yamaguchi
d6dd2b3582 Fix to reconnect after PADT received 2020-11-25 10:42:35 +00:00
yamaguchi
73f90acc3a add a logging function used at debugging pppoe(4) 2020-11-25 10:39:47 +00:00
yamaguchi
f1cad8460f fix to remove trailing garbage 2020-11-25 10:38:10 +00:00
yamaguchi
2ac76fa708 stop callout even when the state is in PPPOE_STATE_INITIAL 2020-11-25 10:37:04 +00:00
yamaguchi
37f4aefcd5 Use a state of IPCP and IPv6CP to wait for connection established 2020-11-25 10:35:07 +00:00
yamaguchi
d29dd4c534 add -dd option for reference of the parameter about control protocols
reviewed by knakahara@n.o.
2020-11-25 10:32:54 +00:00