thorpej
fb44a8574b
Remove the devprop API and switch everthing over to the new proplib. Add
...
a new device_properties() accessor for device_t that returns the device's
property dictionary.
2006-05-05 18:04:41 +00:00
cherry
dc0898b362
closes kern/32359
2006-04-01 15:44:59 +00:00
perry
fbae48b901
Change "inline" back to "__inline" in .h files -- C99 is still too
...
new, and some apps compile things in C89 mode. C89 keywords stay.
As per core@.
2006-02-16 20:17:12 +00:00
dsl
498e318d85
This file only needs to #include sys/bswap.h
2006-01-31 07:51:41 +00:00
christos
3ffa241fcd
Add a STRONG_ALIAS macro
2006-01-20 22:02:40 +00:00
hannken
3bb1c71f4a
Fix a typo introduced in revision 1.8:
...
- #define splraiseipl(x) splraise(x)
+ #define splraiseipl(x) splraise(imask[x])
Approved by: YAMAMOTO Takashi <yamt@netbsd.org>
2005-12-31 14:07:32 +00:00
perry
2d542ba1f8
inline -> __inline
2005-12-28 19:09:29 +00:00
ross
0d8bcff6f5
Fix typo inside PPC_OEA64
2005-12-27 02:19:27 +00:00
perry
50a256a3a0
__asm__ -> __asm
...
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
perry
2d65de2479
bare asm -> __asm
2005-12-24 22:45:33 +00:00
perry
5f1c88d70d
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
2005-12-24 20:06:46 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
yamt
ba38016298
implement splraiseipl() for the following ports.
...
evbppc, evbmips, evbsh3, hp700, mac68k, vax, x68k.
2005-11-27 14:01:45 +00:00
matt
9b978162a2
Add MPC5200 SVR definition
2005-11-15 18:26:49 +00:00
kiyohara
db37c957e1
Support the 'PCMCIA adapter BOX' for OpenBlockS266.
2005-09-04 15:23:55 +00:00
christos
f1461c7e8a
No point in declaring syscall_intern and syscall in a zillion places.
2005-07-10 00:45:52 +00:00
christos
4fdef695f7
the siginfo trap codes are mi.
2005-06-25 08:29:15 +00:00
christos
e6c16a46dc
move ppc commpage stuff here.
2005-06-25 06:29:49 +00:00
kleink
4a6a03b162
Include <sys/cdefs.h> for __signed; related to lib/30072.
2005-05-25 20:58:00 +00:00
kleink
b2cb7fcd8a
Push back the descriptions of NaN formats, and descriptions of the
...
distinction between signalling NaNs and quiet NaNs back into the
machine-dependent headers; treat the implementation of __nanf in the
same spirit.
IEEE 754 leaves the distinction between signalling NaNs and quiet NANs
to the implementation, and unlike our headers used to suggest they're
not identical in the interpretation of the fraction's MSb; in due
course, make those of hppa, mips, sh3, and sh5 reflect reality.
2005-04-15 22:39:10 +00:00
matt
a6db24a485
Add a dm_maxsegsz public member to bus_dmamap_t. This allows a user of the API
...
to select the maximum segment size for each bus_dmamap_load (up to the maxsegsz
supplied to bus_dmamap_create). dm_maxsegsz is reset to the value supplied to
bus_dmamap_create when the dmamap is unloaded.
2005-03-09 19:04:43 +00:00
matt
413f4d4de6
Don't clear PCB_FPU/PCB_ALTIVEC when releasing the FPU/AltiVec unit. Add
...
new flags to indicate whether the PCB currently owns the FPU/AltiVec unit.
2005-02-22 02:59:46 +00:00
briggs
6451b0332b
Update to a kcore_hdr_t that is useful for OEA-style CPUs. Adding
...
support for Book-E and other CPUs will require updating this structure
appropriately.
Contributed by Wasabi Systems, Inc.
2005-02-17 02:21:28 +00:00
briggs
7e9ffb8e19
Install spr.h
2005-02-17 02:14:23 +00:00
briggs
d6e37f352e
Keep track of the CPU's current speed (in kHz) in the cpu info structure,
...
if we can get it. May want to expand this in the future to include min
and max speeds for systems where we can adjust the speed.
2005-02-03 14:47:09 +00:00
simonb
dc5fd1a390
Use lis@h/ori@l instead of lis@ha/addi@l since we may use r0 and addi
...
is one of those funny instructions that treats r0 == 0 when used as the
first arg.
Fixes problems on ibm4xx. Ok'd by matt@.
2005-01-23 00:23:57 +00:00
shige
9704ef243d
Add consinit() and md_consinit funcptr to ibm4xx/machdep.c.
...
Rename consinit() to obs405_consinit() at evbppc/obs405/consinit.c.
Set md_consinit to obs405_consinit() at initppc().
Consinit fuction calls a function stored at md_consinit pointer.
2005-01-21 19:24:11 +00:00
matt
9b69be93b4
Add extended BAT block size definitions.
2005-01-21 00:46:23 +00:00
matt
f75acb0839
Add some HID1 definitions and HID0_XBSEN for 7455+ processors.
2005-01-21 00:45:48 +00:00
matt
a59dee22f1
Correct BHTCLR/XAEN definitions.
2005-01-21 00:09:30 +00:00
matt
dcecffc61f
Add MPC7448 and change MPC745x_P macro to deal with it.
2005-01-21 00:04:54 +00:00
matt
3f8b260589
Add MPC7447A (0x8003)
2005-01-20 21:26:49 +00:00
matt
2201849e4a
Split the hw-dependent powermanglement into its own function and make
...
Idle call that. Add a ci_idlespin function pointer to cpu_info.
Update INIT_CPUINFO to initialize it to a naked 'blr' instruction.
In oea/cpu_subr.c, add cpu_idlespin and make ci_idlespin point to it.
2005-01-19 22:22:56 +00:00
chs
40345beaa3
ibm4xx/pte.h is no more.
2005-01-19 14:46:26 +00:00
shige
95b240720a
Arrange some machine-dependent code.
...
- ibm40x_machdep.c: ibm40x specific
. ibm40x_memsize_init
. mem_regions
. other functions are moved to machdep.c or ibm4xx_machdep.c.
- ibm4xx_machdep.c: ibm4xx specific
. ibm4xx_init (moved from ibm40x_machdep.c)
. ibm4xx_install_extint (moved from ibm40x_machdep.c)
. ibm4xx_cpu_startup (moved from ibm40x_machdep.c:ibm4xx_startup)
. ibm4xx_dumpsys
2005-01-18 17:11:25 +00:00
shige
ce880a5946
Remove openbios dependent code from ibm4xx/ibm40x dependent module.
2005-01-17 17:19:36 +00:00
shige
0f2e586866
Add openbios-board related modules.
...
- openbios.c
getting board data memory image from openbios.
setting all board data to board properties database.
- board_prop.c
initialize board properties database.
(set/get board properties [macros in ibm4xx/cpu.h])
2005-01-17 16:23:27 +00:00
chs
bfbf7ea9b1
implement pmap_wired_count(). fix some places we would forget to splx().
...
move the parts of pte.h that were used into pmap.c (since they were really
pmap-internal details) and delete ibm4xx/pte.h. other misc cleanup.
2005-01-16 21:35:58 +00:00
shige
49c3c14437
Add externs:
...
- md_device_register (func ptr)
- ibm4xx_device_register (func)
2005-01-13 17:16:33 +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
shige
eb555844f1
Substitute PPC405_ with PPC_IBM405_.
2004-12-17 16:23:57 +00:00
matt
42e9e00c87
Make MSIZE and MCLSHIFT overrideable in <machine/param.h>
2004-12-09 00:37:54 +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
shige
4b61add729
Add header file for IBM405XX(AMCC405XX) Device Control Registers.
2004-12-01 17:55:33 +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
simonb
ac20296fee
Remove the unused MKTTE macro.
2004-08-31 01:06:12 +00:00
tacha
08adc832cf
remove obsolete "pci_enumerate_bus" definition.
2004-08-02 18:07:40 +00:00
manu
f6a07159af
typo
2004-07-15 20:21:55 +00:00