~ubuntu-branches/ubuntu/dapper/xen/dapper

« back to all changes in this revision

Viewing changes to xen/arch/i386/rwlock.c

  • Committer: Bazaar Package Importer
  • Author(s): Adam Heath
  • Date: 2005-07-06 12:35:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050706123550-9yx08wy5jdxmsxfq
Tags: 2.0.6-1
* Patches applied upstream: non-xen-init-exit.patch, add-build.patch,
  python-install.patch, disable-html-docs.patch.
* New upstream released.  Closes: #311336.
* Remove comparison to UML from xen short description.  Closes: #317066.
* Make packages conflicts with 1.2 doc debs.  Closes: #304285.
* Add iproute to xen depends, as it uses /bin/ip.  Closes: #300488,
  #317468.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <asm/atomic.h>
2
 
#include <asm/rwlock.h>
3
 
 
4
 
#if defined(CONFIG_SMP)
5
 
asm(
6
 
".align  4\n"
7
 
".globl  __write_lock_failed\n"
8
 
"__write_lock_failed:\n"
9
 
"        " LOCK "addl    $" RW_LOCK_BIAS_STR ",(%eax)\n"
10
 
"1:      rep; nop\n"
11
 
"        cmpl    $" RW_LOCK_BIAS_STR ",(%eax)\n"
12
 
"        jne     1b\n"
13
 
"        " LOCK "subl    $" RW_LOCK_BIAS_STR ",(%eax)\n"
14
 
"        jnz     __write_lock_failed\n"
15
 
"        ret\n"
16
 
 
17
 
".align  4\n"
18
 
".globl  __read_lock_failed\n"
19
 
"__read_lock_failed:\n"
20
 
"        lock ; incl     (%eax)\n"
21
 
"1:      rep; nop\n"
22
 
"        cmpl    $1,(%eax)\n"
23
 
"        js      1b\n"
24
 
"        lock ; decl     (%eax)\n"
25
 
"        js      __read_lock_failed\n"
26
 
"        ret\n"
27
 
);
28
 
#endif