Commit Graph

266299 Commits

Author SHA1 Message Date
nonaka
209264f340 Remove unused definition. 2019-03-01 10:02:33 +00:00
isaki
ae06bb460e Fix return value. or_and_fetch should return new value. 2019-03-01 09:57:32 +00:00
msaitoh
7977047465 - Almost all ppbreg.h's definitions are also in pcireg.h. Remove duplicated
definitions from ppbreg.h and move some definitions from ppbreg.h to
  pcireg.h.
- Change fast back-to-back "capable" to "enable" in pci_subr.c.
- Print Primary Discard Timer, Secondary Discard Timer, Discard Timer Status
  and Discard Timer SERR# Enable bit in pci_subr.c.
- PCI_BRIDGE_PREFETCHBASE32_REG and PCI_BRIDGE_PREFETCHLIMIT32_REG are
  "upper" 32bit registers, rename to *UP32_REG to avoid confusion.
- Use macro.
2019-03-01 09:25:59 +00:00
mlelstv
6ddf27dbe6 Fix build for i386.
The acpi_intr_establish function should really take an AD_HANDLE parameter.
2019-03-01 09:21:06 +00:00
hannken
72421a1974 Move pointer to fstrans private data into "struct lwp".
Ride NetBSD 8.99.35
2019-03-01 09:02:03 +00:00
nonaka
38df7c851b Update Hyper-V related drivers description. 2019-03-01 08:17:51 +00:00
mrg
adef1dae34 #if 0 the x and y symbols in GLIBCXX_3.4 namespace. they cause
duplicate symbols on netbsd.  see PR#54027.

with this disabled, turn on using the symver-config.h for the
gnu.ver processing so that other defines are handled.

fix some depends for gnu.ver processing.
2019-03-01 08:15:23 +00:00
skrll
91ad2de258 Sprinkle static 2019-03-01 08:05:46 +00:00
msaitoh
c53d252e23 KNF. No functional change. 2019-03-01 07:02:56 +00:00
kre
8d9b075152 The previous commit was obviously made by a broken mindless automoton
with an IQ that underflows when one attempts to enter it as an
unnormalised 160 bit long long double...

Whoever would believe that (~0 & anything) was a meaningful thing
to write?   And three times in one #define.   That could not possibly
have been me, could it?

Simplify, simplify, simplify.		NFC.
2019-03-01 06:15:01 +00:00
isaki
3bbf8c07ee Add missing alias for __atomic_fetch_nand_N.
XXX I'm not sure why does llvm/sparc call __atomic instead of
    __sync though.
XXX atomic_*_cas.c should be more symmetric...
2019-03-01 06:14:52 +00:00
msaitoh
05fee1d2e6 No functional change:
- u_int* -> uint*
 - KNF.
2019-03-01 05:41:56 +00:00
isaki
4229f721ac Revert previous hack.
Now all libc have __sync_and_and_fetch functions.
2019-03-01 05:39:01 +00:00
kre
f2dc75406d Inspired by (really the need for) Maya's patch to pkgsrc/shells/bash
to allow bash to build fdflags on Solaris 10, here are some mods that
fix that, and some other similar issues in the NetBSD version of fdflags.

