Commit Graph

1243 Commits

Author SHA1 Message Date
shige
49c3c14437 Add externs:
- md_device_register (func ptr)
	- ibm4xx_device_register (func)
2005-01-13 17:16:33 +00:00
shige
2e87452aa9 Remove device_register, cpu_rootconf functions.
These functions are moved to ibm4xx/autoconf.c.
2005-01-13 17:14:36 +00:00
shige
79354dbad0 Add device_register function for all ibm4xx machine. 2005-01-13 17:12:28 +00:00
shige
786539f27b Add device_register machine-independent-glue. 2005-01-13 17:11:14 +00:00
chs
67402a485f enable powersave mode on 7450 and family.
also, the HID0_DOZE bit in this context doesn't mean "doze",
it's actually "enable extra BATs".  add an alias for this bit
and use it as appropriate.
2005-01-11 02:09:54 +00:00
matt
b046d5ecf9 Now that countless UVM bugs have been fixed, enable "topdown" memory
allocation by default.
2005-01-10 05:42:09 +00:00
briggs
4137e66929 Allow MSR[POW] off for power saving on 604-era CPUs. From Tim Kelly.
XXX -- needs benchmarking
2005-01-07 21:31:04 +00:00
briggs
35a39caef5 Don't attempt to probe the cache with l2cr on 604ev. From Tim Kelly. 2005-01-07 20:41:35 +00:00
chs
ddc6ab738a drop the big lock in upcallret() like all the other platforms do. 2005-01-03 00:03:25 +00:00
shige
d2306c8cf3 Add functions:
- com_opb_cnattach
	- com_opb_device_register
2004-12-24 14:55:50 +00:00
shige
eb555844f1 Substitute PPC405_ with PPC_IBM405_. 2004-12-17 16:23:57 +00:00
matt
eb30eca3e3 Add -Wa,-maltivec so that AltiVec instuctions will be recognized. 2004-12-09 22:57:12 +00:00
matt
42e9e00c87 Make MSIZE and MCLSHIFT overrideable in <machine/param.h> 2004-12-09 00:37:54 +00:00
briggs
710cfd7aef Add MPC7400 to the list of CPUs for which we try to measure the speed.
Noticed missing by Tim Kelly.
2004-12-08 03:07:03 +00:00
briggs
52af8374ec Minor (old) patch from me to correct CPU ID of 604e vs. 604ev.
Tested by Tim Kelly.
Also patched from Tim to
 - Delay longer for second CPU spinup.
 - Only attempt to print CPU speed and cache configuration on certain
   CPU types.
2004-12-06 04:15:03 +00:00
matt
080d581a20 Make sure to enable interrupts before lower IPL so we don't block any
interrupts (IPI) we shouldn't.
2004-12-04 05:56:28 +00:00
shige
4b61add729 Add header file for IBM405XX(AMCC405XX) Device Control Registers. 2004-12-01 17:55:33 +00:00
thorpej
7a60e77293 bus_dmamap_load_mbuf(): Skip zero-length mbufs.
kern/24811
2004-11-28 17:34:45 +00:00
matt
e27c3887b6 If setfault() returns nonzero (ie, we trapped), make sure to unsetusr. 2004-11-18 22:56:32 +00:00
matt
589ef8f06a Make sure to do setenv/unsetenv in pairs. This prevents panics in
DIAGNOSTIC kernel when crossing segment boundaries.
2004-11-18 21:09:37 +00:00
thorpej
e9818f5b5e When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
2004-10-30 18:08:34 +00:00
thorpej
dc2f2fbe74 Centralize the declaration of booted_device and booted_partition. 2004-10-23 17:07:37 +00:00
yamt
d2fe4b34bb move some per-cpu data definitions to MI place so that they can be modified
without touching all ports.  discussed on tech-kern@.
2004-09-22 11:32:02 +00:00
scw
ac3ac35ecb MPC8xx DC_CST is SPR 0x238, not 0x230.
Reported by Jared Momose in private email.
2004-09-20 11:29:19 +00:00
skrll
f7155e40f6 There's no need to pass a proc value when using UIO_SYSSPACE with
vn_rdwr(9) and uiomove(9).

