android_system_core/debuggerd/crasher
Elliott Hughes 7e82c0037b riscv64: fix mips-ism.
r29 is the stack pointer on mips, but it's x2 on riscv64 (and the git
history shows that this was indeed copy & pasted from the mips code)
and since bionic always sets up a signal stack with sigaltstack() I
doubt the comment was relevant even on mips (but no-one ever used it,
so who'd know?).

While I'm here, stop using decimal arithmetic --- the whole point was to
have each register contain the value that was obviously appropriate for
that register. (riscv64's mips-like mess of registers all over the place
means that's not going to be super readable, but there's no reason to
make it worse.)

Also, even though I personally prefer the 0xdead from the old mips code,
everyone else is using 0xa5a5, so let's make riscv64 match the others.

Test: treehugger
Change-Id: Ibbae821bc0a02e07164147d621e342224528c2c9
2023-03-20 16:08:15 -07:00
..
arm Remove floating point register cruft. 2023-03-17 00:38:26 +00:00
arm64 Remove floating point register cruft. 2023-03-17 00:38:26 +00:00
riscv64 riscv64: fix mips-ism. 2023-03-20 16:08:15 -07:00
x86 Match the arm/arm64 style in the x86/x86-64 files. 2023-03-17 00:40:26 +00:00
x86_64 Match the arm/arm64 style in the x86/x86-64 files. 2023-03-17 00:40:26 +00:00
Android.bp Suppress clang-tidy on crasher.cpp 2022-12-05 11:28:40 -08:00
crasher.cpp Suppress the error warning 2023-03-08 02:40:09 +00:00