|
From: Dominic R. <Dom...@gm...> - 2008-02-18 19:13:53
|
On Monday 18 February 2008 09:08:44 Øyvind Harboe wrote: > I'd like to see working_area deal with RAM moving after the MMU has > been enabled. > > How about adding an optional argument for a physical address? > > If the MMU is enabled the virtual address is used, otherwise the > phsyical address is used. Default physical address is the same > as the virtual address. > > Note that the virtual address does not need to point to the physical > memory area used. > > Any better ideas? Objections? I suppose the "clean" approach would be to make OpenOCD's target layer aware of virtual memory. Currently, MMU handling is implemented on a per-target level, where it is inaccessible to the code deciding where the working_area goes. Regards, Dominic |