[asterisk-bugs] [Asterisk 0004914]: tor2 doesn't work on x86_64

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 7 10:59:48 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=4914 
====================================================================== 
Reported By:                steveu
Assigned To:                markster
====================================================================== 
Project:                    Asterisk
Issue ID:                   4914
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           I did not set the version :( 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        Yes 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             08-07-2005 06:13 CDT
Last Modified:              06-07-2008 10:59 CDT
====================================================================== 
Summary:                    tor2 doesn't work on x86_64
Description: 
The 32 bit memory buffer in the tor2 drivers in 1.0.9 and CVS head are
declared as long, which maked them 64 bit on an x86_64 machine. This
scrambles things up rather nastily. The following patch fixes this. I
haven't tested very thoroughly, so there might still be more subtle issues.
I can, however, now make MFC/R2 calls with one of these cards.

100c100
<       volatile unsigned long *mem32;  /* Virtual representation of 32
bit Xilinx memory area */
---
>       volatile unsigned int *mem32;   /* Virtual representation of 32
bit Xilinx memory area */
1175c1175
<       unsigned long rxword,txword;
---
>       unsigned int rxword,txword;

====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-07-08 10:59  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 718

U   trunk/tor2.c

------------------------------------------------------------------------
r718 | markster | 2008-06-07 10:59:45 -0500 (Sat, 07 Jun 2008) | 2 lines

Fix tor2 for 64 bit machines (bug http://bugs.digium.com/view.php?id=4914)

------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=718 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 10:59  svnbot         Checkin                                      
06-07-08 10:59  svnbot         Note Added: 0088052                          
======================================================================




More information about the asterisk-bugs mailing list