OK'd by Jason Thorpe
2004-09-17 14:11:20 +00:00
scw
17d7b87515 It helps to call fpu_sqrt() when dealing with the frsqrte instruction. 2004-09-15 07:04:21 +00:00
scw
db255697d0 Apply suggested changes from PR port-powerpc/24830 arch/powerpc/ibm4xx:
Bad register constraints in copyin(), copyout(), copyinstr(), copyoutstr(),
and delay().
2004-09-02 08:22:58 +00:00
simonb
ac20296fee Remove the unused MKTTE macro. 2004-08-31 01:06:12 +00:00
drochner
46289e1fef Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.
2004-08-30 15:05:15 +00:00
thorpej
6c08646cb8 Garbage-collect pagemove(); nothing use it anymore (YAY!!!) 2004-08-28 22:12:40 +00:00
matt
e4726fc65d Add pmap counters for reclaimed pvos and for the times a pvo could not be
obtained.
Switch to EVCNT_ATTACH_STATIC*
In DEBUG/DIAGNOSTIC, decrement/increment pmap_pvo_enter_depth around pool
calls since they could possibly cause a recursion back into pmap_pvo_enter.
2004-08-24 21:31:49 +00:00
nathanw
05e0a219ae Don't prohibit DDB and KGDB together. 2004-08-23 20:55:03 +00:00
chs
80c0e76172 implement pmap_pvo_reclaim(), which steals an existing non-wired pvo entry
for reuse, and use this in pmap_pvo_enter() when we can't allocate a new one.
2004-08-19 15:31:57 +00:00
scw
ad271535d4 In _bus_dmamap_load_buffer(), honour the maximum segment size specified
when the DMA map was created.

The previous behaviour honoured the maximum segment size only when
coalescing adjacent segments.
2004-08-17 08:35:43 +00:00
aymeric
990d2462b0 add a missing break in the EXC_MCHK|EXC_USER case in trap() 2004-08-16 10:16:16 +00:00
aymeric
e2de6e57a9 fix typo in comment 2004-08-16 10:12:40 +00:00
tacha
08adc832cf remove obsolete "pci_enumerate_bus" definition. 2004-08-02 18:07:40 +00:00
uebayasi
33d0780d08 Fix an apparent syntax error. 2004-08-02 13:30:08 +00:00
simonb
ed2e469e3d Remove some debug printf()s.
Reorder an evcnt_attach_static().
2004-07-31 13:28:53 +00:00
manu
66fc5fb621 Empty shell for Darwin audit API 2004-07-28 22:24:06 +00:00
manu
57ae178c88 Added a simple bigcopy, from Srinivasa Kanduru 2004-07-25 09:21:48 +00:00
manu
f6a07159af typo 2004-07-15 20:21:55 +00:00
manu
1e147c565c Remove an outdated comment. 2004-07-15 11:51:56 +00:00
manu
51267dac7d Correctly set MSR static user bits on thread creation, as the calling
process might not have done it. This fixes crashes on thread creation.
2004-07-14 19:58:51 +00:00
matt
635306e7ba Clear PSL_SE on a scheduler activation upcall. 2004-07-09 22:59:17 +00:00
matt
4f6490d718 Add some comments, clean things up so routines can be called from the
idle loop.
2004-07-09 22:00:46 +00:00
manu
99b82f59fb Fix semantic problems with commpage functions, by Wolfgang Solfrank 2004-07-08 13:24:39 +00:00
manu
0d64053852 I copy/pasted the copyright notice from another file but I forgot to
change the name of the contributor: Wasabi Systems did not contribute
that file.
2004-07-08 07:36:25 +00:00
christos
f68663bc91 kill duplicate code. 2004-07-07 22:02:12 +00:00
manu
9ff70d0082 Assembly versions of commpage functions for Powerpc, by Peter Grehan.
bigcopy is still missing
gettimeofday is implemented as a system call, whereas on Darwin, it reads
the data from the commpage (the kernel updates it).
2004-07-06 14:11:49 +00:00