The bash implementation of fdflags is based upon the one Christos did for
the NetBSD sh, so the issues are similar ... the NetBSD sh cannot yet
(easily anyway) build on anything except NetBSD, so this change makes
no current difference at all (just adds some compile time tests (#ifdef)
which always work out the way things did before, when built on NetBSD).

However, there is no system on which any modern shell can hope to work
which does not support close on exec, or fcntl(F_SETFD,...) to set it.
The O_CLOEXEC and FD_CLOEXEC definitions might not exist, but close on
exec can still be manipulated.   Since the primary rationale for
the fdflags builtin was to be able to manipulate that state bit from
scripts, it would be annoying to lose that one, and keep all the (less
important) others, just because O_CLOEXEC is not defined, so do the
fix (workaround) a different way than was done in the bash patch.

Further, more than fdflags() will fail if O_CLOEXEC is not defined,
so handle that as well.

Also fix another oddity ... (noticed by reading the code) - if
fcntl(F_GETFL,...) returned any bits set that we don't understand,
the code was supposed to simply print their values as a hex constant,
when fdflags is run with -v.    However, the getflags() function was
clearing all bits that the code did not know about ... so there is
no way any unknown bit could ever make it out to be printed.  Handle
that a different way - instead of clearing unknown bits, clear any
bits that get returned which we understand, but do not want to deal
with (stuff like O_WRONLY, which should not be returned from the
fcntl(), but who knows...)   Leave any unknown bits that happen to be
set, set, so that printone() can display them if appropriate.
(This is most likely to happen when running an older shell on a new
kernel where the kernel supports some new flag that the shell has
not been taught to understand).

NFCI that anyone should notice anytime soon.
2019-03-01 05:23:35 +00:00
mrg
aa60f6a327 add ./usr/include/ofppc for ofppc builds.
(how many more builds will i find like this?  the end result
is that i think we should generate the ./usr/include/$MACHINE
entry, i think, but i have to survey many ports.)
2019-03-01 04:39:37 +00:00
mrg
c4218079dc fix a typo in a comment 2019-03-01 04:29:20 +00:00
christos
80c0a77f3a no more p_nsems. 2019-03-01 03:20:50 +00:00
christos
80f2143057 Document kern.uidinfo.semcnt. 2019-03-01 03:05:08 +00:00
christos
72a5054858 PR/53998: Joel Bertrand: Limit the number of semaphores on a
per-user basis not a per-process.  We cannot really keep track on
a per-process basis because a parent process can create the semaphore
and a child can free it taking credit for it.  There is also a
similar issue about resource exhaustion if we limited the number
of lwps per process as opposed to per user (which we don't).
2019-03-01 03:03:19 +00:00
mrg
111a44c91d no need to include opt_multiprocessor.h here. 2019-03-01 02:40:01 +00:00
mrg
50c8ce9fe9 make the conversion from degC to uK a macro instead of open
coding it 4 places.
2019-03-01 02:38:17 +00:00
macallan
83315f7fb1 since SX can trigger NMIs dump the status and error registers along with
the rest if sx is present.
2019-03-01 02:33:55 +00:00
mrg
7aa75b6a2f add some intel specific smart values, and be more specific for
a bunch of micron/crucial values.
2019-03-01 02:33:43 +00:00
macallan
04a1595b63 adapt to changes in sxreg.h 2019-03-01 02:30:42 +00:00
macallan
148f4b81c8 defflag SX_DEBUG 2019-03-01 02:28:27 +00:00
joerg
9c8312778a Disable warning about atomic alignment for all bind. It's used too
often.
2019-02-28 22:18:21 +00:00
gson
d8c2103a2e Make xgetchar() return an int like getchar() does, and remove needless cast. 2019-02-28 17:41:27 +00:00
christos
f5cd65f56e one more for the atomic references on clang. 2019-02-28 17:40:06 +00:00
khorben
d2a72d8553 Typo (s/vaule/value/) 2019-02-28 16:56:35 +00:00
mrg
e97586ab89 basic mknative bootstrap-libgcc for riscv64 2019-02-28 09:49:14 +00:00
mrg
767fb2605a call this bozohttpd 20190228, and merge the CHANGES entries from the
previous release.
2019-02-28 09:16:42 +00:00
mrg
08dbfa234a add ssl specific timeout value (30s). if SSL_accept() doesn't
work with in this timeout value, ssl setup now fails.

mostly different from, but inspired from the patch in PR 50655
2019-02-28 08:28:21 +00:00
msaitoh
4eaa0efae0 - Remove extra cast.
- Cosmetic change.
2019-02-28 05:40:58 +00:00
msaitoh
ecdec0692e No functional change:
- Use TAILQ_FOREACH{,_SAFE}() macro.
 - KNF.
2019-02-28 05:25:35 +00:00
msaitoh
dadbc81916 Set RGMII delay for MAC side correctly on RK3399. 2019-02-28 03:05:46 +00:00
isaki
acd53d24e1 Add missing atomic_and_{8,16}_nv_cas.c for __sync_and_and_fetch_{1,2}.
XXX why is not only atomic_and_* symmetric unlike the others?
    (in common/lib/libc/atomic/)
2019-02-28 02:35:37 +00:00
nonaka
2f7c8d4b83 arp(8): one more to close socket. 2019-02-28 01:20:25 +00:00
mrg
32c963babf rework some commented code so it is easier to enable. 2019-02-28 01:11:04 +00:00
jakllsch
c3e7c8a7ec Split up the initialization of pcihost_fdt so we can borrow and override
its innards in an upcoming driver.
2019-02-28 00:47:10 +00:00
jakllsch
3689f53f38 Implement support for IO space, and better-handle both variants of MMIO space. 2019-02-28 00:17:13 +00:00
dholland
2cc9171b5c Teach arp that it's okay to close sockets after using them.
(this requires adding a close op to the rump turds)

Fixes PR 53974 reporting too many open files.
2019-02-27 23:29:50 +00:00
mrg
d85c0d7f6a work around a GCC 7 vs sparc (32 bit) issue i haven't figured out
the real cause of yet.

mark npf_init() as non-static.  for a yet-unknown reason, when this
function is inlined by the compiler (or a human!) into the single
caller, some CPUs end up in a hung state that can't be interrupted
eventually leading to system hang.  eg:

[   8.9693040] root on hme0
[   8.9862690] nfs_boot: trying DHCP/BOOTP
xcall(cpu2,0xf0240ac8) from 0xf0241170: couldn't ping cpus: cpu1

is the symptom though sometimes nfs_boot is actually able to
complete mountroot before it hangs.


this may be a compiler bug but the symptom and the trigger are
far removed and my so-far reading of the "broken" npf_init
inlining has shown no issues, however, i haven't completed a
full scan of this asm in the past month so i'm commiting this
workaround for now.
2019-02-27 21:37:24 +00:00
jakllsch
fee2bf6d03 Use symbolic MII_MODEL_xxMARVELL_I210 instead of a literal 0 in makphy_isi210(). 2019-02-27 18:21:04 +00:00
jakllsch
80b4d1d9aa Add fdtbus_intr_establish_byname() helper. 2019-02-27 17:01:57 +00:00
jakllsch
21aceb1091 Consolidate FDT [find "names" index by string] logic. 2019-02-27 16:56:00 +00:00
jakllsch
215056ede3 Adjust residual calculation in "find index by name" idioms to take into
account the trailing NUL on each name.  Some other similar instances of
this idiom already account for this.

(In preparation to factor out this idiom into its own function.)
2019-02-27 16:30:40 +00:00
christos
600c236c7b Make the _and_and_ have-nots compile. 2019-02-27 15:32:11 +00:00
martin
1f77ea3786 Simplify previous even further by using hline() instead of a hand coded
version.
2019-02-27 12:59:35 +00:00
martin
b0876b5075 Simplify previous, suggested by simonb. 2019-02-27 11:35:35 +00:00
mrg
58612d4540 also bump the X in "nbX" with previous 2019-02-27 09:11:01 +00:00