Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103026065
D34631.id104078.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
D34631.id104078.diff
View Options
diff --git a/sys/arm64/arm64/exception.S b/sys/arm64/arm64/exception.S
--- a/sys/arm64/arm64/exception.S
+++ b/sys/arm64/arm64/exception.S
@@ -41,33 +41,33 @@
.macro save_registers_head el
.if \el == 1
mov x18, sp
- sub sp, sp, #128
+ stp x0, x1, [sp, #(TF_X - TF_SIZE - 128)]!
+.else
+ stp x0, x1, [sp, #(TF_X - TF_SIZE)]!
.endif
- sub sp, sp, #(TF_SIZE)
- stp x28, x29, [sp, #(TF_X + 28 * 8)]
- stp x26, x27, [sp, #(TF_X + 26 * 8)]
- stp x24, x25, [sp, #(TF_X + 24 * 8)]
- stp x22, x23, [sp, #(TF_X + 22 * 8)]
- stp x20, x21, [sp, #(TF_X + 20 * 8)]
- stp x18, x19, [sp, #(TF_X + 18 * 8)]
- stp x16, x17, [sp, #(TF_X + 16 * 8)]
- stp x14, x15, [sp, #(TF_X + 14 * 8)]
- stp x12, x13, [sp, #(TF_X + 12 * 8)]
- stp x10, x11, [sp, #(TF_X + 10 * 8)]
- stp x8, x9, [sp, #(TF_X + 8 * 8)]
- stp x6, x7, [sp, #(TF_X + 6 * 8)]
- stp x4, x5, [sp, #(TF_X + 4 * 8)]
- stp x2, x3, [sp, #(TF_X + 2 * 8)]
- stp x0, x1, [sp, #(TF_X + 0 * 8)]
+ stp x2, x3, [sp, #(2 * 8)]
+ stp x4, x5, [sp, #(4 * 8)]
+ stp x6, x7, [sp, #(6 * 8)]
+ stp x8, x9, [sp, #(8 * 8)]
+ stp x10, x11, [sp, #(10 * 8)]
+ stp x12, x13, [sp, #(12 * 8)]
+ stp x14, x15, [sp, #(14 * 8)]
+ stp x16, x17, [sp, #(16 * 8)]
+ stp x18, x19, [sp, #(18 * 8)]
+ stp x20, x21, [sp, #(20 * 8)]
+ stp x22, x23, [sp, #(22 * 8)]
+ stp x24, x25, [sp, #(24 * 8)]
+ stp x26, x27, [sp, #(26 * 8)]
+ stp x28, x29, [sp, #(28 * 8)]
mrs x10, elr_el1
mrs x11, spsr_el1
mrs x12, esr_el1
.if \el == 0
mrs x18, sp_el0
.endif
- str x10, [sp, #(TF_ELR)]
- stp w11, w12, [sp, #(TF_SPSR)]
- stp x18, lr, [sp, #(TF_SP)]
+ str x10, [sp, #(TF_ELR - TF_X)]!
+ stp w11, w12, [sp, #(TF_SPSR - TF_ELR)]!
+ stp x18, lr, [sp, #(TF_SP - TF_SPSR)]!
mrs x18, tpidr_el1
add x29, sp, #(TF_SIZE)
.endm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 11:47 PM (22 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14750019
Default Alt Text
D34631.id104078.diff (1 KB)
Attached To
Mode
D34631: Shave off two instructions in save_registers_head
Attached
Detach File
Event Timeline
Log In to Comment