cognet
f6962ae479
Bring in a version of float.h more correct for softfloat.
2005-03-20 00:34:24 +00:00
cognet
d8999c1cc6
Bring back some of the cleanups and fixes jmg did in the TS7200 port.
2005-03-17 23:01:15 +00:00
cognet
6734525d63
Use PCIR_BARS instead of PCIR_MAPS.
2005-03-17 00:43:57 +00:00
cognet
860ca4946f
Introduce a new function, pmap_wb_page(), which check all userland mappings for
...
a given page and, if the pmap is the current pmap, write back the associated
cache line.
Use pmap_wb_page in pmap_qenter() instead of inconditionally
write back/invalidating the data cache.
2005-03-16 23:56:29 +00:00
jmg
0ef117a450
MFp4: add in making fiq's work by coping to the correct page incase we have
...
the vectors relocated high..
2005-03-16 07:56:21 +00:00
jmg
40dbd0165c
fix up white space, I had a simple comment fix, but I might as well do the
...
rest while I'm here...
2005-03-16 07:53:02 +00:00
jmg
fdf23f69c0
make bus_dmamem_alloc always allocate a new map like we are suppose to..
...
This was found when I tried to run the usb code on my arm board...
Approved by: cognet
2005-03-16 00:35:59 +00:00
jmg
c3d17f2e03
fix arm wrt to busdma...
...
also wrap the two macros that have bare if's w/ do {} while(0) so that
my epe driver doesn't get a warning about braces around confused else...
2005-03-15 14:57:30 +00:00
scottl
7be505a035
Refactor the bus_dma header files so that the interface is described in
...
sys/bus_dma.h instead of being copied in every single arch. This slightly
reorders a flag that was specific to AXP and thus changes the ABI there.
The interface still relies on bus_space definitions found in <machine/bus.h>
so it cannot be included on its own yet, but that will be fixed at a later
date. Add an MD <machine/bus_dma.h> for ever arch for consistency and to
allow for future MD augmentation of the API. sparc64 makes heavy use of
this right now due to its different bus_dma implemenation.
2005-03-14 16:46:28 +00:00
mux
b5abf2d5ef
Fixup KTR traces.
2005-03-08 14:49:05 +00:00
mux
7cf99970a7
Use __func__ in the KTR_BUSDMA traces. This avoids copy and paste
...
errors like in the bus_dmamap_load_mbuf_sg() case where we were wrongly
displaying the function name as bus_dmamap_load_mbuf.
2005-03-08 11:18:14 +00:00
mux
7c1c0975e6
Fix typo.
2005-03-07 00:24:52 +00:00
cognet
1bc82499df
Use [ldr|str]t instead of [ldr|str] when accessing ARM_TP_ADDRESS.
2005-03-06 21:12:03 +00:00
cognet
5e08d267b5
Make sure ARM_TP_ADDRESS is accessible right now by calling pmap_fault_fixup,
...
as we can't rely on a trap happening, as it is done normally.
While I'm there, uncomment the call to cpu_dcache_wbinv_range() in
pmap_kenter_internal, as we don't call cpu_dcache_wbinv_all() there anymore.
2005-03-06 21:10:31 +00:00
cognet
d058ee9a99
Unlike NetBSD's bcopy(), our bcopy allows the two strings to overlap, even in
...
kernel. So bring in the userland version, instead of just calling memcpy.
2005-03-06 13:11:32 +00:00
cognet
e5ec1f72f1
Handle endianness correctly.
...
Spotted out by: jmg
2005-03-03 23:27:09 +00:00
joerg
c85a3e95f7
netchild's mega-patch to isolate compiler dependencies into a central
...
place.
This moves the dependency on GCC's and other compiler's features into
the central sys/cdefs.h file, while the individual source files can
then refer to #ifdef __COMPILER_FEATURE_FOO where they by now used to
refer to #if __GNUC__ > 3.1415 && __BARC__ <= 42.
By now, GCC and ICC (the Intel compiler) have been actively tested on
IA32 platforms by netchild. Extension to other compilers is supposed
to be possible, of course.
Submitted by: netchild
Reviewed by: various developers on arch@, some time ago
2005-03-02 21:33:29 +00:00
cognet
42a8b3a567
In cpu_throw(), correctly calculate td->td_md.md_tp.
...
In cpu_switch(), set the DACR even if we're switching to a kernel thread.
2005-03-01 20:51:37 +00:00
cognet
1491adb10b
Introduce realmem.
2005-03-01 20:12:52 +00:00
cognet
43586d701a
Instead of using sysarch() to store-retrieve the tp, add a magic address,
...
ARM_TP_ADDRESS, where the tp will be stored. On CPUs that support it, a cache
line will be allocated and locked for this address, so that it will never go
to RAM. On CPUs that does not, a page is allocated for it (it will be a bit
slower, and is wrong for SMP, but should be fine for UP).
The tp is still stored in the mdthread struct, and at each context switch,
ARM_TP_ADDRESS gets updated.
Suggested by: davidxu
2005-02-26 18:59:01 +00:00
cognet
ea8a18c379
Add the field in the md part of the struct thread required by ARM_[GET|SET]_TP.
2005-02-26 00:02:14 +00:00
cognet
3aab487108
Implement two new sysarch for arm, ARM_GET_TP and ARM_SET_TP, to work around
...
the lack of tls on arm.
2005-02-25 22:56:16 +00:00
cognet
5b6d27e25b
Make sure casuptr() reset pcb->pcb_onfault when returning.
2005-02-25 22:54:56 +00:00
cognet
e3c78fa692
MFp4: get the code that set the pc correctly to work, remove a few IQ31244
...
specific mappings from locore.S, re-organize iq31244_machdep.c to work with
the new locore.S
Spotted out by: jmg
2005-02-20 21:34:59 +00:00
cognet
2b4c5432b2
Removing the #endif as well sounds like a good idea.
2005-02-20 01:26:01 +00:00
cognet
66e4db6966
In cpufunc_control, uncomment the code responsible for returning the old
...
state of the control register.
2005-02-20 01:24:46 +00:00
ru
6cc6926066
Use a common multi-inclusion protection, and add such a
...
protection to alpha/include/exec.h.
2005-02-19 21:16:48 +00:00
cognet
eebf9afbba
Support high vectors for arm9.
...
Obtained from: NetBSD
2005-02-18 17:29:12 +00:00
cognet
19a07769b7
Define NIRQ to 64 for CPU_ARM9, because Cirrus Logic EP93XX cores provides
...
64 irqs.
This should be re-thought later.
2005-02-13 18:26:31 +00:00
cognet
60d70ae863
Remove unused prototype.
2005-02-13 18:20:39 +00:00
cognet
e8d555022d
Remove redondant includes.
2005-02-13 18:05:36 +00:00
cognet
8466ce70d6
Don't prototype pmap_kenter().
2005-02-13 17:18:20 +00:00
jmg
e9d4e6750b
move pmap.h after vm.h include... some of the headers from pmap.h depend
...
upon vm.h
2005-02-09 00:10:17 +00:00
njl
2958530007
Finish the job of sorting all includes and fix the build by including
...
malloc.h before proc.h on sparc64. Noticed by das@
Compiled on: alpha, amd64, i386, pc98, sparc64
2005-02-06 01:55:08 +00:00
njl
cd2bcf063b
Sort includes a little so that bus.h comes before cpu.h (for device_t).
2005-02-04 06:58:09 +00:00
njl
54a88fdbee
Add an implementation of cpu_est_clockrate(9). This function estimates the
...
current clock frequency for the given CPU id in units of Hz.
2005-02-04 05:32:56 +00:00
njl
2579b2e0bf
Sort functions.
2005-02-01 06:36:27 +00:00
cognet
5638709391
Make sure we can boot both with and without MMU enabled.
2005-01-23 22:08:31 +00:00
cognet
fe5f83713c
Define bus_dmamap_load_buffer before bus_dmamap_load to make gcc happy.
2005-01-23 22:07:33 +00:00
cognet
37230f7c69
Fix compile for !KTR.
2005-01-23 21:39:23 +00:00
cognet
28e246b289
Remove references to non-existing symbols DO_corb and got_mmu.
...
While I'm there, remove dead code.
2005-01-20 22:23:26 +00:00
cognet
2a66290389
Fix compile for __ARMEB__.
2005-01-19 16:22:20 +00:00
cognet
5608e326b2
MFpowerpc: Work around the problem of returning a 32 bits value from
...
__syscall() on a 32 bits big-endian arch.
Spotted out by: grehan
2005-01-19 00:37:03 +00:00
cognet
ab7ed627f8
Start to support the big endian case as well.
2005-01-18 15:51:50 +00:00
cognet
5dcea2459e
Add a new sysctl, hw.sevenseg.freq, to control the update frequency.
2005-01-16 13:18:52 +00:00
cognet
3f738b3942
Erm, don't forget to store the mbuf in the dmamap in bus_dmamap_load_mbuf_sg(),
...
so that bus_dmamap_sync() knows what to invalidate. This makes em(4) work again.
While I'm there, remove the unused "first" variable.
2005-01-16 13:15:16 +00:00
cognet
7c9c98e639
Add support for KTR_BUSDMA.
2005-01-15 19:42:28 +00:00
cognet
897fdcefd3
Add the prototype for bus_dmamap_load_mbuf_sg().
...
Spotted out by: scottl
2005-01-15 19:31:08 +00:00
cognet
072c519386
MFi386: add bus_dmamap_load_mbuf_sg().
2005-01-15 19:07:23 +00:00
cognet
5435311167
Add the 7 seg display.
2005-01-15 18:55:40 +00:00