Changeset 2b264c4 in mainline
- Timestamp:
- 2023-02-02T21:58:36Z (2 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b076dfb
- Parents:
- f43d8ce
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-01-20 18:16:32)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-02 21:58:36)
- Location:
- kernel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/arch/asm.h
rf43d8ce r2b264c4 58 58 } 59 59 } 60 61 #define ARCH_SPIN_HINT() asm volatile ("pause\n") 60 62 61 63 /** Byte from port -
kernel/arch/arm32/include/arch/asm.h
rf43d8ce r2b264c4 65 65 } 66 66 67 #ifdef PROCESSOR_ARCH_armv7_a 68 #define ARCH_SPIN_HINT() asm volatile ("yield") 69 #endif 70 67 71 _NO_TRACE static inline void pio_write_8(ioport8_t *port, uint8_t v) 68 72 { -
kernel/arch/arm64/include/arch/asm.h
rf43d8ce r2b264c4 60 60 ; 61 61 } 62 63 #define ARCH_SPIN_HINT() asm volatile ("yield") 62 64 63 65 /** Output byte to port. -
kernel/arch/ia32/include/arch/asm.h
rf43d8ce r2b264c4 63 63 ); 64 64 } 65 66 #define ARCH_SPIN_HINT() asm volatile ("pause\n") 65 67 66 68 #define GEN_READ_REG(reg) _NO_TRACE static inline sysarg_t read_ ##reg (void) \ -
kernel/generic/src/synch/spinlock.c
rf43d8ce r2b264c4 37 37 */ 38 38 39 #include <arch/asm.h> 39 40 #include <synch/spinlock.h> 40 41 #include <atomic.h> … … 47 48 #include <stacktrace.h> 48 49 #include <cpu.h> 50 51 #ifndef ARCH_SPIN_HINT 52 #define ARCH_SPIN_HINT() ((void)0) 53 #endif 49 54 50 55 /** Initialize spinlock … … 77 82 78 83 while (atomic_flag_test_and_set_explicit(&lock->flag, memory_order_acquire)) { 84 ARCH_SPIN_HINT(); 85 79 86 #ifdef CONFIG_DEBUG_SPINLOCK 80 87 /*
Note:
See TracChangeset
for help on using the changeset viewer.