Browse Source

--- Merging r19149 into '.':
U rtl/win/video.pp

# revisions: 19149
------------------------------------------------------------------------
r19149 | sergei | 2011-09-19 17:18:28 +0200 (Mon, 19 Sep 2011) | 1 line
Changed paths:
M /trunk/rtl/win/video.pp

* Use rip-relative offsets in assembler, fixes linking text mode IDE with internal linker. The better way would be to get rid of this assembler altogether.
------------------------------------------------------------------------

git-svn-id: branches/fixes_2_6@19232 -

marco 14 years ago
parent
commit
d626235704
1 changed files with 3 additions and 3 deletions
  1. 3 3
      rtl/win/video.pp

+ 3 - 3
rtl/win/video.pp

@@ -578,9 +578,9 @@ begin
         pushq   %rsi
         pushq   %rsi
         pushq   %rdi
         pushq   %rdi
         xorq    %rcx,%rcx  
         xorq    %rcx,%rcx  
-        movq    VideoBuf,%rsi
-        movq    OldVideoBuf,%rdi
-        movl    VideoBufSize,%ecx
+        movq    VideoBuf(%rip),%rsi
+        movq    OldVideoBuf(%rip),%rdi
+        movl    VideoBufSize(%rip),%ecx
         shrq    $2,%rcx
         shrq    $2,%rcx
         repe
         repe
         cmpsl
         cmpsl