FreeBSD on PXA255 board
Alexandr Rybalko
ray at dlink.ua
Mon May 5 14:34:48 UTC 2008
On Mon, 05 May 2008 07:52:28 -0600 (MDT)
"M. Warner Losh" <imp at bsdimp.com> wrote:
>> In message: <20080505134045.0cf93a8d.ray at dlink.ua>
>> Alexandr Rybalko <ray at dlink.ua> writes:
>> : On Fri, 25 Apr 2008 15:19:34 -0500 (CDT)
>> : Mark Tinguely <tinguely at casselton.net> wrote:
>> :
>> : >>
>> : >> I was wrong, you are still initializing the UMA, the vm_page
>> : >> structure happens next.
>> : >>
>> : >> the virtual address 0xbfecf000 would be the correct
>> : >> ARM_USE_SMALL_ALLOC address for physical address 0xa3fcf000 with
>> : >> 64MB of RAM.
>> : >>
>> : >> --Mark Tinguely.
>> : >>
>> :
>> : Thanks for answers.
>> : After viewing large part of sources, I found what 0xbfecf000 is a
>> : correct virtual address for physical address 0xa3fcf000 with
>> : ARM_USE_SMALL_ALLOC.
>> :
>> : But I don`t know why kernel freeze one time on bzero for physical
>> : address 0xa3fcf000, second time on uma_startup(bfecf000, 00000030)
>> :
>> : No panic, no error messages, just freeze.
>>
>> Freezes early in boot are almost always the result of an exception
>> being taken before the new exception handlers are copied down to the
>> low addresses. For some reason, you are still faulting...
>>
Thanks Warner.
I understand it, but I don`t know why it`s happen in two different
locations, sometime in bzero, sometime in uma_startup.
I`m try to change 0xd0000000 to 0xc4000000 in pmap_bootstrap
(pmap_curmaxkvaddr, 0xc4000000, &kernel_l1pt) call, and replace bzero
call to memset((char *)(mapped), 0, end - new_end)
After it machine freeze in first iteration of loop:
for (i = 0; i < boot_pages; i++) {
slab = (uma_slab_t)((u_int8_t *)bootmem + (i *
UMA_SLAB_SIZE)); slab->us_data = (u_int8_t *)slab;
slab->us_flags = UMA_SLAB_BOOT;
LIST_INSERT_HEAD(&uma_boot_pages, slab, us_link);
}
As result, I see we can do memset on this memory region, but we can`t
do simple assignment to the data structures in this region.
I`m don`t fully understand it, but maybe problem in not word aligned
access to memory?
>> Warner
>>
Thanks to all!
WBW
Alex RAY
More information about the freebsd-arm
mailing list