Commit Graph

255062 Commits

Author SHA1 Message Date
christos 3cc28a26d9 include nbsd-nat.h 2017-12-02 18:39:52 +00:00
dholland d3bb758424 Mention the Sand Creek massacre. 2017-12-02 18:07:34 +00:00
jdolecek 508f8978c8 according to benchmark extracting pkgsrc.tar, using FUA and hence waiting
for each transfer to write through to the medium is way slower than just
letting the drive use a cached write and doing DIOCCACHESYNC on the end

Results were (fs block 32KB / frag 4KB, partition aligned on 32KB boundary):
HDD at siisata(4):  no-FUA: 108 sec w/FUA: 294 sec
SSD at ahcisata(4): no-FUA:  73 sec w/FUA: 502 sec

change the flag so that FUA is only used for the commit block write;
for journal data write, only pass DPO, rely on the cache flush to get them
to media
2017-12-02 17:29:55 +00:00
maxv 7398143904 Remove a piece of COMPAT_13, that I mistakenly didn't commit three
hours ago (in my change to drop COMPAT_13 on amd64).
2017-12-02 15:36:24 +00:00
maxv 7621315a4c Drop COMPAT_13 on amd64, already not enabled. Reduces the number of
critical places.
2017-12-02 13:03:15 +00:00
maxv 940e5914f8 Drop COMPAT_10 on amd64. The support for it comes down to one ifdef in
trap.c - code that is incorrect anyway, there were originally three lcall
LDT slots, and here only one instruction is decoded.

Given that one of these slots was used by BSDi's syscall, also remove the
references to COMPAT_NOMID to make clear we don't support that (it already
is not enabled).

Note: for some reason, COMPAT_10 does not even compile, because there are
"multiple definitions of _KERNEL_OPT_COMPAT_...", and I don't really
understand where this comes from.
2017-12-02 12:40:03 +00:00
maxv f07a517c36 Remove options that do not exist on amd64. 2017-12-02 09:59:02 +00:00
mrg ac4d6c0dba include opt_compat_netbsd.h, so that eg COMPAT_70 will be set. 2017-12-02 08:22:04 +00:00
mrg 277fd3d5f5 add two new members to uvmexp_sysctl{}: bootpages and poolpages.
bootpages is set to the pages allocated via uvm_pageboot_alloc().
poolpages is calculated from the list of pools nr_pages members.

this brings us closer to having a valid total of pages known by
the system, vs actual pages originally managed.

XXX: poolpages needs some handling for PR_RECURSIVE pools still.
2017-12-02 08:15:42 +00:00
ginsbach fe56fc8cfa Fix spelling mistake -- no el -- for previous 2017-12-02 01:36:38 +00:00
macallan ec5b0ac76f - return early in xcall() if the function is sparc_noop() instead of triggering
the IPI and then ignoring responses ( or lack thereof )
- write the .tag field last to avoid a race when polling for an incoming
  IPI
- add event counters for IPIs being caught with the mutex not held, and for
  messages that are already marked as completed
With this my SS20 made it through 48 hours of pkgsrc with MAKE_JOBS=3 and a
pair of SM81s.
Hypersparcs still crash but instead of craziness we get actual error messages,
apparently one CPU will occasionally do a watchdog reset, which according to
the manual is caused by catching a trap with traps disabled. Now to figure
out how that can even happen...
2017-12-02 00:48:04 +00:00
christos 81a00b8a1a regen 2017-12-02 00:00:57 +00:00
mrg 8e37c9dd5c - normalise some tab/space issues.
- fix (debugger-only useful) struct srmmu_pte::pg_pfnum to be the
  right size.
- add SRMMU_TEPTERBO as a PTE type -- supersparc-II only feature
  of mapping pages in reverse-byte-order (eg little endian by
  default, but there's also a global RBO flag, that makes this
  flag big-endian.)  we don't use it (yet?)
