Commit Graph

224895 Commits

Author SHA1 Message Date
mrg
afa90f2bf5 prepare for moving GCC 4.5 into gcc.old:
- convert to using ${EXTERNAL_GCC_SUBDIR}
- define base-external-gpl3-gcc* subdir as GCC_SUBDIR
- use <bsd.init.mk> over <bsd.own.mk> for a bunch of places; mostly
  because it arranges for ../Makefile.inc to be included earlier, and
  don't bother including the latter if the former is already included.
- move all .PATH: settings after <bsd.{own,lib}.mk> so that all
  valid variables are set before it is evaluated
- rename mknative-gcc* to match their subdir name.

XXX the relationship between the Makefile.inc/Makefile.gcc_path files
    is kind of sketchy, it would be great if this was fixed.
2014-02-26 09:54:32 +00:00
skrll
5e866baef0 Fix off by one in _bus_dma_{paddr_inrange,_to_paddr} when checking the
dma range.
2014-02-26 07:57:09 +00:00
skrll
43786578e3 Re-enable FSR_WRITE for armv6. 2014-02-26 07:48:29 +00:00
mrg
dc63ee27d6 put the new EXTERNAL_GCC_SUBDIR under MKGCC. 2014-02-26 05:51:11 +00:00
ozaki-r
b09f1c590a Regen. 2014-02-26 04:31:29 +00:00
ozaki-r
bc17336a32 Add Micrel PHY (KSZ9021RN)
The new driver micphy is almost same as ukphy except that
micphy has a fixup for cpsw; a PHY with cpsw has to adjust
RGMII signal timing.

Reviewed by christos@
2014-02-26 04:13:44 +00:00
ozaki-r
e9e5c4b457 Make cpsw driver work without uboot support
On some eval boards such as BeagleBone, the cpsw device is initialized
rightly by the uboot of the boards so that the cpsw driver doesn't need
to do some initializations but works fine.

The patch adds initializations to make the driver work solely. It also
adds support for 1000BaseT (RGMII) PHY that is equipped on some boards,
e.g., CKB-3352.

Reviewed by christos@
2014-02-26 03:58:33 +00:00
christos
08ee8ae311 regen powerpc64 2014-02-26 03:11:37 +00:00
christos
f7ecbf3884 powerpc64 needs USE_COMPILERCRTSTUFF=yes 2014-02-26 03:09:42 +00:00
mrg
e849bbac94 define EXTERNAL_GCC_SUBDIR based upon HAVE_GCC, for GCC >= 4.5,
and use it in the one place (bsd.lib.mk) it's used in share/mk.
2014-02-26 02:51:02 +00:00
pooka
711a488a45 Run constructor as part of network faction bootstrap, not device
(rumpdev no longer necessary)
2014-02-26 02:39:29 +00:00
matt
965fe8898f Move pmap_recent_user to ci->ci_pmap_lastuser and
pmap_previous_active_lwp to ci->ci_lastlwp.  Fix some comments.
2014-02-26 02:07:58 +00:00
pooka
94265f339d Use MAP_ANON|MAP_PRIVATE for anonymous memory mapping,
e.g. Linux gets upset if just MAP_ANON.
2014-02-26 02:03:40 +00:00
matt
ef682d9741 Add more MMU registers 2014-02-26 02:03:00 +00:00
jmcneill
dbe6d03e41 hook up mmc card detect gpio 2014-02-26 02:01:29 +00:00
jmcneill
a2afab1a46 implement card detect 2014-02-26 02:01:02 +00:00
matt
642b00b54e Move some static/global variables to here. 2014-02-26 01:57:48 +00:00
matt
a985f52699 Remove KERNEL_LOCK/KERNEL_UNLOCK 2014-02-26 01:56:51 +00:00
matt
a644e638a4 Use PAGE_SIZE instead of 1000 2014-02-26 01:55:02 +00:00
matt
e18646e7d1 Add arm_cpu_max 2014-02-26 01:54:35 +00:00
matt
b135ae119a ci_cpu_id -> ci_arm_cpuid 2014-02-26 01:54:10 +00:00
matt
1b06891ee7 Add XN bit L2 large pages. 2014-02-26 01:53:23 +00:00
matt
f06e183b14 Remove duplicate PMAP_PTE 2014-02-26 01:51:51 +00:00
matt
3a738c3745 l2pte_valid -> l2pte_valid_p 2014-02-26 01:51:11 +00:00
matt
4f5250b410 Replace 1000 with PAGE_SIZE 2014-02-26 01:45:33 +00:00
matt
8165c44e7b Add support for PMAP_PTE to pmap_kenter_pa 2014-02-26 01:41:40 +00:00
matt
5b8369687f Use kmem instead of malloc.
Fix various corner cases with bounce buffers.
Use PMAP_NOCACHE instead of manipulating PTEs directly.
2014-02-26 01:05:52 +00:00
matt
6a8359cd54 Add PMAP_PTE flag. (map page so it can be used as a PDE or PTE page) 2014-02-26 01:03:03 +00:00
jmcneill
bbf236ea5f hook up MMC0 to status-led2 2014-02-26 00:39:50 +00:00
jmcneill
4aa30161a6 blink status LED during data transfers 2014-02-26 00:39:30 +00:00
matt
aa8fd3d41e Add awge
bump symtab space.
2014-02-26 00:32:21 +00:00
matt
f53bac1050 Didn't want to comment out awin_dma_bootstrap 2014-02-26 00:30:56 +00:00
matt
817e60a485 Make this compile 2014-02-26 00:29:23 +00:00
matt
076e6ea983 Deal with cubietruck GPIO differences.
Use its 2GB of RAM to distinguish it.
2014-02-26 00:20:59 +00:00
matt
b33d4dabfe Include latent support for coherent dma though for now it seems that isn't
possible.
2014-02-26 00:19:01 +00:00
jmcneill
7065e56460 sdhc -> awinmmc 2014-02-26 00:12:21 +00:00
riastradh
98ff99631b Fix bits/bytes mixup in rnd_getmore.
Remove some needless casts and fix format directives while here.

