Commit | Line | Data |
---|---|---|
1 | // SPDX-FileCopyrightText: 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
2 | // | |
3 | // SPDX-License-Identifier: GPL-2.0-or-later | |
4 | ||
5 | /* | |
6 | * urcu-asm.c | |
7 | * | |
8 | * Userspace RCU library - assembly dump of primitives | |
9 | */ | |
10 | ||
11 | #include <urcu.h> | |
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 | } |