Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103017636
D34631.id104178.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.id104178.diff
View Options
Index: sys/arm64/arm64/exception.S
===================================================================
--- sys/arm64/arm64/exception.S
+++ sys/arm64/arm64/exception.S
@@ -41,35 +41,34 @@
.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)]
- mrs x10, elr_el1
- mrs x11, spsr_el1
- mrs x12, esr_el1
+ 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)]
.if \el == 0
mrs x18, sp_el0
.endif
+ mrs x10, elr_el1
+ mrs x11, spsr_el1
+ mrs x12, esr_el1
+ stp x18, lr, [sp, #(TF_SP - TF_X)]!
str x10, [sp, #(TF_ELR)]
stp w11, w12, [sp, #(TF_SPSR)]
- stp x18, lr, [sp, #(TF_SP)]
mrs x18, tpidr_el1
- add x29, sp, #(TF_SIZE)
.endm
.macro save_registers el
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 9:21 PM (19 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14747559
Default Alt Text
D34631.id104178.diff (1 KB)
Attached To
Mode
D34631: Shave off two instructions in save_registers_head
Attached
Detach File
Event Timeline
Log In to Comment