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)
commitd097efa95059e6a36a365add3deaf43fcafc4067
treebdefeb8348380a1b83d347c24b4b0a49492c8489
parent33656a1f2ee5346c742d63ddd0e0970c95a56b70
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