File tree Expand file tree Collapse file tree 8 files changed +27
-25
lines changed Expand file tree Collapse file tree 8 files changed +27
-25
lines changed Original file line number Diff line number Diff line change 15
15
16
16
#include <sys/reboot.h>
17
17
#include <sys/platform.h>
18
- #if defined(__CPU_ZYNQ7000 )
19
- #include <phoenix/arch/armv7a/zynq7000/zynq7000.h>
20
- #elif defined(__CPU_IMX6ULL )
21
- #include <phoenix/arch/armv7a/imx6ull/imx6ull.h>
22
- #else
23
- #error "Unsupported TARGET"
24
- #endif
18
+ #include <arch.h>
25
19
26
20
27
21
int reboot (int magic )
Original file line number Diff line number Diff line change 15
15
16
16
#include <sys/reboot.h>
17
17
#include <sys/platform.h>
18
-
19
- #if defined(__CPU_STM32L4X6 )
20
- #include <phoenix/arch/armv7m/stm32/l4/stm32l4.h>
21
- #elif defined(__CPU_IMXRT117X )
22
- #include <phoenix/arch/armv7m/imxrt/11xx/imxrt1170.h>
23
- #elif defined(__CPU_IMXRT105X ) || defined(__CPU_IMXRT106X )
24
- #include <phoenix/arch/armv7m/imxrt/10xx/imxrt10xx.h>
25
- #else
26
- #error "Unsupported TARGET"
27
- #endif
18
+ #include <arch.h>
28
19
29
20
30
21
int reboot (int magic )
Original file line number Diff line number Diff line change 16
16
17
17
#include <sys/reboot.h>
18
18
#include <sys/platform.h>
19
-
20
- #if defined(__CPU_GR716 )
21
- #include <phoenix/arch/sparcv8leon3/gr716/gr716.h>
22
- #elif defined(__CPU_GR712RC )
23
- #include <phoenix/arch/sparcv8leon3/gr712rc/gr712rc.h>
24
- #else
25
- #error "Unsupported TARGET"
26
- #endif
19
+ #include <arch.h>
27
20
28
21
29
22
int reboot (int magic )
Original file line number Diff line number Diff line change 16
16
#ifndef _LIBPHOENIX_ARCH_ARMV7A_ARCH_H_
17
17
#define _LIBPHOENIX_ARCH_ARMV7A_ARCH_H_
18
18
19
+ #if defined(__CPU_ZYNQ7000 )
20
+ #include <phoenix/arch/armv7a/zynq7000/zynq7000.h>
21
+ #elif defined(__CPU_IMX6ULL )
22
+ #include <phoenix/arch/armv7a/imx6ull/imx6ull.h>
23
+ #else
24
+ #error "Unsupported TARGET"
25
+ #endif
26
+
19
27
#define __ARCH_STDINT <arch/armv7a/stdint.h>
20
28
#define __ARCH_LIMITS <arch/armv7a/limits.h>
21
29
Original file line number Diff line number Diff line change 16
16
#ifndef _LIBPHOENIX_ARCH_ARMV7M_ARCH_H_
17
17
#define _LIBPHOENIX_ARCH_ARMV7M_ARCH_H_
18
18
19
+ #if defined(__CPU_STM32L4X6 )
20
+ #include <phoenix/arch/armv7m/stm32/l4/stm32l4.h>
21
+ #elif defined(__CPU_IMXRT117X )
22
+ #include <phoenix/arch/armv7m/imxrt/11xx/imxrt1170.h>
23
+ #elif defined(__CPU_IMXRT105X ) || defined(__CPU_IMXRT106X )
24
+ #include <phoenix/arch/armv7m/imxrt/10xx/imxrt10xx.h>
25
+ #else
26
+ #error "Unsupported TARGET"
27
+ #endif
28
+
19
29
#define __ARCH_STDINT <arch/armv7m/stdint.h>
20
30
#define __ARCH_LIMITS <arch/armv7m/limits.h>
21
31
Original file line number Diff line number Diff line change 16
16
#ifndef _LIBPHOENIX_ARCH_IA32_ARCH_H_
17
17
#define _LIBPHOENIX_ARCH_IA32_ARCH_H_
18
18
19
+ #include <phoenix/arch/ia32/ia32.h>
20
+
19
21
#define __ARCH_STDINT <arch/ia32/stdint.h>
20
22
#define __ARCH_LIMITS <arch/ia32/limits.h>
21
23
#define __ARCH_SYS_IO <arch/ia32/io.h>
Original file line number Diff line number Diff line change 16
16
#ifndef _LIBPHOENIX_ARCH_RISCV64_ARCH_H_
17
17
#define _LIBPHOENIX_ARCH_RISCV64_ARCH_H_
18
18
19
+ #include <phoenix/arch/riscv64/riscv64.h>
20
+
19
21
#define __ARCH_STDINT <arch/riscv64/stdint.h>
20
22
#define __ARCH_LIMITS <arch/riscv64/limits.h>
21
23
#define __ARCH_SYS_IO <arch/riscv64/io.h>
Original file line number Diff line number Diff line change 16
16
#ifndef _LIBPHOENIX_ARCH_SPARCV8LEON3_ARCH_H_
17
17
#define _LIBPHOENIX_ARCH_SPARCV8LEON3_ARCH_H_
18
18
19
+ #include <phoenix/arch/sparcv8leon3/sparcv8leon3.h>
20
+
19
21
#define __ARCH_STDINT <arch/sparcv8leon3/stdint.h>
20
22
#define __ARCH_LIMITS <arch/sparcv8leon3/limits.h>
21
23
You can’t perform that action at this time.
0 commit comments