Commit Graph

61028 Commits

Author SHA1 Message Date
jmcneill 183112512a add amlogicrng, add commented-out genfb placeholder 2015-03-07 21:35:10 +00:00
jmcneill 5bf1fbe498 add hardware rng support 2015-03-07 21:34:25 +00:00
jmcneill ce41a129dd add SDIO and SDHC irqs 2015-03-07 21:33:12 +00:00
jmcneill a6c90bebf3 clk helpers for sdhc and rng 2015-03-07 21:32:47 +00:00
christos ebbed00d76 adjust to new trace_{enter,exit} signatures. 2015-03-07 18:54:57 +00:00
christos b3163bd39a adjust to new trace_{enter,exit} 2015-03-07 18:52:46 +00:00
christos 83807bfa20 Adjust to new trace_{enter,exit} signature. 2015-03-07 18:51:44 +00:00
christos cb193dfbea adjust to new trace_{enter,exit} and dtrace 2015-03-07 18:50:01 +00:00
christos 73994f9f9a add dtrace hooks 2015-03-07 18:41:40 +00:00
macallan 970f3079c2 comment out debug spam, add more filesystems 2015-03-07 15:39:57 +00:00
macallan 37d38769d8 only use the first 256MB for now until I figure out how to properly access
the rest
2015-03-07 15:38:32 +00:00
macallan 057c48b6cb count all interrupts, not just the ones we have handlers for 2015-03-07 15:37:46 +00:00
macallan 97f2a49be5 add memory controller registers 2015-03-07 15:36:16 +00:00
macallan cc7c5632da fix uart parameters, now speed setting actually works 2015-03-07 15:35:33 +00:00
mrg 820bac9951 remove vga@isa and pcdisplay@isa from i386 GENERIC, and create a new
LEGACY kernel that includes them instead.  now radeon@pci is able to
properly claim wsdisplay0 on i386 systems, and radeondrmkms has a good
chance of working.

this "fixes" PR#49290.
2015-03-07 07:28:37 +00:00
skrll d12136cf04 Add an RPI2_INSTALL 2015-03-06 22:29:06 +00:00
riastradh e6fc8fc2b1 Fix tabbing of drm lines. 2015-03-06 15:09:50 +00:00
nonaka 7941ecd32a RouterBOARD RB800 don't use u-boot. 2015-03-06 14:18:14 +00:00
christos 285ccf0c47 rename NV_DEBUG to NVRAM_DEBUG 2015-03-06 12:41:05 +00:00
riastradh 09e70b50a6 Fix commented nouveau in amd64/GENERIC. Add nouveau to amd64/ALL.
Remove NV_DEBUG from amd64/ALL -- it breaks nouveau, and I can't find
any use of it in src/sys outside arch/atari/dev/nvram.c, which surely
has no relevance to amd64.

(Nouveau has an internal NV_DEBUG(...) macro for debug messages.)
2015-03-06 02:55:11 +00:00
jmcneill b7fbc144bb initialize amlogic cpufreq sysctls 2015-03-05 23:44:30 +00:00
jmcneill d7a0c25861 CPU frequency scaling support, enough to bump my ODROID-C1 up to the
advertised 1.5GHz.
2015-03-05 23:43:53 +00:00
macallan 3b9ab10712 disable interrupts while processing them, reenable when we're done 2015-03-05 17:42:29 +00:00
skrll 0cb7d62382 Appease a KASSERT - will be remove when MULTIPROCESSOR RPI2 is fixed. 2015-03-05 14:27:25 +00:00
skrll ec9ad5f873 Spellos 2015-03-05 08:09:44 +00:00
jmcneill 65bc6e64e2 Support for passing mac address from u-boot to the kernel with the
awge0.mac-address cmdline option.
2015-03-04 23:52:54 +00:00
jmcneill d156eaba26 print "A5" instead of "A9" at attach time if running on a Cortex-A5 2015-03-04 23:18:21 +00:00
martin 79db564711 Handle EINVAL in the fault path and send SIGBUS on mmap'd access past EOF 2015-03-04 20:29:59 +00:00
mlelstv a5c8e347b5 Handle EINVAL in the fault path and send SIGBUS on mmap'd access past EOF.
From martin@
2015-03-04 19:56:24 +00:00
mlelstv e09a8fe332 amidisplaycc requires vcons 2015-03-04 19:10:20 +00:00
jmcneill f0628a3a2a IST_EDGE for eth 2015-03-04 18:40:06 +00:00
skrll 5b9b796bff Spin up the non-boot CPUs, but don't allow cpu_boot_secondary_processors
to see them for now.

