diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2013-05-11 09:18:23 -0600 |
---|---|---|
committer | Arun Sharma <arun@sharma-home.net> | 2013-05-11 09:20:28 -0600 |
commit | ac6c0a6535975f1dc2da6e4e2766614baac2a14a (patch) | |
tree | 1825aa12efcb7d5c1bfc8c910260ac01fe368e19 /src/aarch64/is_fpreg.c | |
parent | 612e1056f69fb95409586ff715f614c0bbc013d8 (diff) | |
download | libunwind-ac6c0a6535975f1dc2da6e4e2766614baac2a14a.tar.gz |
[PATCH] AArch64 port.
Diffstat (limited to 'src/aarch64/is_fpreg.c')
-rw-r--r-- | src/aarch64/is_fpreg.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/aarch64/is_fpreg.c b/src/aarch64/is_fpreg.c new file mode 100644 index 00000000..7c326932 --- /dev/null +++ b/src/aarch64/is_fpreg.c @@ -0,0 +1,32 @@ +/* libunwind - a platform-independent unwind library + Copyright (C) 2008 CodeSourcery + Copyright (C) 2013 Linaro Limited + +This file is part of libunwind. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ + +#include "libunwind_i.h" + +PROTECTED int +unw_is_fpreg (int regnum) +{ + return (regnum >= UNW_AARCH64_V0 && regnum <= UNW_AARCH64_V31); +} |