diff --git a/Targets/Bonito3a2h/Bonito/tgt_machdep.c b/Targets/Bonito3a2h/Bonito/tgt_machdep.c index b1df696c..64b445fc 100644 --- a/Targets/Bonito3a2h/Bonito/tgt_machdep.c +++ b/Targets/Bonito3a2h/Bonito/tgt_machdep.c @@ -1706,14 +1706,8 @@ tgt_machprint() register_t tgt_clienttos() { - return((register_t)(int)PHYS_TO_CACHED(memorysize & ~7) - 64); -/* -#if LS3_HT - return((register_t)(int)PHYS_TO_CACHED(memorysize & ~7) - 64); -#else - return((register_t)(int)PHYS_TO_UNCACHED(memorysize & ~7) - 64); -#endif -*/ + extern char start[]; + return(register_t)(int)PHYS_TO_CACHED(start - 64); } #ifdef HAVE_FLASH