Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107197109
D21192.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
D21192.diff
View Options
Index: head/sys/arm64/arm64/freebsd32_machdep.c
===================================================================
--- head/sys/arm64/arm64/freebsd32_machdep.c
+++ head/sys/arm64/arm64/freebsd32_machdep.c
@@ -34,6 +34,7 @@
#include <sys/syscallsubr.h>
#include <sys/ktr.h>
#include <sys/sysent.h>
+#include <sys/sysproto.h>
#include <machine/armreg.h>
#ifdef VFP
#include <machine/vfp.h>
@@ -410,3 +411,30 @@
mtx_lock(&psp->ps_mtx);
}
+
+#ifdef COMPAT_43
+/*
+ * COMPAT_FREEBSD32 assumes we have this system call when COMPAT_43 is defined.
+ * FreeBSD/arm provies a similar getpagesize() syscall.
+ */
+#define ARM32_PAGE_SIZE 4096
+int
+ofreebsd32_getpagesize(struct thread *td,
+ struct ofreebsd32_getpagesize_args *uap)
+{
+
+ td->td_retval[0] = ARM32_PAGE_SIZE;
+ return (0);
+}
+
+/*
+ * Mirror the osigreturn definition in kern_sig.c for !i386 platforms. This
+ * mirrors what's connected to the FreeBSD/arm syscall.
+ */
+int
+ofreebsd32_sigreturn(struct thread *td, struct ofreebsd32_sigreturn_args *uap)
+{
+
+ return (nosys(td, (struct nosys_args *)uap));
+}
+#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 12:48 PM (21 h, 49 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15769485
Default Alt Text
D21192.diff (1 KB)
Attached To
Mode
D21192: Make arm64 32-bit mode compile with COMPAT_43
Attached
Detach File
Event Timeline
Log In to Comment