RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Functions
lock.c File Reference
#include <rtems.h>
#include <bsp.h>
#include <shm_driver.h>

Functions

void Shm_Initialize_lock (Shm_Locked_queue_Control *lq_cb)
 
unsigned int LEON3_Atomic_Swap (uint32_t value, uint32_t *address)
 
 __asm__ (".text\n" ".align 4\n" "LEON3_Atomic_Swap:\n" " retl\n" " swapa [%o1] 1, %o0\n")
 
void Shm_Lock (Shm_Locked_queue_Control *lq_cb)
 
void Shm_Unlock (Shm_Locked_queue_Control *lq_cb)
 

Detailed Description

LEON3 Shared Memory Lock Routines

This shared memory locked queue support routine need to be able to lock the specified locked queue. Interrupts are disabled while the queue is locked to prevent preemption and deadlock when two tasks poll for the same lock. previous level.