Because dm368 use ram when enter in deep sleep mode ,so I map the ram 32KB in linux2.6.18(the lsp source code from dm368ipnc ) like
{
.virtual = SRAM_VIRT,
.pfn = __phys_to_pfn(0x00010000), //dm368 ram start phy address is 0x10000
.length = SZ_32K,
.type = MT_MEMORY
}, But in linux2.6.18 It can't map because the ram phy address does not alignment to 1M ,So i change the type to MT_DEVICE I write a test function , I copy the function from sdram to ram ,then i run the test function in ram , It can't be exeute successful, then a pointer error happened! Could you give me some advise ,thanks a lot!