Commit | Line | Data |
---|---|---|
ce29b371 MJ |
1 | // SPDX-FileCopyrightText: 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
2 | // | |
3 | // SPDX-License-Identifier: GPL-2.0-or-later | |
4 | ||
5e13fab8 MD |
5 | /* |
6 | * urcu-asm.c | |
7 | * | |
8 | * Userspace RCU library - assembly dump of primitives | |
5e13fab8 MD |
9 | */ |
10 | ||
ec4e58a3 | 11 | #include <urcu.h> |
0af68f5e MD |
12 | |
13 | void show_read_lock(void) | |
14 | { | |
15 | asm volatile ("/* start */"); | |
16 | rcu_read_lock(); | |
17 | asm volatile ("/* end */"); | |
18 | } | |
19 | ||
20 | void show_read_unlock(void) | |
21 | { | |
22 | asm volatile ("/* start */"); | |
23 | rcu_read_unlock(); | |
24 | asm volatile ("/* end */"); | |
25 | } |