Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gsync: Fix assertion failure with MACH_LDEBUG | Samuel Thibault | 2016-10-31 | 1 | -5/+5 |
| | | | | | | | | | vm_map_lock_read calls check_simple_locks(), so we need to lock hbp after taking the vm_map read lock. * kern/gsync.c (gsync_wait): Call vm_map_lock_read before locking &hbp->lock. (gsync_wake): Likewise. | ||||
* | Avoid using C99 for variable declaration for now | Samuel Thibault | 2016-04-17 | 1 | -1/+2 |
| | | | | * kern/gsync.c (gsync_setup): Declare `i' variable out of for loop. | ||||
* | Lightweight synchronization mechanism | Agustina Arzille | 2016-04-15 | 1 | -0/+412 |
* Makefrag.am (libkernel_a_SOURCES): Add kern/gsync.c and kern/gsync.h. * include/mach/gnumach.defs (gsync_wait, gsync_wake, gsync_requeue): New routines. * include/mach/kern_return.h (KERN_TIMEDOUT, KERN_INTERRUPTED): New error codes. * kern/gsync.c: New file. * kern/gsync.h: New file. * kern/startup.c: Include <kern/gsync.h> (setup_main): Call gsync_setup. |