19d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm/* libunwind - a platform-independent unwind library 266100609bb7fb01811e64318bec3018d0bc9abd5homeip.net!davidm Copyright (C) 2003-2004 Hewlett-Packard Co 39d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm Contributed by David Mosberger-Tang <davidm@hpl.hp.com> 49d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm 59d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmThis file is part of libunwind. 69d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm 79d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmPermission is hereby granted, free of charge, to any person obtaining 89d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidma copy of this software and associated documentation files (the 99d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm"Software"), to deal in the Software without restriction, including 109d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmwithout limitation the rights to use, copy, modify, merge, publish, 119d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmdistribute, sublicense, and/or sell copies of the Software, and to 129d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmpermit persons to whom the Software is furnished to do so, subject to 139d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmthe following conditions: 149d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm 159d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmThe above copyright notice and this permission notice shall be 169d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmincluded in all copies or substantial portions of the Software. 179d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm 189d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 199d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 209d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 219d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 229d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 239d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 249d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 259d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm 269d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm#include "unwind-internal.h" 279d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm 289d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidmPROTECTED unsigned long 299d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm_Unwind_GetBSP (struct _Unwind_Context *context) 309d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm{ 319d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm#ifdef UNW_TARGET_IA64 329d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm unw_word_t val; 339d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm 349d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm unw_get_reg (&context->cursor, UNW_IA64_BSP, &val); 359d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm return val; 369d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm#else 379d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm return 0; 389d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm#endif 399d2496973a43bba44d16f7aa2ec03de4367ff962hp.com!davidm} 4066100609bb7fb01811e64318bec3018d0bc9abd5homeip.net!davidm 4166100609bb7fb01811e64318bec3018d0bc9abd5homeip.net!davidmunsigned long __libunwind_Unwind_GetBSP (struct _Unwind_Context *) 4266100609bb7fb01811e64318bec3018d0bc9abd5homeip.net!davidm ALIAS (_Unwind_GetBSP); 43