Skip to content

Commit 065b8ce

Browse files
zx2c4stffrdhrn
authored andcommitted
openrisc: remove bogus nops and shutdowns
Nop 42 is some leftover debugging thing by the looks of it. Nop 1 will shut down the simulator, which isn't what we want, since it makes it impossible to handle errors. Cc: Stafford Horne <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]> Signed-off-by: Stafford Horne <[email protected]>
1 parent d494019 commit 065b8ce

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/openrisc/mm/fault.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long address,
223223
{
224224
const struct exception_table_entry *entry;
225225

226-
__asm__ __volatile__("l.nop 42");
227-
228226
if ((entry = search_exception_tables(regs->pc)) != NULL) {
229227
/* Adjust the instruction pointer in the stackframe */
230228
regs->pc = entry->fixup;
@@ -252,9 +250,6 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long address,
252250
*/
253251

254252
out_of_memory:
255-
__asm__ __volatile__("l.nop 42");
256-
__asm__ __volatile__("l.nop 1");
257-
258253
mmap_read_unlock(mm);
259254
if (!user_mode(regs))
260255
goto no_context;

0 commit comments

Comments
 (0)