Commit Graph

287269 Commits

Author SHA1 Message Date
rin
f843c9618d Add lto-dump.debug. 2021-04-23 15:21:49 +00:00
simonb
0144255326 Merge the .text.* sections into the .text section on MIPS, SPARC and
SPARC64 as is done on all other ports.  Mostly costmetic, but does mean
that main() now appears before the _etext symbol instead of after it.
2021-04-23 08:42:25 +00:00
skrll
4ebe5623b4 Use sys/cdefs.h __CONCAT3 2021-04-23 06:13:05 +00:00
skrll
3111edd8a6 Trialing whitespace 2021-04-23 06:02:48 +00:00
skrll
1c68c1dcfe Provide __CONCATn macros that take from 3 to 8 arguments and concatenate
them.

I didn't provide the non-STDC versions
2021-04-23 05:56:43 +00:00
yamaguchi
34534503ff enabled PPPOE_DEBUG for librumpnet_pppoe* when RUMP_DEBUG is defined 2021-04-23 03:44:05 +00:00
yamaguchi
7c3ad1a224 Added a test case for MTU of pppoe(4) 2021-04-23 03:41:55 +00:00
yamaguchi
8fd0ecaa70 Make IFF_DEBUG enabled if $DEBUG is true 2021-04-23 03:40:05 +00:00
yamaguchi
4bb5023316 functionalize rump.ifconfig and pppoectl for clearer test code 2021-04-23 03:38:19 +00:00
yamaguchi
f0773bb1c5 Adjust mtu at LCP instead at IPCP
The adjustment must be done at LCP when a PPPoE connection
does not use IPCP.
2021-04-23 03:36:13 +00:00
yamaguchi
e9679de3fb Fix to set mtu even if it is bigger than mru notified at LCP 2021-04-23 03:31:33 +00:00
yamaguchi
2d87bd9bd5 Added test cases for "pppoectl passiveauthproto" 2021-04-23 03:07:19 +00:00
yamaguchi
861187a72c Add a new option to enable SPPP_AUTHFLAG_PASSIVEAUTHPROTO flag 2021-04-23 02:28:40 +00:00
mrg
8147e6c899 build new GCC 10 lto-dump(1) tool. 2021-04-23 01:56:14 +00:00
mrg
571b8d3cee sort. 2021-04-23 01:53:55 +00:00
yamaguchi
ba783f9d03 Introduct a new flag to accept different authentication protocol
in myauthproto and hisauthproto

When the flag is enabled, a authentication protocol notified
at LCP negotiation is used as my authentication protocol.
When the flags is NOT enabled, my authentication protoco is
not changed at LCP negotiation.
2021-04-23 01:13:25 +00:00
rillig
66445508cf tests/lint: add test for typeof after statement
Found by christos@.
2021-04-22 22:43:26 +00:00
mrg
7e0fcb8493 arm64eb works. 2021-04-22 20:45:00 +00:00
christos
185787c65b PR/56120: Chris Pinnock: build.sh (-m alpha) release fails on current on
Darwin in libc compilation
We build the regex code in tools without nls. We don't include any nls headers
for that, but on Darwin wint_t gets defined, so we end up with a compilation
error. The cleaner fix would have been to always use regex_foo_t types, but
the minimal fix is to only do this for the tools build, using cpp.
2021-04-22 19:20:24 +00:00
wiz
69305a0d1c cgram: allow providing an input file instead of the random fortune 2021-04-22 14:57:36 +00:00
yamaguchi
a9a3fd4504 Added missing free of sc_hunique to prevent memory leak
when using PPPoE server
2021-04-22 10:26:24 +00:00
mrg
716f126bf9 arm64* now works. (thanks skrll.)
evbarmv5 and evbarmv7hfeb works.  (thanks martin.)
2021-04-22 05:00:35 +00:00
rin
1062ebcd31 Capitalize /EFI and /EFI/NetBSD as usual. Both are case-insensitive although.
Maybe not worth bumping dates...
2021-04-22 01:36:25 +00:00
rin
84148c19da Fix rnd(9) support; events were not sampled actually in the previous.
Remove #if-0'ed and wrap long line for clarity.
2021-04-22 01:33:18 +00:00
rin
7da850018c Apply this fix also for binutils.old.
http://www.nerv.org/netbsd/?q=id:20210422T010948Z.f87d2246188cfedb66a0d5a012c107b6a2b9f395

> Fix regression where ld(1) is trapped into infinite loop when
> linking binary whose text does not fit within R_PPC_REL24.
>
> Reported upstream as Bug 27755:
> https://sourceware.org/bugzilla/show_bug.cgi?id=27755
>
> This problem was introduced to binutils-2-31-1 for our tree.
> netbsd-9 is affected, while netbsd-8 is not.
2021-04-22 01:14:18 +00:00
rin
1c7fbcda57 Fix regression where ld(1) is trapped into infinite loop when
linking binary whose text does not fit within R_PPC_REL24.

Reported upstream as Bug 27755:
https://sourceware.org/bugzilla/show_bug.cgi?id=27755

