~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to libdb/mutex/uts4_cc.s

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 / See the file LICENSE for redistribution information.
2
 
 /
3
 
 / Copyright (c) 1997-2002
4
 
 /      Sleepycat Software.  All rights reserved.
5
 
 /
6
 
 / $Id$
7
 
 /
8
 
 / int uts_lock ( int *p, int i );
9
 
 /             Update the lock word pointed to by p with the
10
 
 /             value i, using compare-and-swap.
11
 
 /             Returns 0 if update was successful.
12
 
 /             Returns 1 if update failed.
13
 
 /
14
 
         entry   uts_lock
15
 
 uts_lock:
16
 
         using   .,r15
17
 
         st      r2,8(sp)        / Save R2
18
 
         l       r2,64+0(sp)     / R2 -> word to update
19
 
         slr     r0, r0          / R0 = current lock value must be 0
20
 
         l       r1,64+4(sp)     / R1 = new lock value
21
 
         cs      r0,r1,0(r2)     / Try the update ...
22
 
         be      x               /  ... Success.  Return 0
23
 
         la      r0,1            /  ... Failure.  Return 1
24
 
 x:                              /
25
 
         l       r2,8(sp)        / Restore R2
26
 
         b       2(,r14)         / Return to caller
27
 
         drop    r15