Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177636619
D25025.1794912037.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D25025.1794912037.diff
View Options
Index: head/lib/csu/mips/crt.h
===================================================================
--- head/lib/csu/mips/crt.h
+++ head/lib/csu/mips/crt.h
@@ -30,29 +30,31 @@
#define CTORS_CONSTRUCTORS
#ifdef __mips_o32
#define INIT_CALL_SEQ(func) \
+ ".set push \n" \
".set noreorder \n" \
"bal 1f \n" \
"nop \n" \
"1: \n" \
".cpload $ra \n" \
"addu $sp, $sp, -8 \n" \
- ".set reorder \n" \
".cprestore 4 \n" \
".local " __STRING(func) "\n" \
"jal " __STRING(func) "\n" \
"nop \n" \
- "addu $sp, $sp, 8 \n"
+ "addu $sp, $sp, 8 \n" \
+ ".set pop\n"
#else
#define INIT_CALL_SEQ(func) \
+ ".set push \n" \
".set noreorder \n" \
"bal 1f \n" \
"nop \n" \
"1: \n" \
- ".set reorder \n" \
- ".cpsetup $ra, $v0, 1b \n" \
+ ".cpsetup $ra, $zero, 1b \n" \
".local " __STRING(func) "\n" \
"jal " __STRING(func) "\n" \
- "nop \n"
+ "nop \n" \
+ ".set pop\n"
#endif
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 17, 10:40 AM (4 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41797751
Default Alt Text
D25025.1794912037.diff (1 KB)
Attached To
Mode
D25025: csu: Avoid additional nops in the MIPS INIT_CALL_SEQ macro
Attached
Detach File
Event Timeline