Commit Graph

269977 Commits

Author SHA1 Message Date
uki 64399a4579 Give package name to xcomp machine dependency files 2019-09-12 09:45:43 +00:00
ryo 6e5e6fa958 changes of r1.39 was incomplete. only "examin/m" could handle 'q'.
added support 'r','x','z','d','u', and 'o' with 'q' modifier on 32bit arch.
2019-09-12 09:20:23 +00:00
jmcneill ab6186d7cf Do not attempt to change coherency_unit at runtime. Instead, if the
required coherency unit is greater than COHERENCY_UNIT in a MULTIPROCESSOR
kernel, just panic instead.

This makes non-MULTIPROCESSOR kernels work again.
2019-09-12 09:05:28 +00:00
jmcneill 2b0fe58515 Redistributors with virtual LPI support have larger register spaces. Take
this into consideration when scanning LPI regions.
2019-09-12 09:02:36 +00:00
maxv 569ac7e326 Add KASSERT to catch bugs. Something tells me it could easily fire. 2019-09-12 07:38:19 +00:00
maxv 729e3e93bc Fix a normally harmless race: initialize several global variables only on
cpu0, so we don't get eg cpu1 re-initializing them while cpu0 is using
them.
2019-09-12 06:39:47 +00:00
msaitoh 98e3d88a22 - Make SIOCADDMULTI returns ENOSPC when the Ethenet multicast address list
exceeds the limit.
- State "Ethernet" multicast address.
- Use macro.
2019-09-12 06:19:47 +00:00
ryo d648b08c16 even if "no options MULTIPROCESSOR" requires isb after tlbi op. since it should be harmless, dsb is also added.
fixed a problem that rockpro64 doesn't boot without MULTIPROCESSOR.
2019-09-12 06:12:56 +00:00
bad 24626c2518 Summary: ammend previous. remove pax from userspace sources.
CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: please use "PR category/123" to have the commitmsg appended to PR 123
CVS:
CVS: Please evaluate your changes and consider the following.
CVS: Abort checkin if you answer no.
CVS: => For all changes:
CVS: Do the changed files compile?
CVS: Has the change been tested?
CVS: => If you are not completely familiar with the changed components:
CVS: Has the change been posted for review?
CVS: Have you allowed enough time for feedback?
CVS: => If the change is major:
CVS: => If the change adds files to, or removes files from $DESTDIR:
CVS: => If you are changing a library or kernel interface:
CVS: Have you successfully run "./build.sh release"?
2019-09-12 00:56:05 +00:00
manu 215ccd50f6 Attempt to obtain ACPI RSDP from the hypervisor for Xen PV
There are three possible way of obtaining the ACPI RSDP
- From Extended BIOS Data Area (EBDA) when kernel or Xen was booted from
  BIOS bootstrap
- From EFI SystemTable when kernel is booted from EFI bootstrap
- When Xen is booted from EFI bootstrap, EBDA is not mapped, and EFI
  SystemTable is not passed to the kernel. The only way to go is to
  obtain ACPI RSDP trhough an hypercall.

Note: EFI bootstrap support for booting Xen has not yet been committed.
2019-09-12 00:52:22 +00:00
bad 03c90d02ab Summary: add grep and stat.
CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: please use "PR category/123" to have the commitmsg appended to PR 123
CVS:
CVS: Please evaluate your changes and consider the following.
CVS: Abort checkin if you answer no.
CVS: => For all changes:
CVS: Do the changed files compile?
CVS: Has the change been tested?
CVS: => If you are not completely familiar with the changed components:
CVS: Has the change been posted for review?
CVS: Have you allowed enough time for feedback?
CVS: => If the change is major:
CVS: => If the change adds files to, or removes files from $DESTDIR:
CVS: => If you are changing a library or kernel interface:
CVS: Have you successfully run "./build.sh release"?
2019-09-12 00:17:03 +00:00
bad dd3d5d3fbe add src/external/public-domain/xz. 2019-09-11 22:30:16 +00:00
bad 0f1e944e9e define sysautoload here too, to catch up with kern/makesyscalls.sh r1.173
XXX: This needs to be re-thought
2019-09-11 20:31:30 +00:00
skrll 4c8027ab18 Define PRIxPTE 2019-09-11 18:23:31 +00:00
skrll 4b085ab620 Move the TCR and TTBR defines into armreg.h where they below. NFCI. 2019-09-11 18:19:35 +00:00
kamil fd0c6ecff6 Plug memory leak in ps(1)
pinfo is allocated in setpinfo() with calloc(3).

Free it when no longer used, just before the program termination.

Detected with LSan.
2019-09-11 17:02:53 +00:00
bouyer 0b2edbc9d5 Switch to fdtbus_attach_spibus(), so spi slaves defined in the device tree
have a chance to be found.
2019-09-11 15:03:52 +00:00
christos bd679d14d4 Be consistent about semicolons in macros: always put them in the macro
definitions and in the macro invocations so that the invocations look
like statements, and we don't and up with extra semis. Fixes lint build.
2019-09-11 14:56:25 +00:00
maya e2a712c98e Use the more obviously replaced name __TWMDIR__
TWMDIR isn't currently used. We should patch to use it, though.
2019-09-11 14:10:36 +00:00
jmcneill 590739b387 - Fix TCR_TG0 field definitions to match Armv8 ARM
- Rename TCR_IPS_64TB to TCR_IPS_16TB, add TCR_IPS_4PB
- Whitespace fixes
2019-09-11 11:43:15 +00:00
ryo 0d10ea2703 used L3 even if L2 could cover the range. fix to use larger block if possible good enough.
pointed out by jmcneill@. thanks.
2019-09-11 08:15:48 +00:00
msaitoh a742a45c17 Print message when the number of multicast addresses exceeded the limit (30). 2019-09-11 04:59:55 +00:00
christos 9a1f52751e remove NCHNAMLEN optimization 2019-09-10 23:19:34 +00:00
kamil 36ec32beff Switch back _Noreturn to __dead in C11 threads
There is an ongoing discussion to unify unreturn attribute between C and
C++, making a compatible version, shared between languages. Instead of
picking C11-only approach here, switch back to __dead that wraps the
compiler extension for the same purpose.

