Commit Graph

219168 Commits

Author SHA1 Message Date
msaitoh d13f03981b The bit location of link ability is different between 1000Base-X and others
(See annex 28B.2 and 28D). The old mii.h defined ANAR_X_PAUSE_* macros. Those
macros were named for 1000Base-X, but the bit definitions were not for
1000Base-X but for others (e.g. 1000BaseT). So there was bug in auto
negotiation for 1000Base-X, but there was no bug for other media. Define new
macro named ANAR_PAUSE_* and ANLPAR_PAUSE_* for other than 1000Base-X and fix
the bit definitions of ANAR_X_PAUSE_* and ANLPPAR_X_*. Change some PHY drivers
to use true macro. Same as other *BSDs.
2013-06-16 06:29:08 +00:00
dholland f545eefb81 Update the sources list for lfs.
It is a defect in our module system that failure to include all the sources
in here does not result in a build failure with undefined symbols.

(It is also a defect in our module system that we need a whole parallel
system of source lists for it.)
2013-06-16 03:55:35 +00:00
christos 20af2ec145 In the PIC case, build libXdmGreet; perhaps we should always build and
link against it, even in the static case?
2013-06-16 01:51:29 +00:00
dholland 063f56aa0d Add a comment about a matched pair of off-by-one tests that make the
maximum size of short symlinks one byte less than one would think it
should be. Caution against changing it; that would break compatibility
with existing disk images. Behavior noticed by qjsgkem on freenode.

If my analysis is wrong, please correct...
2013-06-16 00:13:58 +00:00
christos 0ebdad6fe7 - missing semicolon
- missing SKIPS
- assignment instead of comparison
2013-06-15 22:53:18 +00:00
matt a68de2b4d7 More OMAP5 support 2013-06-15 21:59:37 +00:00
matt de418489a8 Don't rely on hardcoded clocks now that we determine the actual ref clk
in the startup code.
2013-06-15 21:58:20 +00:00
matt 15d5bd1ab5 Beginnings of OMAP5 support. 2013-06-15 21:55:09 +00:00
christos da0e2b2a1d reflect the correct OpenBSD versions we are synced with. 2013-06-15 13:05:35 +00:00
christos 289b275fc3 revert part of previous commit 2013-06-15 12:29:02 +00:00
christos 9b746cb5f2 revert previous 2013-06-15 01:39:56 +00:00
christos 4ac5b2cc33 adjust to the lfs splitadjust to the lfs splitadjust to the lfs splitadjust to the lfs splitadjust to the lfs splitadjust to the lfs splitadjust to the lfs splitadjust to the lfs splitadjust to the lfs split 2013-06-15 01:37:10 +00:00
christos 78f1cd9f5b handle new lfs split 2013-06-15 01:27:19 +00:00
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