Skip to content

Commit cdb7544

Browse files
skristianssonstffrdhrn
authored andcommitted
openrisc: include l.swa in check for write data pagefault
During page fault handling we check the last instruction to understand if the fault was for a read or for a write. By default we fall back to read. New instructions were added to the openrisc 1.1 spec for an atomic load/store pair (l.lwa/l.swa). This patch adds the opcode for l.swa (0x33) allowing it to be treated as a write operation. Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> [shorne@gmail.com: expanded a bit on the comment] Signed-off-by: Stafford Horne <shorne@gmail.com>
1 parent d01e1f3 commit cdb7544

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/openrisc/kernel/entry.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ EXCEPTION_ENTRY(_data_page_fault_handler)
264264
l.srli r6,r6,26 // check opcode for write access
265265
#endif
266266

267-
l.sfgeui r6,0x34 // check opcode for write access
267+
l.sfgeui r6,0x33 // check opcode for write access
268268
l.bnf 1f
269269
l.sfleui r6,0x37
270270
l.bnf 1f

0 commit comments

Comments
 (0)