2017-12-01 23:14:20 +00:00
mrg 73e04a4535 note some bits no longer present in SuperSPARC-II. 2017-12-01 22:57:07 +00:00
mrg 9754dd2ae1 allow EXTERNAL_GCC_SUBDIR to be overriden. 2017-12-01 22:48:00 +00:00
mrg be18dbc420 normalise some indentation. NFC. 2017-12-01 22:47:06 +00:00
christos 37d4245424 don't suspend other threads if we are resuming. 2017-12-01 22:22:40 +00:00
christos 0846ccb7dd Remove more FreeBSD code that we don't need and change some FreeBSD -> NetBSD 2017-12-01 22:20:44 +00:00
christos a24bbe3e3b Back to stepping everyone. 2017-12-01 22:19:59 +00:00
christos cda18e6671 get the debugging registers for the specific thread. 2017-12-01 22:15:17 +00:00
joerg c08407dd01 Unbreak Linux emulation by default. While not loading it automatically
is somewhat sensible, breaking functionality of GENERIC is not and has
been objected to on a regular base.
2017-12-01 22:14:52 +00:00
maxv a272c0f7a0 Don't even bother with the trap frame, and force the default values. 2017-12-01 21:22:45 +00:00
rin 1597af3dd8 Compare ap->len wide chars, not ap->len bytes. 2017-12-01 20:01:31 +00:00
christos 10b27c7544 Allow attaching for write, but return no events. 2017-12-01 19:05:49 +00:00
christos 8f78c8577a belated bump for fileops struct size change. 2017-12-01 19:04:19 +00:00
christos a6510c8d12 Allow procfs_kqfilter, since we allow poll. "go" does it. 2017-12-01 19:01:34 +00:00
rin c14a835e62 Check format strings for ex_printf. 2017-12-01 18:39:49 +00:00
rin a90a8d8c63 Remove ex_printf duplicate with ex_extern.h. 2017-12-01 18:35:58 +00:00
jmcneill 7b8150dfa0 More fixes for new emac bindings. 2017-12-01 17:47:51 +00:00
ginsbach 3906a44676 PR misc/52776: Nikolai Lifanov: add definitions for EA, MVP 2017-12-01 17:19:01 +00:00
kre e55c81dc8f Since there has been no objection (or even comment) in response
to my message on tech-userlevel ...

    Subject: tests/lib/libpthread/t_mutex:mutex6
    Date: Thu, 23 Nov 2017 17:34:54 +0700
    Message-ID: <28385.1511433294@andromeda.noi.kre.to>

which can be found at:
	http://mail-index.netbsd.org/tech-userlevel/2017/11/23/msg011010.html

which analysed the mutex6 test case of this test, and concluded
that it was useless, nonsense, and broken (the whole test is just a
race - not even really using or testing mutexes), let it be henceforth
forever gone.
2017-12-01 13:25:29 +00:00
ozaki-r 50228de8cd Don't touch an SP without a reference to it 2017-12-01 06:34:14 +00:00
kre 3772e94e67 Since the C standard allows for intermediate floating results to contain
more precision bits than the data type expects, but (kind of obviously)
does not allow such values to be stored in memory, expecting the value
returned from strtod() (an intermediate result) to be identical (that is,
equal) to a stored value is incorrect.

So instead go back to checking that the two numbers are very very close.
See comments added to the test for more explanation.
2017-12-01 01:08:35 +00:00
jmcneill 7a7042c117 Re-add this, it is still needed for simplefb 2017-11-30 21:39:35 +00:00
jmcneill a2db71c689 Switch to new emac bindings for H3 boards 2017-11-30 21:36:45 +00:00
jmcneill 33381db08a Add support for new emac bindings 2017-11-30 21:36:11 +00:00
jmcneill 5a3c5ae476 Set twi clock based on parent clock, and fix register remapping for writes. 2017-11-30 20:41:21 +00:00
christos ea05286d92 add fo_name so we can identify the fileops in a simple way. 2017-11-30 20:25:54 +00:00
jmcneill 3a3fcbf0f7 Remove legacy awin kernels from image 2017-11-30 19:55:47 +00:00
jmcneill db2dcdb34a Unhook BPI, CUBIEBOARD, and CUBIETRUCK kernels from the build (use SUNXI kernel now) 2017-11-30 19:54:50 +00:00
jmcneill d5b68ef47d Add sun4i and sun7i DTS files to the build. 2017-11-30 19:52:23 +00:00
jmcneill daf2d387d0 dts updated to 4.15-rc1 2017-11-30 19:49:31 +00:00
jmcneill e950a255ed add sun8i-a83t-tbs-a711.dts and sun8i-h3-nanopi-m1-plus.dts 2017-11-30 19:48:44 +00:00
christos 888e2fefae add more DW_ATE_ constants 2017-11-30 19:45:53 +00:00
jmcneill fd38d326e0 merge conflicts 2017-11-30 19:42:58 +00:00
jmcneill 6cafeaff4f Import dts from Linux 4.15-rc1 2017-11-30 19:40:49 +00:00
maxv 24d8fe75c0 If no auxv is present, don't kmem_alloc(0). Easy to panic the kernel by
typing 'cat /proc/aout_pid/auxv' on whatever a.out binary you're running.
Fortunately, amd64 does not enable EXEC_AOUT by default. Unfortunately,
i386 does enable it by default.
2017-11-30 18:44:16 +00:00
jmcneill 103c5d09b6 report VLAN MTU capability 2017-11-30 18:29:25 +00:00
wiz 2daf92edc4 Add riastradh's man pages for sha3 and friends.
Commented out since the symbols themselves are not yet public.
2017-11-30 16:00:48 +00:00
wiz 7f40156188 Sync (dead) usage with man page. 2017-11-30 15:42:18 +00:00