Reposting, so this discussion continues on *both* mailing lists. Ruben - if you want to post your own discussions just to this mailing list, that's fine, but perpetually breaking up other people's discussion threads is anti-social and disruptive.
Jeremy On Sat, 2012-11-17 at 10:07 +0100, R. Diez wrote: > >> I've looked, and it doesn't appear that the kernel uses any mac > >> instructions, nor does it read the MAC sprs using mfspr. (Which is > >> surprising as I would expect the kernel to save them during context > >> switches.) > > > > This is a known deficiency... > > eCos does the opposite, it always saves and restores the MAC SPRs, and > that triggers a trap in my CPU implementation, which has no MAC unit yet. > > Should you decide to fix this issue in Linux, I would suggest that you > either check at runtime whether the MAC unit is implemented (there is a > "unit presence" register in the spec), or that you provide a Linux > kernel config setting. > > Thanks, > rdiez > > _______________________________________________ > OpenRISC mailing list > [email protected] > http://lists.openrisc.net/listinfo/openrisc -- Tel: +44 (1590) 610184 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: [email protected] Web: www.embecosm.com _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