This problem was introduced to binutils-2-31-1 for our tree.
netbsd-9 is affected, while netbsd-8 is not.
2021-04-22 01:09:48 +00:00
skrll
fd9a2ad443 Do previous differently as the API is different. 2021-04-21 16:23:47 +00:00
christos
a32fdb6548 Put things back, emit.ln it was meant to be there. 2021-04-21 14:04:26 +00:00
christos
2730ab42e6 remove emit.ln; looks like an accident and breaks the build. 2021-04-21 13:41:42 +00:00
rillig
be94027e4e tests/lint: fix the hack for emit.ln to also work if MKUPDATE != "no" 2021-04-21 13:26:16 +00:00
jakllsch
f1bae0bb42 regenerate 2021-04-21 13:12:42 +00:00
jakllsch
e14bb724aa Fix Realtek RTL8125 description 2021-04-21 13:09:33 +00:00
hannken
a2c5994a36 Prevent blocking l2arc_feed_thread() forever, skip the
cv_timedwait() for negative or zero ticks.
2021-04-21 10:02:34 +00:00
ryo
ea089466ac added more attributes of PTE displayed by "ddb>machine pte" 2021-04-21 09:52:20 +00:00
skrll
b5c783f5b6 Provide some more operations that are part of compiler lse.S. This is
incomplete, but at least covers all the atomic_swap ops and allows the
aa64 kernel to link with gcc 10.
2021-04-21 07:31:37 +00:00
rillig
97ccd8d967 tests/lint: fix inconsistent operator for emit.ln
The build failed with:

	nbmake[8]: "/.../src/share/mk/bsd.files.mk" line 47:
	    Inconsistent operator for /.../emit.ln
2021-04-20 23:30:35 +00:00
rillig
296378dbd5 clang: fix build for installing libclang_rt.ubsan_minimal-x86_64.a
The build failed with:

	--- install-ubsan_minimal-m64 ---
	x86_64--netbsd-install: the last argument
	    (/.../libclang_rt.ubsan_minimal-x86_64.a.syms)
	    must name an existing directory

The cause of this is that the suffix transformation rule for .a.a.sym
was active even during 'make install'.

At that point, the make variable .ALLSRC for the target
${DESTDIR}/.../libclang_rt.ubsan_minimal-x86_64.a.sym included not only
the corresponding file from the source directory, but also the potential
source file from the transformation rule, in this case
libclang_rt.ubsan_minimal-x86_64.a.

This led to several file parameters for the command 'install', which is
only allowed if the last parameter names an existing directory.
2021-04-20 23:19:53 +00:00
christos
38e22eb187 Add common attribute 2021-04-20 21:48:39 +00:00
christos
c510facea2 Instead of compiling files with -fcommon, create an include file and declare
the 3 symbols that need to be common using an attribute. Put all the 3 symbol
definitions in libc in one place (initfini.c). Reviewed by joerg@
2021-04-20 21:42:31 +00:00
rillig
105b25615a tests/lint1: fix build error "must name an existing directory"
The build failed with this error message:

	x86_64--netbsd-install: the last argument (/.../emit.ln) must
	name an existing directory

The cause for this message was that ${DESTDIR}/.../emit.ln has
${DESTDIR}/.../emit.c as implicit target, which is kind of correct but
unintended in this case.  Because of this, the command 'install' was run
like this:

	install ${NETBSDSRCDIR}/.../emit.ln ${DESTDIR}/.../emit.c \
	    ${DESTDIR}/.../emit.ln
2021-04-20 21:20:24 +00:00
rillig
e05bae9cb6 tmux: move __printflike to the declaration in the header
Noted by Akihiko HAYASHI.
2021-04-20 17:42:31 +00:00
mrg
307da2e47a give a structure a name.
it makes GCC 10 less unhappy about building arm64 GCC 10.
2021-04-20 10:39:58 +00:00
skrll
b8baaa4b67 KNF 2021-04-20 10:15:34 +00:00
skrll
8272934fce compile fixes 2021-04-20 10:01:37 +00:00
thorpej
37f32593c4 Don't use atomics to manipulate cpu_info::ci_intrdepth: it's modified
only in the interrupt service path by the owning CPU, at entry and exit.
Even if the r/m/w cycle of incrementing the value were interrupted, the
result would still be the same because the interrupting frame will have
completed its own symmetrical increment/decrement cycle upon return.
2021-04-20 01:29:40 +00:00
thorpej
3a56ffacac Slight tweak to previous changes:
Rather than simply increment the interrupt depth for the clock interrupt,
we add 0x10.  Why?  Because while we only use a single Alpha IPL (4) for
IPL_{BIO,NET,TTY,VM}, technically the architecture specification suports
two in the OSF/1 PALcode (3 [low-pri] and 4 [high-pri]), meaning we could
conceiveably have intrdepth > 1 just for device interrupts.

Adding 0x10 here means that cpu_intr_p() can check for "intrdepth != 0" for
"in interrupt context" and CLKF_INTR() can check "(intrdepth & 0xf) != 0" for
"was processing interrupts when the clock interrupt happened".
2021-04-20 00:09:45 +00:00
rillig
24fb524bea make: do not complain when skipping the condition 'no >= 10'
Seen in external/bsd/tmux when building with Clang.  See
varmod-ifelse.mk for the detailed story.
2021-04-19 23:51:42 +00:00
rillig
a12d67d575 tests/make: add another example for parsing of the modifier ':?' 2021-04-19 23:43:14 +00:00
rillig
2427b79c7f tests/make: add detailed explanation for error message in conditional 2021-04-19 23:27:17 +00:00
rillig
97e91d60e6 make: use straight quotes for error 'Bad conditional expression'
This diagnostic was supposed to be an error, see ApplyModifier_IfElse.

When such an error occurs while the makefiles are read, make stops with
an error, as can be expected.  But when such an error occurs later,
after all makefiles have been read, the message is printed but make does
not stop.

In lint mode (-dL), make stops in such a case.  I didn't dare to make
this the default behavior, out of fear of breaking existing build
infrastructure, not only in NetBSD or pkgsrc, but also FreeBSD and other
operating systems that use the bmake distribution, generated from the
same source code.
2021-04-19 22:22:27 +00:00