Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153501924
D40648.id123522.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D40648.id123522.diff
View Options
diff --git a/sys/riscv/include/param.h b/sys/riscv/include/param.h
--- a/sys/riscv/include/param.h
+++ b/sys/riscv/include/param.h
@@ -50,9 +50,6 @@
#ifndef MACHINE_ARCH
#define MACHINE_ARCH "riscv64"
#endif
-#ifdef _KERNEL
-#define MACHINE_ARCHES "riscv64"
-#endif
#ifdef SMP
#ifndef MAXCPU
diff --git a/sys/riscv/riscv/elf_machdep.c b/sys/riscv/riscv/elf_machdep.c
--- a/sys/riscv/riscv/elf_machdep.c
+++ b/sys/riscv/riscv/elf_machdep.c
@@ -59,8 +59,6 @@
#include <machine/elf.h>
#include <machine/md_var.h>
-static const char *riscv_machine_arch(struct proc *p);
-
u_long elf_hwcap;
static struct sysentvec elf64_freebsd_sysvec = {
@@ -98,7 +96,6 @@
.sv_thread_detach = NULL,
.sv_trap = NULL,
.sv_hwcap = &elf_hwcap,
- .sv_machine_arch = riscv_machine_arch,
.sv_onexec_old = exec_onexec_old,
.sv_onexit = exit_onexit,
.sv_regset_begin = SET_BEGIN(__elfN(regset)),
@@ -106,16 +103,6 @@
};
INIT_SYSENTVEC(elf64_sysvec, &elf64_freebsd_sysvec);
-static const char *
-riscv_machine_arch(struct proc *p)
-{
-
- if ((p->p_elf_flags & EF_RISCV_FLOAT_ABI_MASK) ==
- EF_RISCV_FLOAT_ABI_SOFT)
- return (MACHINE_ARCH "sf");
- return (MACHINE_ARCH);
-}
-
static Elf64_Brandinfo freebsd_brand_info = {
.brand = ELFOSABI_FREEBSD,
.machine = EM_RISCV,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 12:06 PM (10 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31977630
Default Alt Text
D40648.id123522.diff (1 KB)
Attached To
Mode
D40648: riscv: Remove MACHINE_ARCH-specific remnants of riscv64sf.
Attached
Detach File
Event Timeline
Log In to Comment