Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f1c7755 in mainline for kernel/test/atomic/atomic1.c


Ignore:
Timestamp:
2012-08-05T00:12:33Z (9 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master
Children:
b17518e
Parents:
6eaed07
Message:

Added atomic_swap_ptr() for ia32, amd64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/atomic/atomic1.c

    r6eaed07 rf1c7755  
    7171                return "Failed atomic_cas_ptr(): changed the ptr";
    7272       
     73        ptr = 0;
     74        if (atomic_swap_ptr(&ptr, a_ptr) != 0)
     75                return "Failed atomic_swap_ptr()";
     76        if (atomic_swap_ptr_local(&ptr, 0) != a_ptr || ptr != 0)
     77                return "Failed atomic_swap_ptr_local()";
     78       
    7379        return NULL;
    7480}
Note: See TracChangeset for help on using the changeset viewer.