Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148532783
D23258.id66987.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
D23258.id66987.diff
View Options
Index: stand/powerpc/uboot/start.S
===================================================================
--- stand/powerpc/uboot/start.S
+++ stand/powerpc/uboot/start.S
@@ -38,10 +38,11 @@
lis %r11, uboot_address@ha
addi %r11, %r11, uboot_address@l
stw %r1, 0(%r11)
- /* Save U-Boot's r14 */
+ /* Save U-Boot's r14 and r30 */
lis %r11, saved_regs@ha
addi %r11, %r11, saved_regs@l
stw %r14, 0(%r11)
+ stw %r30, 4(%r11)
/* Disable interrupts */
mfmsr %r11
andi. %r11, %r11, ~0x8000@l
@@ -52,14 +53,16 @@
* syscall()
*/
ENTRY(syscall)
- stwu %r1, -16(%r1)
+ stwu %r1, -32(%r1)
mflr %r0
stw %r14, 8(%r1)
- stw %r0, 20(%r1)
- /* Restore U-Boot's r14 */
+ stw %r30, 12(%r1)
+ stw %r0, 36(%r1)
+ /* Restore U-Boot's r14 and r30 */
lis %r11, saved_regs@ha
addi %r11, %r11, saved_regs@l
lwz %r14, 0(%r11)
+ lwz %r30, 4(%r11)
/* Enable interrupts */
mfmsr %r11
ori %r11, %r11, 0x8000@l
@@ -79,6 +82,7 @@
lwz %r0, 4(%r11)
mtlr %r0
lwz %r14, 8(%r1)
+ lwz %r30, 12(%r1)
mr %r1, %r11
blr
@@ -90,5 +94,6 @@
.long 0
GLOBAL(saved_regs)
.long 0 /* R14 */
+ .long 0 /* R30 */
GLOBAL(uboot_address)
.long 0
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 19, 1:00 PM (19 h, 53 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29964324
Default Alt Text
D23258.id66987.diff (1 KB)
Attached To
Mode
D23258: [PowerPC] Fix 32-bit ubldr calling convention
Attached
Detach File
Event Timeline
Log In to Comment