diff options
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/lock.h | 3 | ||||
-rw-r--r-- | i386/intel/pmap.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/i386/i386/lock.h b/i386/i386/lock.h index 90f2d69a..1450fe03 100644 --- a/i386/i386/lock.h +++ b/i386/i386/lock.h @@ -55,6 +55,9 @@ #define simple_lock_init(l) \ ((l)->lock_data = 0) +#define SIMPLE_LOCK_INITIALIZER(l) \ + {.lock_data = 0} + #define simple_lock(l) \ ({ \ while(_simple_lock_xchg_(l, 1)) \ diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c index 91f797bf..ccbb03fc 100644 --- a/i386/intel/pmap.c +++ b/i386/intel/pmap.c @@ -123,7 +123,7 @@ pv_entry_t pv_head_table; /* array of entries, one per page */ * The list is refilled from the pv_list_cache if it becomes empty. */ pv_entry_t pv_free_list; /* free list at SPLVM */ -decl_simple_lock_data(, pv_free_list_lock) +def_simple_lock_data(static, pv_free_list_lock) #define PV_ALLOC(pv_e) { \ simple_lock(&pv_free_list_lock); \ @@ -427,7 +427,7 @@ pt_entry_t *kernel_page_dir; * physical-to-physical transfers. */ static pmap_mapwindow_t mapwindows[PMAP_NMAPWINDOWS]; -decl_simple_lock_data(static, pmapwindows_lock) +def_simple_lock_data(static, pmapwindows_lock) static inline pt_entry_t * pmap_pde(const pmap_t pmap, vm_offset_t addr) |