Skip to content

Commit

Permalink
zynq7000: Fix system reboot on pctl_get on pctl_reboot
Browse files Browse the repository at this point in the history
DONE: RTOS-940
  • Loading branch information
agkaminski committed Oct 7, 2024
1 parent d99dc74 commit 72d5af7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hal/armv7a/zynq7000/zynq.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,10 @@ int hal_platformctl(void *ptr)
break;

case pctl_reboot:
zynq_softRst();
if ((data->action == pctl_set) && (data->reboot.magic == PCTL_REBOOT_MAGIC)) {

Check failure on line 648 in hal/armv7a/zynq7000/zynq.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7a9-zynq7000-qemu)

'PCTL_REBOOT_MAGIC' undeclared (first use in this function)

Check failure on line 648 in hal/armv7a/zynq7000/zynq.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7a9-zynq7000-zedboard)

'PCTL_REBOOT_MAGIC' undeclared (first use in this function)
zynq_softRst();
}
/* TODO add boot reason for pctl_get */
break;

case pctl_sdwpcd:
Expand Down

0 comments on commit 72d5af7

Please sign in to comment.