Bit/byte mixup noticed by pooka.
2014-02-25 23:15:43 +00:00
pooka
ed107912d9 If the in6 domain was not attached, do not attempt to process IPv6 packets. 2014-02-25 22:42:06 +00:00
pooka
24b70d334d Schedule only those netisr's that have registered handlers. 2014-02-25 22:40:53 +00:00
matt
55478e5598 Only use FSR_WRITE on armv7 for now. 2014-02-25 22:18:09 +00:00
dsl
3a107b0ac4 Add support for saving the AVX-256 ymm registers during FPU context switches.
Add support for the forthcoming AVX-512 registers.
Code compiled with -mavx seems to work, but I've not tested context
  switches with live ymm registers.
There is a small cost on fork/exec (a larger area is copied/zerod),
  but I don't think the ymm registers are read/written unless they
  have been used.
The code use XSAVE on all cpus, I'm not brave enough to enable XSAVEOPT.
2014-02-25 22:16:52 +00:00
dsl
1bda540607 Add the XCR bits for snazzy upcoming features.
Define a mask for the fpu releated ones - only these wll be enabled.
The memory bound ones will need saving on every context switch.
2014-02-25 22:11:11 +00:00
matt
51c8615e4e Default to EXEC_ELF32 2014-02-25 21:29:12 +00:00
pooka
a2867970a4 emulate printflike properly to avoid fatal error on clang 2014-02-25 20:58:18 +00:00
rkujawa
c762c93fc5 s/mcp48x1dac/mcp48x1dac(4)/ 2014-02-25 20:16:29 +00:00
rkujawa
3ae9b5f5f8 Note the new mcp48x1dac driver. 2014-02-25 20:15:24 +00:00
rkujawa
21a43d7204 Add preliminary driver for Microchip MCP48x1 family of DACs.
Needs more testing and an appropriate API for such (non-audio) DACs. For now
one can set the output value using sysctl node. Also sysmon(4) will conveniently
report the voltage on Vout pin of the DAC. Note that this is not an actual
measured voltage, but merely calculated using equation from datasheet. Real
voltage might be different and depend on analog circuitry attached to the DAC.
2014-02-25 20:09:37 +00:00
skrll
f7ca730905 Define ARM11_COMPAT_MMU (for now) to keep inline with cpuconf.h changes 2014-02-25 19:37:30 +00:00
matt
eaf091d757 Fix thinko. 2014-02-25 19:20:09 +00:00
mrg
07ece4eabb import the -current GCC 4.5 sources as gcc.old in preparation for
upgrading the normal GCC to 4.8.

this tree has had ChangeLog entries removed, as well as all the
other components we delete, and "only" weighs in around 140MB now.
2014-02-25 18:38:34 +00:00