This change makes this header more compatible with C++ and pre-C11.

Reference:

http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2410.pdf
2019-09-10 22:34:19 +00:00
ryo 77e643c7fb - examin/m displays with splitting by spaces as specified size
- add support 'q' modifier on all arch
- consider endianness
2019-09-10 09:32:04 +00:00
ryo 31e239d6f3 Add support for 'p' qualifier for pointer values on examine.
this shows as a pointer with symbol if possible. (e.g. "x/p $sp,10")
2019-09-10 08:16:04 +00:00
jdolecek 2df6af4916 adjust several missed drivers for wdcprobe() changes of ATA NCQ branch
for dreamcast g1 just drop the custom reset function, it doesn't seem to do
anything useful over the generic variant

PR kern/54538 by Izumi Tsutsui
2019-09-09 22:01:23 +00:00
sevan b0668c0a94 CSU UTS 2019-09-09 18:11:20 +00:00
ryo 505a88059b use L1-L3 blocks/pages for KSEG mappings to fit dramblocks exactly.
r1.29 and this changes avoid over cache prefetch problem (perhaps) with PMAP_MAP_POOLPAGE/KSEG on CortexA72, and be more stable for rockpro64.
2019-09-09 17:02:36 +00:00
christos f83b875483 put back the blacklistd integration that got lost in the bsd -> mpl move. 2019-09-09 14:40:39 +00:00
maya da2c419ac4 Fix bugurl. PR toolchain/48712 2019-09-09 13:57:13 +00:00
sevan c989538b5f GFCI, RCD 2019-09-09 12:42:52 +00:00
roy 801b070c3c t_arp: Wait for 10 seconds for RTM_MISS
Let's try increasing the ping timeout to try and fix PR misc/54525.
2019-09-09 10:29:04 +00:00
wiz 5f4f33c6a5 Remove superfluous Pp. 2019-09-09 07:46:49 +00:00
mrg bcd7a20db0 document usbnet_private locking. minor knf. 2019-09-09 07:20:16 +00:00
msaitoh 5360c5e2f0 Call cpu_dcp_cacheinfo() only when the cpuid Topology Extension flag is set
on AMD prcessor.
2019-09-09 05:36:21 +00:00
msaitoh f795a98978 Add MCOMMIT instruction. 2019-09-09 05:28:32 +00:00
sevan 822b4698de Adjust history
Based on zero(4s) manual on P1334 of
http://chiclassiccomp.org/docs/content/computing/Sun/software/800-1751-10_SunOS4.0Reference_RevA_9May88.pdf
2019-09-09 01:22:24 +00:00
sevan ec2478416f wtmp was actually arount in v2
https://www.tuhs.org/Archive/Distributions/Research/1972_stuff/unix_2nd_edition_manual.pdf
via Ingo Schwarze <schwarze@OpenBSD>
2019-09-09 00:21:03 +00:00
sevan 8a189553dd core(5) was in v1
https://www.bell-labs.com/usr/dmr/www/man51.pdf
via Ingo Schwarze <schwarze@OpenBSD>
2019-09-09 00:14:55 +00:00
sevan fb87f380ab mprotect first appeared in SunOS 4.0
Page 25 of SunOS 4.0 Change Notes
http://chiclassiccomp.org/docs/content/computing/Sun/software/800-1731-10_SunOS4.0ChangeNotes9May88.pdf
2019-09-08 22:35:44 +00:00
roy 5dd6236aa5 resolvconf: Build the pdnsd subscriber
Not the most ideal, but technically it works.
2019-09-08 21:04:31 +00:00
roy e617d2d52d Note import of openresolv-3.9.2 2019-09-08 20:57:16 +00:00
roy c1380af7c7 resolvconf: Build the pdns_recursor subscriber
As it now does something more useful than libc.
2019-09-08 20:55:57 +00:00
roy 415585e954 Sync 2019-09-08 20:48:50 +00:00
roy 7bae451c84 Import openresolv-3.9.2 with the following changes:
*  dnsmasq: clear cache after updating servers via dbus
  *  pdns_recursor: Fix global forwards (thus now installed by default)
  *  man: layout and misc fixes
2019-09-08 20:46:17 +00:00
mrg e62002f7f2 normalise an error message. 2019-09-08 19:00:33 +00:00
mrg 0801a2c6b2 - use CALLARGS vs CALLED for better usbhist
- turn off usbnetdebug default
- log for all entry/exit points of usbnet_pipe_intr()
- in usbnet_start_locked() track whether any packet has been
  transmitted for setting the timer.  avoids spurious
  "watchdog timeouts"
- in usbnet_stop() use callout_halt() vs callout_halt, and
  also stop the usb task.  fixes crash of usbtask after the
  phy has detached.
- add a little more defensive checking in the tick task, and
  add some high-log-level logs.
- in usbnet_detach() move the call to usbnet_stop_ifp() above
  the calls to callout/usbtask stopping.
- set ec_mii and unp_pri to NULL when freeing their data
2019-09-08 18:59:32 +00:00
mrg 98772cd1fd avoid non-debug kernel build issues. 2019-09-08 18:58:38 +00:00
maxv 90b51ba26d Hum, remove incorrect assignment. Userland could have passed a smaller
namelen, and the uninitialized bytes from sb_data were being used later in
the network stack.
2019-09-08 18:46:32 +00:00