kernel: do SH3 initialization before context saves

This should be obvious and breaks ctx_save() for the RTC and TMU. Which
apparently never came up during testing.
This commit is contained in:
Lephe 2020-09-28 14:01:32 +02:00
parent 589c25c10c
commit 744d243265
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 1 additions and 2 deletions

View File

@ -58,9 +58,8 @@ static void drivers_save_and_init(GUNUSED int zero)
for driver_asc(d)
{
if(d->ctx_save) d->ctx_save(d->sys_ctx);
if(isSH3() && d->driver_sh3) d->driver_sh3();
if(d->ctx_save) d->ctx_save(d->sys_ctx);
if(d->init) d->init();
}
}