changed system variables clear with memset()

This commit is contained in:
Markus Fröschle
2013-11-04 17:11:38 +00:00
parent 6d43f9db4d
commit e19a1b1136

View File

@@ -224,7 +224,6 @@ void BaS(void)
{ {
uint8_t *src; uint8_t *src;
uint8_t *dst = (uint8_t *)TOS; uint8_t *dst = (uint8_t *)TOS;
uint32_t *adr;
#ifdef MACHINE_FIREBEE /* LITE board has no pic and (currently) no nvram */ #ifdef MACHINE_FIREBEE /* LITE board has no pic and (currently) no nvram */
pic_init(); pic_init();
@@ -295,12 +294,7 @@ void BaS(void)
/* /*
* memory setup * memory setup
*/ */
for (adr = (uint32_t *) 0x400L; adr < (uint32_t *) 0x800L; ) { memset((void *) 0x400, 0, 0x400);
*adr++ = 0x0L;
*adr++ = 0x0L;
*adr++ = 0x0L;
*adr++ = 0x0L;
}
/* set Falcon bus control register */ /* set Falcon bus control register */
/* sets bit 3 and 6. Both are undefined on an original Falcon? */ /* sets bit 3 and 6. Both are undefined on an original Falcon? */