Skip to content

Commit

Permalink
sparcv8leon3: add GR712RC target
Browse files Browse the repository at this point in the history
JIRA: RTOS-615
  • Loading branch information
lukileczo committed Nov 15, 2023
1 parent 993f5e7 commit 8f30b74
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/sparcv8leon3/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@

#include <sys/reboot.h>
#include <sys/platform.h>

#if defined(__CPU_GR716)
#include <phoenix/arch/gr716.h>
#elif defined(__CPU_GR712RC)
#include <phoenix/arch/gr712rc.h>
#endif


int reboot(int magic)
Expand Down
1 change: 1 addition & 0 deletions arch/sparcv8leon3/syscalls.S
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ sym: \
mov sn, %g4; \
ta 0; \
/* return value in %o0 */; \
nop; /* TN-0018 fix */ \
retl; \
nop; \
.size sym, .-sym
Expand Down
4 changes: 4 additions & 0 deletions include/arch/sparcv8leon3/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
#define __STRCPY
#define __STRNCPY

#ifdef NOMMU
#define _PAGE_SIZE 0x200
#else
#define _PAGE_SIZE 0x1000
#endif
#define SIZE_PAGE _Pragma("GCC warning \"'SIZE_PAGE' is deprecated. Use _PAGE_SIZE from arch.h or PAGE_SIZE from limits.h (POSIX only)\"") _PAGE_SIZE

#define __LIBPHOENIX_ARCH_TLS_SUPPORTED
Expand Down

0 comments on commit 8f30b74

Please sign in to comment.