summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/psim/shmsupp/lock.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-05 14:42:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-05 14:42:59 +0000
commit39cc10ab8a4ca0e6a7bc504a53e41c1a57f8060e (patch)
tree73568bc762bac4ef9afe155d8f87453fe5d0f4c0 /c/src/lib/libbsp/powerpc/psim/shmsupp/lock.c
parent2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-39cc10ab8a4ca0e6a7bc504a53e41c1a57f8060e.tar.bz2
2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, preinstall.am, shmsupp/getcfg.c, shmsupp/lock.c, startup/linkcmds: Now running mptests using new memory layout with updates patches against gdb 6.8. * include/psim.h, startup/psim_registers.c: New files.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/powerpc/psim/shmsupp/lock.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/shmsupp/lock.c b/c/src/lib/libbsp/powerpc/psim/shmsupp/lock.c
index 3d2cb199b8..204d0188de 100644
--- a/c/src/lib/libbsp/powerpc/psim/shmsupp/lock.c
+++ b/c/src/lib/libbsp/powerpc/psim/shmsupp/lock.c
@@ -6,7 +6,7 @@
* and deadlock when two tasks poll for the same lock.
* previous level.
*
- * COPYRIGHT (c) 1989-1997.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may in
@@ -19,8 +19,7 @@
#include <rtems.h>
#include <bsp.h>
#include <shm_driver.h>
-
-typedef volatile unsigned int volint;
+#include <psim.h>
/*
* Shm_Initialize_lock
@@ -46,9 +45,7 @@ void Shm_Lock(
Shm_Locked_queue_Control *lq_cb
)
{
- volint *p = (volint *)0xc0010000;
-
- (void) p[1];
+ (void) PSIM.Semaphore.lock;
}
/*
@@ -61,7 +58,5 @@ void Shm_Unlock(
Shm_Locked_queue_Control *lq_cb
)
{
- volint *p = (volint *)0xc0010000;
-
- (void) p[2];
+ (void) PSIM.Semaphore.unlock;
}