Skip to content

Commit daccad7

Browse files
committed
arch: rx: Add simple sys_arch_reboot for RX architecture
Add simple sys_arch_reboot for RX architecture to conduct CI Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
1 parent 3da5466 commit daccad7

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

arch/rx/core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ zephyr_library_sources(
1212
vects.c
1313
isr_exit.S
1414
fatal.c
15+
reboot.c
1516
)
1617

1718
zephyr_library_sources_ifdef(CONFIG_IRQ_OFFLOAD irq_offload.c)

arch/rx/core/reboot.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/**
8+
* @file
9+
* @brief RX reboot interface
10+
*/
11+
12+
#include <zephyr/kernel.h>
13+
#include <zephyr/arch/cpu.h>
14+
#include <zephyr/sys/util.h>
15+
16+
/**
17+
* @brief Reset the system
18+
*
19+
* This is stub function to avoid build error with CONFIG_REBOOT=y
20+
* RX specification does not have a common interface for system reset.
21+
* Each RX SoC that has reset feature should implement own reset function.
22+
*/
23+
24+
void __weak sys_arch_reboot(int type)
25+
{
26+
ARG_UNUSED(type);
27+
}

0 commit comments

Comments
 (0)