Commit Graph

275704 Commits

Author SHA1 Message Date
macallan 53be9e9c22 make OpenFirmware info available via sysctl.ofw
tested on macppc, shark and sparc64
2020-04-03 06:02:51 +00:00
sjg f48d69a4a4 Revert arraycount 2020-04-03 03:35:16 +00:00
sjg 8953c85736 CHECK_VALID_META is too agressive for CMD check.
An empty CMD is perfectly valid.
So using CHECK_VALID_META results in too much rebuilding.
2020-04-03 03:32:28 +00:00
knakahara 17eea015e7 Fix TSC drift is observed almost every time wrongly.
Ths "TSC drift" in tsc_tc_init() means the cpu_cc_skew delta between
first measurement (in cpu_start_secondary) and second measurement
(in cpu_boot_secondary), that is, the TSC drift is expected to be
almost zero.  However, the second measument in current implementation
is added extra cpu_cc_skew accidentally, so current delta value means
almost cpu_cc_skew wrongly.

tsc_sync_bp and tsc_sync_ap should use rdtsc() to get raw values.

Advised by nonaka@n.o, thanks.
2020-04-03 03:05:39 +00:00
christos 2433f541c2 remove debugging 2020-04-02 21:36:03 +00:00
roy 61a9079563 Add _dhcpcd entries. 2020-04-02 20:57:20 +00:00
christos a17e9ce771 Add a prog_setsockopt (thanks kre@) 2020-04-02 18:32:31 +00:00
christos 4ea9b97786 Add the ability to:
1. list all ioctls (-l)
2. print the internal definition symbolically
3. search by name

$ ioctlprint -f "%n %E %e\n" TIOCGETA
TIOCGETA _IOR('t', 19, struct termios) _IOR('t',0x13,0x2c)
2020-04-02 17:41:33 +00:00
christos e30be371ac *** empty log message *** 2020-04-02 17:40:33 +00:00
maxv a381bde5bc Add a comment. 2020-04-02 16:31:37 +00:00
maxv fd2e91e6b8 Hide 'hardclock_ticks' behind a new getticks() function, and use relaxed
atomics internally. Only one caller is converted for now.

Discussed with riastradh@ and ad@.
2020-04-02 16:29:30 +00:00
msaitoh 2c245ede5c No functional change:
- s/u_int64_t/uint64_t/
 - s/alignes/aligns/
 - indent, tabify
2020-04-02 16:18:51 +00:00
msaitoh fa85244576 s/impliment/implement/ in comment. 2020-04-02 15:30:25 +00:00
roy bc0ba69444 Note import of dhcpcd-9.0.0 2020-04-02 14:11:59 +00:00
roy 3a7c0202f1 Fix the build by building 30-hostname 2020-04-02 14:05:28 +00:00
roy 134f8ca66a postinstall: add checks for _dhcpcd to do_uid and do_gid
Thanks to jmcneill@
2020-04-02 13:44:46 +00:00
nisimura 53d01bfb1c add aprint_debug_dev() call for CI20 2020-04-02 13:38:50 +00:00
roy 22fcb0ce30 postinstall: move dhcpcd files to the chroot 2020-04-02 13:04:09 +00:00
nisimura 525bf1f918 add ukphy as the last resort. enable dmphy for dme 2020-04-02 13:03:53 +00:00
roy da35319256 Adjust set lists for dhcpcd chroot 2020-04-02 13:03:22 +00:00
nisimura d24f22365e add miivar.h and put a stop gap to compile. 2020-04-02 13:03:03 +00:00
roy e9f01a9072 Add a default dhcpcd_chrootdir 2020-04-02 13:02:05 +00:00
roy 852a3f7b05 Add chroot support for dhcpcd 2020-04-02 12:58:49 +00:00
roy cdef9ff213 Build dhcpcd with privsep support. 2020-04-02 12:56:01 +00:00
roy 4982964f6e Sync 2020-04-02 12:41:47 +00:00
roy 9a245d3e64 Update to dhcpcd-9.0.0 with the following changes:
* Decode interface complex interface names eth0.100:2 eth0i100:2.
   This allows us to ignore some virtual interfaces by default
 * ARP: Report L2 header address on conflict for more clarity
 * DHCP: Support jumbo frames (untested)
 * DHCP6: Clean up old lease on failure to confirm/rebind, etc
 * RA: Prefer older routers
 * INET6: Obscure prefixes are now calculated correctly

 * Privilege Separation
 * default hostname is now a blank string rather than localhost
 * Leases are now dumped over the control socket - you get RA's now as well.
 * Better support for many IPv6 routers
 * RTM_MISS filtering
 * RA: Deprecate stale addresses by setting pltime 0
 * DHCP6: Deprecate stale addresses by setting pltime 0
