Changeset c59409e in buchla-68k for libsm


Ignore:
Timestamp:
08/19/2017 09:20:16 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
ad89950
Parents:
197ff76
Message:

Volatile hardware accesses.

Location:
libsm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libsm/memcpyw.c

    r197ff76 rc59409e  
    1111#include "ram.h"
    1212
    13 void *memcpyw(void *vp1, void *vp2, int16_t n)
     13volatile void *memcpyw(volatile void *vp1, volatile void *vp2, int16_t n)
    1414{
    15         int16_t *sp1 = vp1;
    16         int16_t *sp2 = vp2;
     15        volatile int16_t *sp1 = vp1;
     16        volatile int16_t *sp2 = vp2;
    1717
    1818        while (--n >= 0)
  • libsm/memcpyw.x

    r197ff76 rc59409e  
    1515*/
    1616
    17 extern  void            *memcpyw(void *vp1, void *vp2, int16_t n);
     17extern  volatile void   *memcpyw(volatile void *vp1, volatile void *vp2, int16_t n);
  • libsm/memsetw.c

    r197ff76 rc59409e  
    1111#include "ram.h"
    1212
    13 void *memsetw(void *vp, uint16_t s, int16_t n)
     13volatile void *memsetw(volatile void *vp, uint16_t s, int16_t n)
    1414{
    15         uint16_t *sp = vp;
     15        volatile uint16_t *sp = vp;
    1616
    1717        while (--n >= 0)
  • libsm/memsetw.x

    r197ff76 rc59409e  
    1515*/
    1616
    17 extern  void            *memsetw(void *vp, uint16_t s, int16_t n);
     17extern  volatile void   *memsetw(volatile void *vp, uint16_t s, int16_t n);
Note: See TracChangeset for help on using the changeset viewer.