From 22ca26310985749ed80dd5085b6c60302643910f Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Mon, 24 Nov 2003 18:33:44 +0000 Subject: [PATCH] (ia64_init): To prevent a race, unw.needs_initialization must be cleared _after_ everything is initialized. (Logical change 1.121) --- src/ia64/global-ia64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ia64/global-ia64.c b/src/ia64/global-ia64.c index 8b788b98..396875df 100644 --- a/src/ia64/global-ia64.c +++ b/src/ia64/global-ia64.c @@ -88,8 +88,6 @@ ia64_init (void) /* another thread else beat us to it... */ goto out; - unw.needs_initialization = 0; - mi_init (); mempool_init (&unw.reg_state_pool, sizeof (struct ia64_reg_state), 0); @@ -136,6 +134,7 @@ ia64_init (void) } # endif #endif + unw.needs_initialization = 0; /* signal that we're initialized... */ } out: mutex_unlock (&unw.lock);