
The normal locking uses spinlocks that require getting at the current CPU, which in turn needs a current thread set. This has not been set up at this point and would simply cause tripple faults. Use manual locking using atomic ops instead. Change-Id: Ica894389330ef481eec84b667234139746ac4a46 Reviewed-on: https://review.haiku-os.org/808 Reviewed-by: waddlesplash <waddlesplash@gmail.com>