2 * atomic64_t for 386/486
4 * Copyright © 2010 Luca Barbieri
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
12 #include <linux/linkage.h>
13 #include <asm/alternative-asm.h>
14 #include <asm/dwarf2.h>
16 /* if you want SMP support, implement these with real spinlocks */
19 CFI_ADJUST_CFA_OFFSET 4
25 CFI_ADJUST_CFA_OFFSET -4
31 ENTRY(atomic64_\func\()_386)
42 ENDPROC(atomic64_\func\()_386)
103 BEGIN inc_return %esi
117 BEGIN dec_return %esi
126 BEGIN add_unless %ecx
146 BEGIN inc_not_zero %esi
165 BEGIN dec_if_positive %esi