Commit Graph

271777 Commits

Author SHA1 Message Date
joerg
c091bb989f Use -fno-strict-aliasing unconditionally for the cross compiler. 2019-11-28 23:01:22 +00:00
uwe
5f43f7b30e Don't emit page numbers in TOC for HTML, they are meaningless. 2019-11-28 19:59:48 +00:00
uwe
6cb1cbee17 Fix typo in register name in previous. 2019-11-28 19:53:04 +00:00
mrg
f3e1e5aaf8 note that earm and riscv switched to GCC 8. 2019-11-28 19:31:27 +00:00
maxv
28885f8e61 localify 2019-11-28 17:09:10 +00:00
msaitoh
170250d428 - Change IFM_10G_T(10GBase-T) entry to IFM_10G_CR1(10GBASE-CR1)
- Add the following entries:

	20GBASE-KR2
	56GBASE-R4
	100GBASE-LR4
	100BaseTX
	1000baseT
	10GBase-T
2019-11-28 16:02:07 +00:00
thorpej
823fed4859 Jared points out that interrupt_distribute(9) assumes that any interrupt
handle can be used as an input to the MD interrupt_distribute implementation
so we are forced to return the handle we got back from intr_establish().
Upshot is that the input to bcm2835_icu_fdt_disestablish() is ambiguous for
shared IRQs, rendering them un-disestablishable.

While here, make sure to actually bump the intr_refcnt, and add an
assertion on the value we get back from bcm2835_icu_fdt_decode_irq().
2019-11-28 15:35:51 +00:00
martin
7e222f4270 Provide a mostly-zeroed page at the start of the text segment, to work around
an OpenBIOS bug, see PR port-sparc64/54719 for details.
2019-11-28 14:21:25 +00:00
hkenken
38e54b81d5 Remove FDT_INTR_MPSAFE flag. 2019-11-28 14:13:37 +00:00
msaitoh
b27a0e3447 Fix comment. The ifm_media member of struct ifmedia is NOT user-set media
word but the current "active" media.

 The user-set media word is one of the ifmedia_entry's ifm_media(A) that
ifm_cur points to (e.g. IFM_AUTO). It can be taken as ifmediareq's ifm_current
entry. The current active media word is the ifm_media(B) entry of struct
ifmedia (e.g 1000baseTX-FDX as the result of auto negotiation). It can be
taken as ifmediareq's ifm_active entry.

struct ifmedia_entry {
	TAILQ_ENTRY(ifmedia_entry) ifm_list;
	u_int	ifm_media;	/* IFMWD: description of this media */ /* A */
	u_int	ifm_data;	/* for driver-specific use */
	void	*ifm_aux;	/* for driver-specific use */
};

struct ifmedia {
	u_int	ifm_mask;	/* IFMWD: mask of changes we don't care */
	u_int	ifm_media;	/* IFMWD: current active media word */ /* B */
	struct ifmedia_entry *ifm_cur;	/* current user-selected media */
	TAILQ_HEAD(, ifmedia_entry) ifm_list; /* list of all supported media */
	ifm_change_cb_t	ifm_change;	/* media change driver callback */
	ifm_stat_cb_t	ifm_status;	/* media status driver callback */
};

So:

			in kernel		SIOCGIFMEDIA(ifmediareq)
	-----------------------------------------------------------------
	user-setting:	ifm->ifm_cur->ifm_media	ifm_current
	current active:	ifm->ifm_media		ifm_active

It would be good to rename some members to make those meaning clear.
2019-11-28 14:08:22 +00:00
roy
8569e6d26f Make it easier to use strtoi and strtou in downsteam applications
without the need to define HAVE_NBTOOL_CONFIG_H and yet allow -Wundef
not to log any warnings.
2019-11-28 12:33:23 +00:00
isaki
99aa17d119 Use NULL for pointer. 2019-11-28 05:07:27 +00:00
thorpej
e0e714b12b There are some devices on the bcm283x that share IRQs (notably, the i2c
controllers), but the generic ARM PIC code doesn't support this.  Add a
workaround inspired by the GICv3 driver (thanks Jared for pointint it out).
2019-11-28 01:08:06 +00:00
christos
fa69ba79e0 match ifdefs with stats.c atomic selection 2019-11-28 00:18:36 +00:00
uwe
3295b861c7 Use .open/.write instead of .tm to emit TOC. 2019-11-28 00:06:39 +00:00
uwe
1d838ef35a Don't repeat the TOC file name, define a string. 2019-11-27 23:57:41 +00:00
uwe
c36ad7aef8 Don't open-code .tm calls to emit TOC entries.
Hide it in an .mktoc macro so that we can switch the way we generate
TOC more easily.
2019-11-27 23:53:01 +00:00
uwe
976914c39a Do not pass common/macros on the command line as input.
common/main already sources them, so there's no point to process the
file again *after* the document has been formatted.  Put it to SRCS so
that we still depend on it.
2019-11-27 23:19:13 +00:00
jmcneill
21a1e07fe1 Fix inverted ti,needs-special-hs-handling property logic and enable EDMA support 2019-11-27 23:03:24 +00:00
jmcneill
56ee1762fb Fix mmc and timer indexes. 2019-11-27 23:02:54 +00:00
uwe
4e164a8536 Don't lose groff's stderr when creating TOC.
Divert only the .Ti lines to the TOC file.  Keep the rest, it may
contain useful messages (like the empty line bug in macros that was
messing up page numbers).

