Commit Graph

522 Commits

Author SHA1 Message Date
kiyohara
ac5d1b9f81 + Fix panic() in cardbus_mapreg_map(). powerpc's bus-space uses extent(9).
obs405 calls rbus_new_root_delegate() instead of rbus_new_root_share().
+ Remove TABs from TAB-only-lines.
2012-04-09 14:44:01 +00:00
matt
7940f97404 Add support for PMAP_MINIMALTLB. 2012-03-29 15:49:08 +00:00
joerg
99c3eea80c P1003_1B_SEMAPHORE is no longer optional. 2012-03-10 21:51:48 +00:00
tls
7b0b7dedd9 Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code
   to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
   source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
   avoid expensive operations on disabled entropy sources; make the
   rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
   have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
   system events, and skew between clocks, with a sample implementation
   for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files).  Tested with release
builds on amd64 and evbarm and live testing on amd64.
2012-02-02 19:42:57 +00:00
matt
5985b5151e Add tmpfs 2012-02-01 21:47:17 +00:00
matt
ceea929f77 Make sure the walnut system_tail_extra is very last thing. 2012-02-01 21:46:02 +00:00
he
c994805f0b Bump SYMTAB_SPACE. 2012-02-01 10:04:55 +00:00
para
89c9828deb converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch

releng@ acknowledged
2012-01-27 18:52:47 +00:00
matt
cd209751f3 Don't make a netbsd-sd0a 2012-01-20 01:33:05 +00:00
matt
fed60237a0 Add cfi/nor 2012-01-19 23:37:23 +00:00
kiyohara
b8137ad421 Establish the cascading uic[12] by calling pic_finish_setup(). 2012-01-10 12:17:20 +00:00
dholland
7bbf82b772 WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
2011-12-18 05:49:22 +00:00
kiyohara
b92cd83da0 Call bus_space_mallocok earlier. Moreover, don't bus_space_unmap call. 2011-12-12 11:31:46 +00:00
kiyohara
d55fa69c47 Fix arguments for initppc(). 2011-12-12 11:28:04 +00:00
kiyohara
21ddec5fd3 Fix hangs-up. Remove "wrteei 1" in board's cpu_configure(). Interrupt
is enabled in powerpc-layer.
2011-12-12 11:23:57 +00:00
he
f0e3262471 Bump SYMTAB_SPACE. 2011-12-08 01:08:18 +00:00
tls
8a012bd83f The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself.  Move it to std.  This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports.  Thanks to Havard Eidnes for
pointing them out.
2011-11-22 21:25:05 +00:00
bouyer
a47e2eb758 Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
2011-08-30 12:39:49 +00:00
matt
5f7da46ddf Need pci_machdep_common.c now 2011-08-19 02:18:26 +00:00
he
469cff01d3 Bump SYMTAB_SPACE so that the contents fits again. 2011-08-03 22:19:31 +00:00
matt
56a76c474b Change device name of pq3cfi to cfi.
Add cfi to P2020DS
Add ddrc
2011-08-02 00:27:42 +00:00
matt
2f23bdb126 Fix tpyo. 2011-08-02 00:25:38 +00:00
matt
b475d67404 Back out commit. 2011-07-28 15:54:49 +00:00
matt
0062f2f291 Bring forward from matt-nb5-mips64. Support for Ralink RT3883 MIPS 74K SoC
from CradlePoint Technology.
2011-07-28 15:38:48 +00:00
matt
bed04ba9a8 Add support for MEMSIZE to limit the amount of memory detected. 2011-07-25 05:46:12 +00:00
matt
1db5b1916f Add MEMSIZE defparam 2011-07-25 05:45:08 +00:00
jakllsch
4ada5b7e5e Enable or note aubtfwl(4) wherever ubt(4) is enabled or noted. 2011-07-23 21:12:57 +00:00
matt
b5e6df8ad4 Suppress a GCC 4.5 warning. 2011-07-20 13:21:12 +00:00
matt
22e9efb140 Flash is only 16MB in size. 2011-07-20 13:20:26 +00:00
matt
99897c9ffb Add no config netbsd-sd0a 2011-07-19 19:57:26 +00:00
matt
20306c0f96 Add nor support
Add netbsd-sd0a
2011-07-19 19:57:02 +00:00
dyoung
d181d57cd1 Enable new-style <sys/bus.h> on several PowerPC ports supporting PCI
buses.  Make non-inline implementations of bus_space(9) and bus_dma(9)
routines and move them to appropriate .c files.

This may leave amigappc in a bad state, sorry.  Fortunately, it will be
easy to repair by imitating the bus.h -> bus_{defs,funcs}.h split in
some other PowerPC port.
2011-07-17 23:23:53 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
matt
2a26aa316e Add netbsd-sd0a 2011-07-16 22:16:59 +00:00
matt
bfb796370f Remove dead devices (replaced by pq3cfi). 2011-07-16 21:58:26 +00:00
matt
6d1159d9c1 Fix off-by-one. 2011-07-16 21:36:18 +00:00
cliff
fb19d2b789 Add support for CFI NOR, using MPC8536DS as initial example.
Only AMD/Fujitsu command set is suported so far.
This is still work in progress, be advised.
2011-07-15 19:19:55 +00:00
dyoung
fea15f47f1 #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 20:36:42 +00:00
dyoung
cf10107d5d #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 18:51:52 +00:00
dyoung
59adf08e17 Per discussion at
<http://mail-index.netbsd.org/tech-kern/2010/04/02/msg007941.html>,
divide each machine's bus.h into bus_defs.h (constants & data types)
and bus_funcs.h (macro implementations of bus_space(9) routines and MD
prototypes).

Note that some bus_space(9) routines' implementation will move to .c
files from inline subroutines or macros in .h files.

I've only made the split for machine architectures where there is PCI.
All of the non-PCI-having architectures will require a similar split.

These #include files are not referenced by any (committed) Makefiles or
header files, yet.  Changes to Makefiles, to <sys/bus.h>, and to some
more machine-dependent files will dribble in before I throw the switch.
2011-07-01 17:09:58 +00:00
matt
0ea8aedfae Fix some array bounds errors found by gcc 4.5 2011-07-01 07:44:33 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
matt
4a40b01453 Modify mapiodev to take a third argument indicating whether the space
should be prefetchable (true) or not (false).
2011-06-30 00:52:55 +00:00
matt
b042682f2f Add some config files for the P2020. 2011-06-29 06:23:36 +00:00
matt
3162fd7666 Some initial MULTIPROCESSOR spin code. Doesn't work yet. 2011-06-29 05:53:05 +00:00
matt
bd38a7a8c6 Wildcard cpu* since the P2020 is dual core. 2011-06-29 05:51:56 +00:00
matt
c4e25001ef Move some stuff from evbppc's Makefile.inc to powerpc's.
This avoids redundant objcopy's
2011-06-25 02:26:53 +00:00
matt
fe86ea0fb1 Make powerpc work on BookE. At this time we only support DOZE (lightest
form of power-saving).  By default, power-saving is disabled but can be
enabled in /etc/sysctl.conf by setting machdep.powersave=1
2011-06-25 00:07:10 +00:00
matt
b1e55671fe Use intr_init since we have it. 2011-06-24 23:54:37 +00:00
matt
438a427c90 Default PAX_ASLR to off. 2011-06-24 21:30:36 +00:00