Skip to content

Commit

Permalink
arch/sparcv8leon3: implement cpu reboot
Browse files Browse the repository at this point in the history
JIRA: RTOS-523
  • Loading branch information
lukileczo committed Jul 21, 2023
1 parent d26c40e commit e642c11
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions arch/sparcv8leon3/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,27 @@

#include <sys/reboot.h>
#include <sys/platform.h>
#include <phoenix/arch/gr716.h>

/* TODO */

int reboot(int magic)
{
return 0;
platformctl_t pctl = {
.action = pctl_set,
.type = pctl_reboot,
/* clang-format off */
.reboot = {
.magic = magic
}
/* clang-format on */
};

return platformctl(&pctl);
}


int reboot_reason(uint32_t *val)
{
*val = 0u;
return 0;
}

0 comments on commit e642c11

Please sign in to comment.