Commit Graph

219155 Commits

Author SHA1 Message Date
christos
ec6fb31453 fix compilation 2013-06-15 01:26:48 +00:00
christos
c486c59c33 make this compile again after the lfs changes 2013-06-15 00:42:16 +00:00
christos
4c1da39777 make loadadr uintptr_t since we are casting it to pointers. 2013-06-15 00:41:56 +00:00
christos
5a16efd3f4 since when -m belongs in cppflags? 2013-06-15 00:40:12 +00:00
rkujawa
947ae9fb5b Use VBAR register on Armada XP. 2013-06-14 20:02:44 +00:00
christos
aa3896734e if ipsec_flags is given, treat it as an interface name and change @LOCAL_ADDR@
to the IP address for it. This makes dynamic addresses work during autoconf.
Also while here in restart, re-use start and stop instead of duplicating them.
2013-06-14 16:37:55 +00:00
christos
54da44c072 Accept - as stdin
Be nice and let the user know which file it could not open.
2013-06-14 16:29:14 +00:00
tsutsui
c7276dbc04 Remove old workaround for Cygwin.
http://mail-index.netbsd.org/source-changes/2003/05/08/0042.html

16bit dev_t for !__CYGWIN_USE_BIG_TYPES__ was removed in Cygwin 1.7.2
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.32
and __dev32_t has been removed since 1.7.19.
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.36
2013-06-14 16:28:20 +00:00
tsutsui
ccf0f70064 Invoke tools/binstall/mkmanifest for Cygwin via ${HOST_SH}.
Fixes builds using source sets that drop executable bits.
2013-06-14 16:10:02 +00:00
msaitoh
a9509b01aa KNF. 2013-06-14 06:21:51 +00:00
pooka
ef255f82ed sauce previous with a comment 2013-06-14 05:59:50 +00:00
pooka
3dfa58adc5 Ignore too short packets. This condition is true especially for the
first packet on a new bus (len == 0).  Everything else in the stack
besides bpf seemed to be able to deal with one, though.
2013-06-14 05:56:29 +00:00
pooka
26e2849474 Allocate large struct from heap instead of stack for the benefit of
low-stack environments in which this code can run.
2013-06-14 05:54:04 +00:00
isaki
0a3e12024b Remove header files which became unnecessary in 1.7. 2013-06-14 05:39:28 +00:00
mrg
cca850f1bd define HAVE_XAA_H. fixes problems seen since the update to 2.1.20. 2013-06-14 04:43:38 +00:00
msaitoh
0893cfd5dd Remove trailng whitespaces. 2013-06-14 03:54:43 +00:00
tls
a5fd1fb2d3 Correct use of entropy estimate when data are extracted from the pool.
The "threshold" value was being inappropriately used to limit how many
bytes could be output even after the estimator said enough bytes had
been put in to meet our minimum security guarantee.

This fixes a panic observed with the automatic test harness and by
msaitoh, where it was not possible to extract the full estimate's worth
of bytes even holding the pool lock across the estimate and extract
calls.
2013-06-13 19:18:00 +00:00
christos
c42e7a1ab0 We need to say we have getloadavg(3) otherwise it wants to open /dev/kmem
and it does not work since we don't install setgid kmem.
2013-06-13 11:25:18 +00:00
matt
45a83cb747 Regen. 2013-06-13 06:11:54 +00:00
matt
aafc9be326 Add ATI RADEON_HD7340 2013-06-13 06:11:34 +00:00
tls
a93435648b Correct misunderstanding in previous: a mutex is not required to protect
the soft interrupt dispatches.
2013-06-13 01:37:03 +00:00
tls
5819ac2839 Convert the entropy pool framework from pseudo-callout-driven to
soft interrupt driven operation.

Add a polling mode of operation -- now we can ask hardware random number
generators to top us up just when we need it (bcm2835_rng and amdpm
converted as examples).

Fix a stall noticed with repeated reads from /dev/random while testing.
2013-06-13 00:55:01 +00:00
mrg
0ca6164e56 rename (new) xorg_drivers to xorg_server -- platforms that build the
actual Xorg server (aka "xfree86 server").

move the list of these platforms from xorg-server/Makefile.common to
bsd.own.mk, so that we can access it easily in distrib.

