From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28321 invoked by alias); 15 Jun 2005 14:32:52 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 28310 invoked by uid 22791); 15 Jun 2005 14:32:47 -0000 Received: from 200.80.204.3.techtelnet.net (HELO mailgw.hasar.com) (200.80.204.3) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 15 Jun 2005 14:32:47 +0000 Received: from mailserver.hasar.com ([192.168.1.80]) by mailgw.hasar.com (8.12.11/8.12.10) with ESMTP id j5FEUEXt010150 for ; Wed, 15 Jun 2005 11:30:14 -0300 Received: (qmail 8436 invoked from network); 15 Jun 2005 14:36:16 -0000 Received: from unknown (HELO [192.0.2.187]) ([192.0.2.187]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 15 Jun 2005 14:36:16 -0000 Message-ID: <42B03AFD.8040106@hasar.com> Date: Wed, 15 Jun 2005 14:32:00 -0000 From: Leandro Fanzone User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8a6) Gecko/20050111 MIME-Version: 1.0 To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HASAR-MailScanner-Information: Please contact the Administrator for more information X-HASAR-MailScanner: Found to be clean X-MailScanner-From: leandro@hasar.com Subject: [ECOS] HAL_*_STRING X-SW-Source: 2005-06/txt/msg00106.txt.bz2 Hello, I'm using ecos 2.0 under x86, and tried to use the HAL_*_STRING macros, both for reading and writing. They don't work properly; the assembly output shows that they lack the rep instruction preceding the insb/outsb instructions. So the macros would be: #define HAL_READ_UINT8_STRING( _register_, _buf_, _count_) \ CYG_MACRO_START \ asm volatile ( "rep insb" \ : \ : "c" (_count_), "d"(_register_), "D"(_buf_) \ ); \ CYG_MACRO_END #define HAL_WRITE_UINT8_STRING( _register_, _buf_, _count_) \ CYG_MACRO_START \ asm volatile ( "rep outsb" \ : \ : "c" (_count_), "d"(_register_), "S"(_buf_) \ ); \ CYG_MACRO_END The same thing for the 16 bit and 32 bit versions. Regards, Leandro Fanzone -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss