diff options
author | Jason A. Donenfeld | 2022-05-11 15:35:50 +0200 |
---|---|---|
committer | Stafford Horne | 2022-05-12 06:02:02 +0900 |
commit | 065b8ced7c40bd6a4444f7005413f7af9fe6b642 (patch) | |
tree | abce8d9eda0a930e3b5a4b56a21281b1ae19af69 /arch | |
parent | d49401999adda2d69150b69655ade16dc77baa96 (diff) |
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 <shorne@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/openrisc/mm/fault.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/openrisc/mm/fault.c b/arch/openrisc/mm/fault.c index 80bb66ad42f6..860da58d7509 100644 --- a/arch/openrisc/mm/fault.c +++ b/arch/openrisc/mm/fault.c @@ -223,8 +223,6 @@ no_context: { const struct exception_table_entry *entry; - __asm__ __volatile__("l.nop 42"); - if ((entry = search_exception_tables(regs->pc)) != NULL) { /* Adjust the instruction pointer in the stackframe */ regs->pc = entry->fixup; @@ -252,9 +250,6 @@ no_context: */ out_of_memory: - __asm__ __volatile__("l.nop 42"); - __asm__ __volatile__("l.nop 1"); - mmap_read_unlock(mm); if (!user_mode(regs)) goto no_context; |