| 2008 | "Raw EFI Memory Map"); |
| 2009 | |
| 2010 | void |
| 2011 | spinlock_enter(void) |
| 2012 | { |
| 2013 | struct thread *td; |
| 2014 | register_t flags; |
| 2015 | |
| 2016 | td = curthread; |
| 2017 | if (td->td_md.md_spinlock_count == 0) { |
| 2018 | flags = intr_disable(); |
| 2019 | td->td_md.md_spinlock_count = 1; |
| 2020 | td->td_md.md_saved_flags = flags; |
| 2021 | critical_enter(); |
| 2022 | } else |
| 2023 | td->td_md.md_spinlock_count++; |
| 2024 | } |
| 2025 | |
| 2026 | void |
| 2027 | spinlock_exit(void) |
no test coverage detected