2020-04-02 12:38:54 +00:00
roy d5aa3c6a01 Add _dhcpcd user and group 2020-04-02 12:35:13 +00:00
skrll 4d58013fe5 Tweak a comment in previous 2020-04-02 11:52:41 +00:00
skrll 0ab9900dea Reduce the memory footprint by allocating a ring per endpoint/pipe on
pipe open.

From sc.dying on tech-kern
2020-04-02 11:37:23 +00:00
sevan 07b0c9f241 just spaces 2020-04-02 11:34:33 +00:00
sevan 6c11760453 align 2020-04-02 11:32:31 +00:00
sevan a1cccef3bb Add NetBSD 9.0 & 8.2
Heads up by Harold Gutch
2020-04-02 11:27:55 +00:00
kamil e2cee14c15 Update with reality
Drop finished or not important tasks.
2020-04-02 11:19:09 +00:00
kamil 51d642fcfa Update with reality
Drop tasks not important or not relevant here.
2020-04-02 11:18:23 +00:00
sevan d157cf17c6 bsd-family-tree 2020-04-02 11:11:25 +00:00
sevan ab0cf3894f Sync with FreeBSD r359561 2020-04-02 11:09:24 +00:00
wiz 8ec0a7f9b1 Remove superfluous Pp. Add comma in enumeration. Add RCS Id. 2020-04-02 08:38:22 +00:00
wiz 49e3bec9e0 Add comma in enumeration. 2020-04-02 08:35:12 +00:00
skrll 020ee1400e Fix evmips CI20 build 2020-04-02 07:26:45 +00:00
sevan 12fff5803d Disks can sense vibes, DTrace confirms it.
https://youtu.be/tDacjrSCeq4
2020-04-02 05:55:02 +00:00
nisimura 3e50c2144e iron out multicast filter logic and pick better name for its work 2020-04-02 04:09:36 +00:00
kamil 090d46375e Note ioctlprint(1) in SEE ALSO 2020-04-02 03:35:48 +00:00
kamil 8ea4f8a087 ioctlprint(1): Add ioctl descriptive printer. 2020-04-02 03:34:49 +00:00
kamil bf4492493d Add ioctlprint - descriptive ioctl value printer
ioctlprint(1) is embedded in the kdump(1) program.
2020-04-02 03:32:46 +00:00
christos a31f32280c Add path. 2020-04-02 00:00:16 +00:00
christos befd78930e improve error messages, minor cleanups. 2020-04-01 21:04:34 +00:00
tnn 3108ff76ee Don't fail if we cannot compute the clock divider because the master
clock is too slow for what the slave device requested.
Instead warn and select the highest available slave clock rate.
Should fix boot hang on Pinebook Pro when using spiflash(4).
2020-04-01 20:37:32 +00:00
is bc99bd15e1 Define a few more LCP options. Recognize, sanity-check and report (but
still reject for the moment) multilink PPP configuration options received.
2020-04-01 20:24:50 +00:00
ad 1566130e81 Newer PC Engines BIOS versions don't set up the Super I/O for GPIO the
way we want so ignore most of the existing settings and enable banks 0
and 1.
2020-04-01 18:34:22 +00:00
msaitoh c1d18df426 Calculate mask correctly for bit 31 in nvkm_gpio_fini(). Found by kUBSan. 2020-04-01 15:57:46 +00:00