RPI2 nows works well with only the boot cpu.
2015-03-04 17:02:17 +00:00
jmcneill aaff7bb5e1 ODROID-C1 onboard ethernet support. 2015-03-04 12:36:12 +00:00
palle fb95fff830 sun4v: revert some of the logic introduced in revision 1.378 - flushw is not necessary on sun4v (OpenBSD patches the flushw instruction to a nop instruction) - with these changes the kernel reaches cpu_boot_secondary_processors() when running in the Legion simulator (crashes due to missing handling of cpu_mondo_trap) 2015-03-04 11:32:31 +00:00
skrll e66946542b Handle EINVAL in the fault path and send SIGBUS on mmap'd access past EOF.
From martin@
2015-03-04 09:39:26 +00:00
knakahara 4118695e73 add a comment for pci_intr_handle_t. 2015-03-04 05:35:50 +00:00
jmcneill 202e0dad30 cache type 12 is "write-back", from matt 2015-03-03 23:42:47 +00:00
jmcneill f7487ce3ce fix build without VERBOSE_INIT_ARM 2015-03-03 23:20:04 +00:00
jmcneill df09e41367 cleanup, copy in boot args from uboot 2015-03-03 23:14:41 +00:00
jmcneill 0232d24f05 use irq instead of polling hack now that gic is fixed 2015-03-03 21:56:25 +00:00
jmcneill 55f355221e in armgic_establish_irq, make sure to write the new value to GICD_ICFGRn when setting irq type (IST_LEVEL/IST_EDGE) 2015-03-03 21:53:12 +00:00
martin c39c2a5c70 Handle EINVAL in the fault path and send SIGBUS on mmap'd access past EOF. 2015-03-03 20:36:31 +00:00
martin 2135edf023 Handle EINVAL in the fault path and send SIGBUS on mmap'd access past EOF 2015-03-03 13:23:48 +00:00
martin 2a9d1bb24d Put -fno-unwind-tables into CFLAGS instead of COPTS - the old version caused
DEFCOPTS not to be propagated into COPTS, which means no optimization
for the kernel - ooops!
2015-03-03 09:23:02 +00:00
nakayama c466086210 prom_printf converts "\n" to "\r\n" internally, so omit "\r". 2015-03-02 14:17:06 +00:00
nakayama 503edb5a9d PANICSTACK is a pointer itself, not a pointer to pointer. 2015-03-02 13:58:55 +00:00
martin 60e30960bb Handle EINVAL in the fault path, send SIGSEGV on mmap access past EOF. 2015-03-02 13:53:19 +00:00
nakayama b4280b5ff8 Use panic stack temporarily for calling prom_printf in a trap
handler.

It seems that openfirmware cannot handle over 4GB pointers, and
stack pointers may point to over 4GB since VA layout was rearranged
by rev 1.33 of vmparam.h.  Therefore, use panic stack to avoid
panicking in OF_write used by prom_printf.
2015-03-02 13:48:00 +00:00
martin 1384b20533 Handle EINVAL in the fault path and send SIGBUS for mmap acces past EOF. 2015-03-02 13:36:36 +00:00
jmcneill 2944c17539 sc_gic_lines is the total number of valid lines but pic_sources[] is sparse; when initializing mpsafe targets make sure to go all the way to the end (sc_pic.pic_maxsources) instead 2015-03-02 11:37:25 +00:00