1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-30 21:21:45 +02:00

(unw_set_caching_policy): Call ia64_init() first if necessary.

(Logical change 1.49)
This commit is contained in:
mostang.com!davidm 2003-02-15 08:49:55 +00:00
parent 71ab0b2a3c
commit d8023cf208

View file

@ -28,6 +28,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
int
unw_set_caching_policy (unw_addr_space_t as, unw_caching_policy_t policy)
{
if (unw.needs_initialization)
{
unw.needs_initialization = 0;
ia64_init ();
}
#ifndef HAVE___THREAD
if (policy == UNW_CACHE_PER_THREAD)
return -UNW_EINVAL;