Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sparcv8leon3: add GR712RC target #305

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading