]> git.baikalelectronics.ru Git - kernel.git/commit
sparc32: drop hardcoding trap_level in kgdb_trap
authorSam Ravnborg <sam@ravnborg.org>
Fri, 22 Apr 2016 17:41:03 +0000 (19:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 May 2016 00:55:41 +0000 (17:55 -0700)
commitaa17e029a6e7efc8e507523595f791cf8626642f
treebdefeb8348380a1b83d347c24b4b0a49492c8489
parent0c2896b1efea9d8a362bd39414db287225531ae8
sparc32: drop hardcoding trap_level in kgdb_trap

Fix this so we pass the trap_level from the actual trap
code like we do in sparc64.
Add use on ENTRY(), ENDPROC() in the assembler function too.

This fixes a bug where the hardcoded value for trap_level
was the sparc64 value.

As the generic code does not use the trap_level argument
(for sparc32) - this patch does not have any functional impact.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/head_32.h
arch/sparc/include/asm/kgdb.h
arch/sparc/kernel/entry.S
arch/sparc/kernel/kgdb_32.c