[AD] [PATCH] minor asm fixes |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Included are two patches for the asm code, against current CVS. The
first patch is a cosmetic change that fixes a typo in src/i386/iscan.s.
The second one fixes function calls that should be far calls because
the functions are defined in other files and there is no guarantee that
their address will be near at link time.
Regards,
--
Sam.
Index: src/i386/iscan.s
===================================================================
RCS file: /cvsroot/alleg/allegro/src/i386/iscan.s,v
retrieving revision 1.8
diff -u -r1.8 iscan.s
--- src/i386/iscan.s 16 Jul 2003 19:43:28 -0000 1.8
+++ src/i386/iscan.s 4 Sep 2004 14:35:46 -0000
@@ -944,9 +944,9 @@
#undef INIT
#undef SINGLE_PIXEL
- #undef PREPARE_FOUR_PIXELSS
+ #undef PREPARE_FOUR_PIXELS
#undef FOUR_PIXELS
- #undef WRITE_FOUR_PIXELSS
+ #undef WRITE_FOUR_PIXELS
ret /* end of _poly_scanline_ptex_lit8() */
Index: src/qnx/qswitch.s
===================================================================
RCS file: /cvsroot/alleg/allegro/src/qnx/qswitch.s,v
retrieving revision 1.5
diff -u -r1.5 qswitch.s
--- src/qnx/qswitch.s 9 Jul 2002 17:45:20 -0000 1.5
+++ src/qnx/qswitch.s 4 Sep 2004 14:38:26 -0000
@@ -41,7 +41,7 @@
pushl %ecx
pushl %eax
pushl %edx
- call GLOBL(PgWaitHWIdle)
+ call *GLOBL(PgWaitHWIdle)
popl %edx
popl %eax
popl %ecx
Index: src/x/xdga2s.s
===================================================================
RCS file: /cvsroot/alleg/allegro/src/x/xdga2s.s,v
retrieving revision 1.5
diff -u -r1.5 xdga2s.s
--- src/x/xdga2s.s 9 Jul 2002 17:45:20 -0000 1.5
+++ src/x/xdga2s.s 4 Sep 2004 14:38:27 -0000
@@ -37,7 +37,7 @@
pushl %ecx
pushl %eax
pushl %edx
- call GLOBL(_xdga2_lock)
+ call *GLOBL(_xdga2_lock)
popl %edx
popl %eax
popl %ecx
Index: src/x/xwins.s
===================================================================
RCS file: /cvsroot/alleg/allegro/src/x/xwins.s,v
retrieving revision 1.7
diff -u -r1.7 xwins.s
--- src/x/xwins.s 31 Aug 2004 07:29:29 -0000 1.7
+++ src/x/xwins.s 4 Sep 2004 14:38:27 -0000
@@ -32,7 +32,7 @@
pushl %ecx
pushl %eax
pushl %edx
- call GLOBL(_xwin_write_line)
+ call *GLOBL(_xwin_write_line)
popl %edx
popl %ecx /* preserve %eax */
popl %ecx
@@ -43,7 +43,7 @@
pushl %ecx
pushl %eax
pushl %edx
- call GLOBL(_xwin_unwrite_line)
+ call *GLOBL(_xwin_unwrite_line)
popl %edx
popl %eax
popl %ecx