[Kamailio-Users] OpenSER without MYSQL

Alex Balashov abalashov at evaristesys.com
Thu Aug 13 16:25:59 CEST 2009


Henning Westerholt wrote:

> actually there is some assembly code which is used for fast locking:
> 
> https://openser.svn.sourceforge.net/svnroot/openser/branches/1.5/fastlock.h
> 
> SCNR. :-)

Oh.

Well - ausgezeichnet!  I stand corrected!   :)  Now, onto the matter of 
specification for the ARM9...

#elif defined __CPU_arm
	asm volatile(
			"# here \n\t"
			"swpb %0, %1, [%2] \n\t"
			: "=&r" (val)
			: "r"(1), "r" (lock) : "memory"
	);

...

#elif defined __CPU_arm
	asm volatile(
		" str %0, [%1] \n\r"
		: /*no outputs*/
		: "r"(0), "r"(lock)
		: "memory"
	);

:)

-- 
Alex Balashov
Evariste Systems
Web     : http://www.evaristesys.com/
Tel     : (+1) (678) 954-0670
Direct  : (+1) (678) 954-0671



More information about the Users mailing list