this should fix most of the current build failures.
2013-06-12 21:35:29 +00:00
matt
aee3c0c44f add ARM_HAS_VBAR option 2013-06-12 21:35:22 +00:00
matt
27b446bf8f Add a ARM_HAS_VBAR option which forces the use of the VBAR register. This
allows much code to deal with vector_page mappings to be eliminated.  On a
BEAGLEBONE kernel, this saves 8KB of text and instructions that never have
to be executed.  (The PJ4B has VBAR but doesn't implement the security
extensions it is part of so a method was needed to allow it use VBAR with
relying on the default test for the security extensions.)
2013-06-12 21:34:12 +00:00
macallan
263f0a1b9e fix typo 2013-06-12 20:44:20 +00:00
macallan
3a5f3d0384 document arithmetics instructions 2013-06-12 20:43:21 +00:00
matt
27d0b7b0fa Now that VBAR support is present, switch to ARM_VECTORS_LOW. 2013-06-12 20:36:53 +00:00
matt
d2751b5a8d Add support for the VBAR (vector base address register) to remap the vectors
into the kernel text segment.  This register is available on arm1176 and
all cortex processors since they all have the arm security (trustzone)
extension.  We avoid having to specially map either vector page (0x00000000
or 0xffff0000) and use VBAR to both to page0rel in the text segment.  These
vector group differs from the normal page0, that since it's in the kernel,
it can branch directly to the exception routine, instead of loading the
address into the PC.  This should result in a tiny improvement in speed since
we eliminate a TLB mapping the vector page and a load on every exception.

XXX Add __HAVE_ARM_TRUSTZONE cpp define and use that to eliminate all code
have to do with manipulating the vector page.
2013-06-12 17:13:05 +00:00
matt
6d97100ca0 Fix VBAR inlines 2013-06-12 17:06:52 +00:00
kiyohara
b7a30adb0b Fix lost avail memory over 256M. 2013-06-12 15:11:08 +00:00
matt
8d08227bd8 Deal with __ARM_FIQ_INDIRECT 2013-06-12 15:10:13 +00:00
pooka
cefaa4c481 Make sure root creds override fs mode (at least in a root cred secmodel).
The correct way is of course for the access method to perform this:

    return kauth_authorize_vnode(cred, KAUTH_ACCESS_ACTION(mode,
        vp->v_type, attr->va_mode), vp, NULL, genfs_can_access(vp->v_type,
        attr->va_mode, attr->va_uid, attr->va_gid, mode, cred));
2013-06-12 12:14:35 +00:00
pooka
16eee2303a Fix the test for rumpfs on amd64 by adding a creation mode to open().
thanks to gson for the prod.
2013-06-12 12:08:08 +00:00
matt
d8de3b9ec7 If we are using the VBAR to access the system vectors, we can just branch
to the exception routines avoiding a load.  VBAR only exists for those
processors which implement the Security extension.
2013-06-12 07:17:23 +00:00
matt
2889348c0f Add printfs around initializing the vector_page. 2013-06-12 07:14:26 +00:00
matt
12f7d32a4b If the vector_page is not ARM_VECTORS_{LOW,HIGH}, assume it's in kernel
text and don't do anything special to map it.
2013-06-12 07:13:18 +00:00
matt
abecdcabf1 Add CPU_ARMV7 and make CPU_PJ4B and CPU_CORTEX instantiate it. 2013-06-12 07:12:10 +00:00
matt
8a300ad302 Fix ARM_PRF1_SEC_MASK value. 2013-06-12 05:25:58 +00:00
macallan
b2dfd674e8 fix serial type&pasto, while there add SX_ADD instructions 2013-06-12 04:23:46 +00:00
msaitoh
12cc82ab9c regen. 2013-06-12 02:51:43 +00:00
msaitoh
c8cc9541b4 Add some IC Plus Corp. devices. 2013-06-12 02:51:16 +00:00
matt
23b9975c52 Add defines for ARM Generic Timer
Add defines for PFR1 GTIMER and SEC extensions.
Add VBAR inlines
2013-06-12 02:08:02 +00:00
yamt
32786d7c5c fix timezone bugs in rev.1.11 and rev.1.13. PR/47916. 2013-06-12 01:46:07 +00:00
yamt
071e965c48 constify 2013-06-12 01:36:52 +00:00
yamt
fbfa30e437 add rcsid 2013-06-12 01:31:24 +00:00
matt
e7044a8be9 Nuke cpu_pfr, just use the armreg_pfr?_read inlines 2013-06-12 01:16:48 +00:00
matt
b6630c9abc Don't attach a9tmr if the CPU supports the generic timer. 2013-06-12 00:59:50 +00:00
matt
a688b29473 Use the armreg_pfr?_read inlines. 2013-06-12 00:44:39 +00:00
matt
5541c52430 If the L1 instruction cache policy is PIPT, don't set the prefer_mask. 2013-06-12 00:35:34 +00:00