[En-Nut-Discussion] .bss was Stuck !! Fixed (bug in NutOS)

Michel Hendriks unreal at home.nl
Fri Apr 2 11:15:55 CEST 2004


When would you need to call that function?
>From NutMain?

NGB said:
> A short stroll on avr freaks, and I found out that you actually need to enable
> the xram yourself, before bss is cleared in .init4
> This problem would only appear if you have large arrays like I do and .bss end  is
> outside internal SRAM.
>
> The function below fixed it.
>
> void InitXramAccess (void) __attribute__ ((naked)) __attribute__ ((section (".
> init1")));
>
> void InitXramAccess (void)
> {
> 	outp(BV(SRE) | BV(SRW), MCUCR);
> }
>
> Nic
>
> -------------------------------------------------
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion






More information about the En-Nut-Discussion mailing list