I used that mem addres for this:
#define RUN_FROM_SD (read_mem(CLOCK_PWRCON)&0x04)>>2
if run from sd, its value is 1, if from flash its 0.
What does your function do? Because all I need is to check from which drive it has been initialized (and my function above does it). If from flash, it shows my warning message or something like that
btw, what does this patch do? It takes off the license check or something?
Last edited by flasher86; 20th Apr 2010 at 4:12 pm.
|