cognet
13929c476a
Convert the last offender, the SA1110 port, to ARM32_NEW_VM_LAYOUT, and
...
completely nuke the !ARM32_NEW_VM_LAYOUT case.
2006-06-06 21:06:57 +00:00
cognet
5de6166e83
Remove a bogus, useless, "i++".
2006-06-06 20:47:59 +00:00
alc
0370c1b8e9
Add partial pmap locking.
...
Tested by: cognet@
2006-06-06 17:27:53 +00:00
alc
361dd71e9d
Add partial pmap locking.
...
Eliminate the unused allpmaps list.
Tested by: cognet@
2006-06-06 04:32:20 +00:00
cognet
04175402f4
Make VERBOSE_INIT_ARM compile by fixing various printf formats, and add it
...
as an option.
Submitted by: Max N. Boyarov <m.boyarov at bsd dot by>
2006-06-06 01:14:12 +00:00
cognet
9a1fae8510
vm_page_alloc_contig() can sleep, so don't even think about using it
...
in the M_NOWAIT case.
2006-06-05 23:42:47 +00:00
alc
ff4adb11fe
Introduce the function pmap_enter_object(). It maps a sequence of resident
...
pages from the same object. Use it in vm_map_pmap_enter() to reduce the
locking overhead of premapping objects.
Reviewed by: tegge@
2006-06-05 20:35:27 +00:00
cognet
df0505f188
Don't #error if no CPU is defined but we're not compiling the kernel.
2006-06-02 09:39:06 +00:00
cognet
55e41f7b78
Don't enable the FIQ in enable_interrupts() if F32_bit is not specified.
...
This has been committed by mistake.
Reported by: ssouhlal
2006-06-01 16:17:44 +00:00
alc
987bc104a2
Introduce pmap_enter_locked() and use it to reimplement pmap_enter_quick().
...
Tested by: cognet@
2006-06-01 01:31:07 +00:00
cognet
dab340c4af
Avoid a LOR by unlocking the vm_page_queue_mtx before calling uma_zalloc,
...
and freeing the allocated memory if another thread already did the same.
2006-05-31 15:52:11 +00:00
cognet
25b7dd01d0
If our buffer is not aligned on the cache line size, write back/invalidate
...
the first and last cache line in PREREAD, and just invalidate the cache
lines in POSTREAD, instead of write-back/invalidating in POSTREAD, which
could lead to stale data overriding what has been transfered by DMA.
2006-05-31 15:50:33 +00:00
cognet
22b23b4b2d
Ooops arm10 is armv5, not armv4.
...
Submitted by: kevlo
2006-05-31 13:06:08 +00:00
cognet
d766c10a1c
Include machine/cpuconf.h in pmap.h in order to get ARM_NMMUS defined,
...
to appease -Wundef.
2006-05-31 11:57:37 +00:00
cognet
9507be8d56
Protect the mapping used for pmap_copy_page/pmap_zero_page with a
...
mutex.
2006-05-30 23:50:45 +00:00
cognet
eb54945e83
To avoid problems, invalidate the data cache and disable the MMU once
...
we're done uncompressing the kernel.
2006-05-30 21:13:47 +00:00
cognet
032e8ffcc2
In pmap_is_prefaultable(), assert that the pte isn't NULL if
...
pmap_get_pde_pte() returns TRUE.
Suggested by: ssouhlal
2006-05-30 16:55:38 +00:00
cognet
13f50bf79a
The Assabet has 32MB of RAM, not 16.
...
Submitted by: kevlo
2006-05-30 15:47:55 +00:00
benno
b96008e410
In pmap_mapdev we correctly round the address off to the nearest page
...
boundary, but we must also add the offset back on to the va we return.
2006-05-30 14:21:09 +00:00
cognet
6449092f51
Uncomment the call to cpu_idcache_wbinv_all() after the MMU has been
...
enabled. It has been commented out for a reason I forgot but I suspect
does not apply anymore.
Technically speaking it's not required to do it, has the data and the
instruction cache have been disabled in _start(). However, it may change
in the future, so I don't want to rely on this behavior.
Submitted by: kevlo
2006-05-30 11:51:58 +00:00
cognet
4fa540e2fb
Nuke sa11x0_attach_args. It's a NetBSDIsm, and we have no use for it.
...
Submitted by: kevlo
2006-05-29 19:32:32 +00:00
cognet
cebb2624f1
Remove any reference to enable_mmu(), it's been gone for a long time.
...
Submitted by: kevlo
2006-05-26 01:41:47 +00:00
cognet
a1e9e6f052
Use pmap_devmap_bootstrap(), instead of mapping the SACOM1 registers
...
with pmap_map_entry.
More use of macros instead of hardcoding the addr.
Submitted by: kevlo
2006-05-23 12:14:14 +00:00
cognet
671ec01c10
Use macros instead of hardcoding the address for SACOM1. Also don't
...
pretend we're working with SACOM3, as we're really mapping SACOM1.
Submitted by: kevlo
2006-05-22 23:25:34 +00:00
cognet
e748a32ffa
We have an implementation of generic_bs_rr_1, so use it, as some drivers use
...
it.
Submitted by: kevlo
2006-05-19 11:27:02 +00:00
cognet
6dfe821fda
Comment out SYSCTL_OMIT_DESCR until it's committed.
2006-05-19 00:11:21 +00:00
cognet
703043e7e1
Implement sa11x0_bs_unmap.
...
Submitted by: kevlo
2006-05-18 22:03:47 +00:00
cognet
26f5546b64
Make this compile (UART_IPEND_* => SER_INT_*).
2006-05-18 22:02:33 +00:00
cognet
c4eaf759a9
Add definitions for atomic_subtract_rel_32, atomic_add_rel_32 and
...
atomic_load_acq_32, needed for hwpmc.
2006-05-15 13:08:12 +00:00
benno
438bd823c9
Display real/avail memory as per other platforms.
...
Approved by: cognet
2006-05-15 10:40:37 +00:00
cognet
b979607c78
Switch to a 64bit time_t, while it's not a big problem to do so.
...
Suggested by: imp
2006-05-15 00:17:27 +00:00
cognet
2e58b61962
Resurrect Skyeye support :
...
Add a new option, SKYEYE_WORKAROUNDS, which as the name suggests adds
workarounds for things skyeye doesn't simulate. Specifically :
- Use USART0 instead of DBGU as the console, make it not use DMA, and manually provoke an interrupt when we're done in the transmit function.
- Skyeye maintains an internal counter for clock, but apparently there's
no way to access it, so hack the timecounter code to return a value which
is increased at every clock interrupts. This is gross, but I didn't find a
better way to implement timecounters without hacking Skyeye to get the
counter value.
- Force the write-back of PTEs once we're done writing them, even if they
are supposed to be write-through. I don't know why I have to do that.
2006-05-13 23:41:16 +00:00
imp
cf90ee9498
Tidy up a bit...
2006-05-13 02:47:39 +00:00
phk
5d8c57a08b
Clean out sysctl machdep.* related defines.
...
The cmos clock related stuff should really be in MI code.
2006-05-11 17:29:25 +00:00
cognet
a100106c75
Get this to compile :
...
- The prototype of uart_bus_probe() hasn't been changed in cvs yet, so use the
old one.
- Add at91_pdcreg.h, needed by uart_dev_at91usart.c.
2006-05-11 14:30:28 +00:00
cognet
627a93886f
Move the call to cpu_setup() before the call to vm_ksubmap_init().
...
vm_ksubmap_init() calls pmap_copy_page(), which uses the mini data cache
to do the copy, but we're running uncaching before cpu_setup().
For some reason it hasn't been a problem so far, but it is for the
PXA255.
Spotted out by: benno
2006-05-10 13:39:10 +00:00
cognet
58dbe8e93e
Setting the rid of the resource is a good idea, but we still need to return
...
the resource after.
2006-05-05 19:14:57 +00:00
cognet
beb0639917
MFother arches :
...
date: 2006/04/12 04:22:50; author: alc; state: Exp; lines: +14 -41
Retire pmap_track_modified(). We no longer need it because we do not
create managed mappings within the clean submap. To prevent regressions,
add assertions blocking the creation of managed mappings within the clean
submap.
Reviewed by: tegge
2006-04-22 22:51:32 +00:00
imp
09e17e600a
When returning a resource that we've allocated with rman_reserve_resource,
...
go ahead and set the rid for that resource.
2006-04-20 04:12:02 +00:00
cognet
89b59ebb5e
We need to adjust the bus handle if the resource is SYS_RES_MEMORY, NOT
...
SYS_RES_IOPORT.
2006-04-13 15:07:59 +00:00
cognet
b63a034818
Disable/enable fiqs as well as irqs.
2006-04-13 14:25:28 +00:00
cognet
271e02009f
MFp4: Use CPU_CONTROL_ROUNDROBIN for arm9, it seems to give marginally
...
better performances.
2006-04-09 23:07:31 +00:00
cognet
f1ed1ae32f
Not only disable/enable interrupts, do it for FIQs as well, when needed.
2006-04-09 20:16:47 +00:00
cognet
e23eec56ae
MFp4: Don't write-back the PTEs if they are mapped write-through, this was
...
apparently only needed because skyeye has bugs in its cache emulation.
2006-04-09 20:03:03 +00:00
cognet
8b8bb58f45
MFp4: Catchup with recent UART changes.
2006-04-06 20:47:54 +00:00
cognet
067f218bcf
Add a new option, XSCALE_DISABLE_CCNT, to not use the xscale ccnt as a
...
timecounter (because gxemul doesn't emule it yet).
2006-04-06 17:11:08 +00:00
imp
8694646e12
Add debug writes in error cases that, in theory, should never happen
2006-04-06 04:32:29 +00:00
imp
000b33975f
Connect twi to the FreeBSD iicbus infrastructure.
2006-04-06 04:31:19 +00:00
imp
b8ec0fd91c
Pull in numerous fixes from myself and cognet. With these fixes the
...
KB9202 eval board is finally stable with a nfs root.
2006-04-06 04:30:23 +00:00
imp
9a23a843f0
Remove unused bit definitions.
...
Minor style cleanup while I'm here.
2006-04-06 04:29:24 +00:00