Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177125436
D10305.1793847762.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
915 B
Referenced Files
None
Subscribers
None
D10305.1793847762.diff
View Options
Index: head/lib/libc/aarch64/SYS.h
===================================================================
--- head/lib/libc/aarch64/SYS.h
+++ head/lib/libc/aarch64/SYS.h
@@ -45,12 +45,19 @@
ret; \
END(__sys_##name)
+/*
+ * Conditional jumps can only go up to one megabyte in either
+ * direction, and cerror can be located anywhere, so we have
+ * to jump around to use more capable unconditional branch
+ * instruction.
+ */
#define PSEUDO(name) \
ENTRY(__sys_##name); \
WEAK_REFERENCE(__sys_##name, _##name); \
_SYSCALL(name); \
- b.cs cerror; \
+ b.cs 1f; \
ret; \
+1: b cerror; \
END(__sys_##name)
#define RSYSCALL(name) \
@@ -58,6 +65,7 @@
WEAK_REFERENCE(__sys_##name, name); \
WEAK_REFERENCE(__sys_##name, _##name); \
_SYSCALL(name); \
- b.cs cerror; \
+ b.cs 1f; \
ret; \
+1: b cerror; \
END(__sys_##name)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 5, 3:02 AM (12 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41454291
Default Alt Text
D10305.1793847762.diff (915 B)
Attached To
Mode
D10305: Do not use b.cs instruction to jump to cerror
Attached
Detach File
Event Timeline