Changeset 570 for trunk/hal/tsar_mips32/core/hal_ppm.c
- Timestamp:
- Oct 5, 2018, 12:08:35 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_ppm.c
r457 r570 27 27 #include <hal_special.h> 28 28 #include <printk.h> 29 #include < spinlock.h>29 #include <busylock.h> 30 30 #include <process.h> 31 31 #include <ppm.h> … … 46 46 ////////////////////////////////////////////////////////////////////////////////////////// 47 47 48 48 49 /////////////////////////////////////////// 49 50 error_t hal_ppm_init( boot_info_t * info ) … … 59 60 60 61 // initialize lock protecting the free_pages[] lists 61 spinlock_init( &ppm->free_lock);62 busylock_init( &ppm->free_lock , LOCK_PPM_FREE ); 62 63 63 64 // initialize lock protecting the dirty_pages list 64 spinlock_init( &ppm->dirty_lock);65 queuelock_init( &ppm->dirty_lock , LOCK_PPM_DIRTY ); 65 66 66 67 // initialize all free_pages[] lists as empty
Note: See TracChangeset
for help on using the changeset viewer.