TODO: Since we already depend on groff extensions, we should just use
.open/.write to emit the TOC directly.  But commit this for now in
case I run out of round tuits.
2019-11-27 22:41:41 +00:00
uwe
8646816a6e Add missing backslash at the start of conditional input.
That avoids an empty line in the input (which didn't look empty, but
for troff it really was) that causes a break.

I don't remember enough linear algebra to understand what happened,
but that also fixes off by one in some page numbers in the TOC.
2019-11-27 21:37:27 +00:00
joerg
460fa970c1 Add a hack for qemu/macppc. OF_finddevice calls will crash depending on
the boot loader and kernel being used. This patch allows using
-prom-env qemu_boot_hack=y to disable the lookup.
2019-11-27 21:07:32 +00:00
uwe
7e8735ca50 It's KRUPS not GENERIC-KRUPS. 2019-11-27 20:58:25 +00:00
ad
79ec83719f Don't try to IPI other CPUs early on. Fixes a crash on sparc64. Thanks
to martin@ for diagnosing.
2019-11-27 20:31:13 +00:00
maxv
70ac726582 localify 2019-11-27 19:21:36 +00:00
uwe
aa4a633943 Make .Te and .To also emit .Ti with quoted arguments.
I missed them b/c I tested on sparc notes and sparc/install is stuck
in the 90s and doesn't include common/sysinst.  Now that all emitted
.Ti have properly quoted arguments we can revert TOCPROC to simple
grep.

While here convert .Te and .To to also use $* so we we can also drop
quoting from their calls in common/sysinst now.  Don't actually drop
those quotes yet though, as we probably can further simplify the call
sites by emitting the headings automatically instead of duplicating
them.
2019-11-27 19:07:31 +00:00
christos
d5fb362f78 new terminfo 2019-11-27 19:04:45 +00:00
christos
8dc6c738dd simple import script 2019-11-27 19:00:25 +00:00
christos
bd9bf8b634 merge our changes 2019-11-27 18:58:57 +00:00
uwe
f8fceea814 Undo the .Ss2 quoting hack, the macros can now handle it. 2019-11-27 18:34:56 +00:00
christos
81bb75a321 Use strtoi instead of atoi() to catch bad input (Alexander Kuleshov) 2019-11-27 17:56:08 +00:00
martin
11ec07e83b When creating the TOC file, strip all incoming double quotes, but output
quotes around the third arg of the generated Ti macro invocation.
This fixes the TOC in non-html output. Pointed out by kre.
2019-11-27 15:58:12 +00:00
msaitoh
509697f3cf - Simplify sc->mii_anegticks setting. Same as FreeBSD.
Don't set the default value not in the attach function. Instead, set the
  default value (MII_ANEGTICKS) first in the beginning of the
  mii_phy_add_media(). The function already has the code to change the value to
  MII_ANEGTICKS_GIGE if it's gigabit capable.

- Remove extra pmf_device_register() call. It's done in mii_phy_add_media().
2019-11-27 10:19:20 +00:00
martin
a4dc321947 More cleanup:
- simplify TOC handling and remove arg limit (from uwe)
 - use Lk with explicit anchor text in some places
 - do not allow official release builds when we can not derive the
   proper date from the buildid
2019-11-27 09:29:25 +00:00
rin
cad5caa81a Add support for PT_[GS]ETXMMREGS requests for COMPAT_NETBSD32 on amd64.
For this purpose, PT_[GS]ETXMMREGS are added to amd64/ptrace.h. These
are intended for internal usage for COMPAT_NETBSD32, and therefore not
exposed to userland.

Thanks to kamil, mgorny, and pgoyette for their kind review!

XXX
pullup to netbsd-9
2019-11-27 09:16:58 +00:00
rin
5c7b51812a Rename process_machdep_validxstate() to process_machdep_validfpu(), as
this function will be used to check validity of XMM registers also.
2019-11-27 09:08:14 +00:00
rin
0ba7a22a4d Use bool for "write" in ptrace_machdep_dorequest() for clarity.
No functional changes.
2019-11-27 09:01:59 +00:00
rin
1e413be51e Fix copy-paste in comment. No binary changes. 2019-11-27 08:56:00 +00:00
msaitoh
cb48b5fbd4 Print dmesg correctly. 2019-11-27 08:53:32 +00:00
hkenken
af6f2f7b13 Remove GPIO driver attach defer. 2019-11-27 07:26:08 +00:00
maxv
9684bbd4f4 Add a small API for in-kernel FPU operations.
fpu_kern_enter();
	/* do FPU stuff */
	fpu_kern_leave();
2019-11-27 06:24:33 +00:00
christos
9191368464 new bind (tcp DoS security fix) 2019-11-27 05:50:26 +00:00
christos
1dc39bd675 merge bind 9.14.8 2019-11-27 05:48:39 +00:00
msaitoh
49dc6e359a Regen. 2019-11-27 03:47:05 +00:00
msaitoh
b6fd55ae05 - Add Xeon D-1500 NTB-secondary
- Add Xeon D NS QuickData DMA channel 0-7
2019-11-27 03:45:54 +00:00
tkusumi
392c1668b8 autofs: Use NULLVP for NULL vnode
I originally used NULL for NetBSD autofs, but it got mixed up with
NULLVP when merged with NetBSD.
2019-11-26 16:17:31 +00:00
gson
8b9242afb5 Change 0x%jx -> %#jx as suggested by christos. 2019-11-26 10:34:16 +00:00
jmcneill
7bfa6b737a Fix IFF_ALLMULTI handling. 2019-11-26 10:33:19 +00:00
gson
88b2e353f0 Convert debug printfs to usbhist. 2019-11-26 10:24:17 +00:00