[Tinyos-beta-commits] CVS: tinyos-1.x/beta/platform/pxa27x/lib wmmx.c, NONE, 1.1 wmmx.h, NONE, 1.1

Lama Nachman lnachman at users.sourceforge.net
Tue Oct 18 14:32:58 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/beta/platform/pxa27x/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4740

Added Files:
	wmmx.c wmmx.h 
Log Message:
Start/stop WMMX coprocessor


--- NEW FILE: wmmx.c ---
#include "wmmx.h"

int startWMMX(){
  asm volatile ("mrc p15, 0, r9, c15, c1, 0\n\t" : : );
  asm volatile ("orr r10, r9, #0x3\n\t" : : );
  asm volatile ("mcr p15, 0, r10, c15, c1, 0\n\t" : : );
  return 1;
}

// Disable WMMX coprocessor
int stopWMMX() {
  asm volatile ("mov r10, #0\n\t" : : );
  asm volatile ("mcr p15, 0, r10, c15, c1, 0\n\t" : : );
  return 1;
}

--- NEW FILE: wmmx.h ---
#ifndef _WMMX_H__
#define _WMMX_H__

int startWMMX();
int stopWMMX();

#endif



More information about the Tinyos-beta-commits mailing list