diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2017-12-12 21:43:36 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2017-12-12 21:43:36 +0000 |
| commit | dfbbbdf8cd42b10969f96d4f65ae32012eff035b (patch) | |
| tree | 215a5b4be85fcf7ea6bb2197b5b30bc4785985a9 /libunwind/include/libunwind.h | |
| parent | b4c74c6603cd1951bffde8b188e7d785a37ab479 (diff) | |
| download | bcm5719-llvm-dfbbbdf8cd42b10969f96d4f65ae32012eff035b.tar.gz bcm5719-llvm-dfbbbdf8cd42b10969f96d4f65ae32012eff035b.zip | |
[libunwind][MIPS]: Add support for unwinding in O32 and N64 processes.
This supports the soft-float ABI only and has been tested with both clang
and gcc on FreeBSD.
Reviewed By: sdardis, compnerd
Differential Revision: https://reviews.llvm.org/D38110
llvm-svn: 320528
Diffstat (limited to 'libunwind/include/libunwind.h')
| -rw-r--r-- | libunwind/include/libunwind.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libunwind/include/libunwind.h b/libunwind/include/libunwind.h index ece30976aba..9011d55460c 100644 --- a/libunwind/include/libunwind.h +++ b/libunwind/include/libunwind.h @@ -563,4 +563,42 @@ enum { UNW_OR1K_R31 = 31, }; +// MIPS registers +enum { + UNW_MIPS_R0 = 0, + UNW_MIPS_R1 = 1, + UNW_MIPS_R2 = 2, + UNW_MIPS_R3 = 3, + UNW_MIPS_R4 = 4, + UNW_MIPS_R5 = 5, + UNW_MIPS_R6 = 6, + UNW_MIPS_R7 = 7, + UNW_MIPS_R8 = 8, + UNW_MIPS_R9 = 9, + UNW_MIPS_R10 = 10, + UNW_MIPS_R11 = 11, + UNW_MIPS_R12 = 12, + UNW_MIPS_R13 = 13, + UNW_MIPS_R14 = 14, + UNW_MIPS_R15 = 15, + UNW_MIPS_R16 = 16, + UNW_MIPS_R17 = 17, + UNW_MIPS_R18 = 18, + UNW_MIPS_R19 = 19, + UNW_MIPS_R20 = 20, + UNW_MIPS_R21 = 21, + UNW_MIPS_R22 = 22, + UNW_MIPS_R23 = 23, + UNW_MIPS_R24 = 24, + UNW_MIPS_R25 = 25, + UNW_MIPS_R26 = 26, + UNW_MIPS_R27 = 27, + UNW_MIPS_R28 = 28, + UNW_MIPS_R29 = 29, + UNW_MIPS_R30 = 30, + UNW_MIPS_R31 = 31, + UNW_MIPS_HI = 64, + UNW_MIPS_LO = 65, +}; + #endif |

