History

make Linux bootable on ARM again

Commit 200b812d00 "Clear the exclusive monitor when returning from an exception" broke the vast majority of ARM systems in the wild which are still pre ARMv6. The kernel is crashing on the first occurrence of an exception due to the removal of the actual return instruction for them. Let's add it back.

Nicolas Pitre committed 17 years ago

Commit 9e6ec391 parent 6d7f18f1 file · +2 −0Browse files

Unified · Split

arch/arm/kernel/entry-header.S+2−0
@@ -83,6 +83,8 @@ · 82 unmodified lines
8383 ldr r0, [sp]
8484 strex r1, r2, [sp] @ clear the exclusive monitor
8585 ldmib sp, {r1 - pc}^ @ load r1 - pc, cpsr
86+#else
87+ ldmia sp, {r0 - pc}^ @ load r0 - pc, cpsr
8688 #endif
8789 .endm
8890

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t