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
imp
41d4c17769
Optimize the TX side of the part by using the PDC to move bytes out to
...
the wire. This increases the speed considerably. Start to put
infrastructure in place to do RX side, but that requires more study
before it can be done.
2006-04-06 04:27:19 +00:00
peter
0f363b7d24
Remove the unused sva and eva arguments from pmap_remove_pages().
2006-04-03 21:16:10 +00:00
cognet
acc2935072
Implement pmap_object_init_pt() the way it is on sparc64/alpha, by doing
...
nothing except asserting the vm object is locked, and a device object,
instead of a useless printf.
2006-03-26 22:03:43 +00:00
imp
3bdb3321e5
Skeleton support for the SSC device, which implements I2S interfaces,
...
amoung others.
2006-03-24 07:42:33 +00:00
imp
177c00bf75
Skeleton PIO support.
2006-03-24 07:39:29 +00:00
imp
378a37c96c
Add the sekelton of support for the Power Management Controller.
2006-03-24 07:37:56 +00:00
imp
0fcb126eba
Add rtc to files.at91
2006-03-24 07:36:23 +00:00
imp
2d026c4a78
Add RTC support. This may be of dubious value since the RTC is reset
...
to 1998 every reboot.
2006-03-24 07:35:30 +00:00
cognet
311d69f620
MFp4: Don't force single-user now we can go multi-user.
...
Call cninit() only after the pagetable has been set, as locore.S won't
map the system device for us anymore.
2006-03-22 22:31:31 +00:00
cognet
68a24ad6b0
MFp4: More special casing of when vector_page == 0x00000000 :
...
catch attempts to write to vector_page earlier in pmap_fault_fixup(),
and deny it.
2006-03-22 22:11:10 +00:00
cognet
0e96d8153f
MFp4: If we're mapping the vector page (this will happen if we didn't
...
relocate it), do not attempt to call pmap_vac_me_harder() on the page.
At this point m will be NULL, and we know we won't have any cache
issues with this page.
2006-03-22 21:23:27 +00:00
cognet
b9a98eab6a
MFp4: teach the KB920x bits how to know where the ELF trampoline puts the
...
strtab and the symtab.
2006-03-22 21:16:51 +00:00
cognet
1e8aa65571
MFp4: Handle break interrupts (it seems to only work for USART, not DBGU).
2006-03-22 21:16:09 +00:00
imp
ebdf4c5109
MFp4:
...
Add bus attachment for the ohci device on this chip. The bus and hub
are detected correctly, but the children devices aren't detected
correctly for reasons unknown.
2006-03-18 01:45:29 +00:00