Beispiel #1
0
LOCAL void * cacheLsn2ePhysToVirt
    (
    void * address                      /* Physical address */
    )
    {
    return ((void *) PHYS_TO_K0(address));
    }
Beispiel #2
0
__cpuinit void ispram_fill(void)
{
	unsigned int pa, size, tag0, tag1;
	unsigned int offset;
	unsigned int datalo, datahi;

	tag0 = ispram_load_tag(0);
	tag1 = ispram_load_tag(0+SPRAM_TAG_STRIDE);

	pa = tag0 & SPRAM_TAG0_PA_MASK;
	size = tag1 & SPRAM_TAG1_SIZE_MASK;

	if (size == 0)
		return;

	for (offset = 0; offset < size; offset += 8) {
		datalo = *(unsigned int *) ((unsigned int)PHYS_TO_K0(pa + offset));
		datahi = *(unsigned int *) ((unsigned int)PHYS_TO_K0(pa + offset + 4));
		ispram_store_data(offset, datalo, datahi);
	}
}