summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/qoriq/shmsupp/lock.S
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/powerpc/qoriq/shmsupp/lock.S')
-rw-r--r--c/src/lib/libbsp/powerpc/qoriq/shmsupp/lock.S52
1 files changed, 0 insertions, 52 deletions
diff --git a/c/src/lib/libbsp/powerpc/qoriq/shmsupp/lock.S b/c/src/lib/libbsp/powerpc/qoriq/shmsupp/lock.S
deleted file mode 100644
index c6e72a7533..0000000000
--- a/c/src/lib/libbsp/powerpc/qoriq/shmsupp/lock.S
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * @file
- *
- * @ingroup QorIQInterCom
- *
- * @brief qoriq_spin_lock() and qoriq_spin_unlock() implementation.
- */
-
-/*
- * Copyright (c) 2011 embedded brains GmbH. All rights reserved.
- *
- * embedded brains GmbH
- * Obere Lagerstr. 30
- * 82178 Puchheim
- * Germany
- * <rtems@embedded-brains.de>
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#include <libcpu/powerpc-utility.h>
-
- .global qoriq_spin_lock
- .global qoriq_spin_unlock
-
-qoriq_spin_lock:
- li r0, 1
- mfmsr r4
- GET_INTERRUPT_MASK r5
- andc r5, r4, r5
- b 2f
-1:
- mtmsr r4
-2:
- lwarx r6, r0, r3
- cmpwi r6, 0
- bne 2b
- mtmsr r5
- stwcx. r0, r0, r3
- bne 1b
- isync
- mr r3, r4
- blr
-
-qoriq_spin_unlock:
- msync
- li r0, 0
- stw r0, 0(r3)
- mtmsr r4
- blr