소스 검색

* 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: trunk@19149 -
sergei 14 년 전
부모
커밋
6f20627220
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      rtl/win/video.pp

+ 3 - 3
rtl/win/video.pp

@@ -578,9 +578,9 @@ begin
         pushq   %rsi
         pushq   %rdi
         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
         repe
         cmpsl