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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

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