From 167217bec15c9c7aa70ba2a3dc9c689b3cd91872 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 14 May 2001 14:19:32 +0000 Subject: import new version of dietlibc --- mdk-stage1/dietlibc/ppc/__testandset.S | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mdk-stage1/dietlibc/ppc/__testandset.S (limited to 'mdk-stage1/dietlibc/ppc/__testandset.S') diff --git a/mdk-stage1/dietlibc/ppc/__testandset.S b/mdk-stage1/dietlibc/ppc/__testandset.S new file mode 100644 index 000000000..a6063fbb2 --- /dev/null +++ b/mdk-stage1/dietlibc/ppc/__testandset.S @@ -0,0 +1,11 @@ +.global __testandset +.type __testandset,@function +.align 2 +__testandset: + lwarx 5,0,3 + add 0,4,5 + stwcx 0,0,3 + bne __testandset + blr +.size __testandset,.-__testandset + -- cgit v1.2.1