Retire PV_TABLE_MOD.  When we destroy or write protect a dirty mapping,
we call vm_page_dirty().  Maintaining the PV_TABLE_MOD flag, in addition,
serves no useful purpose.


git-svn-id: svn://svn.freebsd.org/base/head@239681 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Unbreak tinderbox.


git-svn-id: svn://svn.freebsd.org/base/head@239682 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't include syscons in the config just yet.  We haven't imported the
touchscreen driver yet.


git-svn-id: svn://svn.freebsd.org/base/head@239683 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add MD syscons header file for MIPS.

Sponsored by:	DARPA, AFRL


git-svn-id: svn://svn.freebsd.org/base/head@239684 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add isf(4), a driver for the Intel StrataFlash family of NOR flash parts.

The driver attempts to support all documented parts, but has only been
tested with the 512Mbit part on the Terasic DE4 FPGA board.  It should be
trivial to adapt the driver's attach routine to other embedded boards
using with any parts in the family.

Also import isfctl(8) which can be used to erase sections of the flash.

Sponsored by:	DARPA, AFRL


git-svn-id: svn://svn.freebsd.org/base/head@239685 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
When using -stdlib=libc++, add the correct dependency to .depend in
bsd.prog.mk.

Submitted by:	Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@239686 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add clrex, strex , ldrex, strex and variants

Submitted by:	Alexander Rybalko


git-svn-id: svn://svn.freebsd.org/base/head@239687 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ARM11 might have more then 32 interrupts, e.g. BCM2835: 72 interrupts


git-svn-id: svn://svn.freebsd.org/base/head@239688 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not swap byte order if we assign default value for intr_cells


git-svn-id: svn://svn.freebsd.org/base/head@239689 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Style cleanup


git-svn-id: svn://svn.freebsd.org/base/head@239690 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add terasic_mtl(4), a device driver for the Terasic Multi-Touch LCD,
used with Terasic's DE-4 and other similar FPGA boards.  This display
is 800x480 and includes a capacitive touch screen, multi-touch
gesture recognition, etc.  This device driver depends on a Cambridge-
provided IP core that allows the MTL device to be hooked up to the
Altera Avalon SoC bus, and also provides a VGA-like text frame buffer.

Although it is compiled as a single device driver, it actually
implements a number of different device nodes exporting various
aspects of this multi-function device to userspace:

- Simple memory-mapped driver for the MTL 24-bit pixel frame buffer.
- Simple memory-mapped driver for the MTL control register set.
- Simple memory-mapped driver for the MTL text frame buffer.
- syscons attachment for the MTL text frame buffer.

This driver attaches directly to Nexus as is common for SoC device
drivers, and for the time being is considered BERI-specific, although
in principle it might be used with other hard and soft cores on
Altera FPGAs.

Control registers, including touchscreen input, are simply memory
mapped; in the future it would be desirable to hook up a more
conventional device node that can stream events, support kqueue(2)/
poll(2)/select(2), etc.

This is the first use of syscons on MIPS, as far as I can tell, and
there are some loose ends, such as an inability to use the hardware
cursor.  More fundamentally, it appears that syscons(4) assumes that
either a host is PC-like (i386, amd64) *or* it must be using a
graphical frame buffer.  While the MTL supports a graphical frame
buffer, using the text frame buffer is preferable for console use.
Fixing this issue in syscons(4) requires non-trivial changes, as the
text frame buffer support assumes that direct memory access can be
done to the text frame buffer without using bus accessor methods,
which is not the case on MIPS.  As a workaround for this, we instead
double-buffer and pretend to be a graphical frame buffer exposing
text accessor methods, leading to some quirks in syscons behaviour.

Sponsored by:	DARPA, AFRL


git-svn-id: svn://svn.freebsd.org/base/head@239691 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Return "locally assigned" Enclosure Logical Identifier instead of 8 zero
bytes. Zeroes there are incorrect and tend to cause false device ID matches.


git-svn-id: svn://svn.freebsd.org/base/head@239693 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
For building libstdc++ and libsupc++, filter out any -stdlib=libc++
option from CXXFLAGS, otherwise these libraries will not build.
Similarly, filter out any -std=xxx options that aren't supported.

Submitted by:	Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@239695 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Piggyback MIPS changes and add ARM syscons support for devices with
framebuffer

While here - sort #if defined() order alphabetically


git-svn-id: svn://svn.freebsd.org/base/head@239696 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge fix for hang on ARM11 from NetBSD


git-svn-id: svn://svn.freebsd.org/base/head@239697 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Call set_pcpu for ARMv6 architecture too


git-svn-id: svn://svn.freebsd.org/base/head@239698 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Grammar fix: s/NIC's/NICs/

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@239699 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for ARM11 cpufunc

Obtained from:	NetBSD (partially)


git-svn-id: svn://svn.freebsd.org/base/head@239701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add ARM11 support for elf trampoline


git-svn-id: svn://svn.freebsd.org/base/head@239702 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add EEPROM data hooks for the AR9287.

Tested:
	* AP99 Reference board (AR7241 + AR9287)


git-svn-id: svn://svn.freebsd.org/base/head@239703 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f