[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-dev
Subject:    Re: [Serdev] Porting to IXP425
From:       Andrei Pelinescu-Onciul <pelinescu-onciul () fokus ! fraunhofer ! de>
Date:       2003-12-17 16:00:06
Message-ID: 20031217160006.GC1733 () fokus ! fraunhofer ! de
[Download RAW message or body]

On Dec 17, 2003 at 12:33, Kun-Chih Hsieh <hsiehkc@mail.welltech.com.tw> wrote:
> Dear all:
> 
> 
> Recently I tried to port the SER to IXP425 platform under Linux OS.
> Any suggestion to go?

Add fast locking code for IXP425 to fastlock.h (you need to write an
assembly test-and-set-lock and release-lock -- look at the i386, sparc
or strongarm code in fastlock.h for examples).
You could get away without writing specific locking code. In this case
if you use Linux you should use SYSV sems. However there will be a big
performance penalty, so adding arch. specific locking code is much
better.

You should also change Makefile.defs. Add gcc options for maximum
performance on your architecture and if you have added fastlock code, 
 define also use_fast_lock, e.g.:
 ifeq ($(ARCH), arm)
         use_fast_lock=yes
 endif


Andrei


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic