mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 12:09:30 +02:00
* preserve gs in far_strlen
git-svn-id: trunk@8256 -
This commit is contained in:
parent
05b3c0311b
commit
908a116cfc
@ -38,6 +38,7 @@ function far_strlen(selector : word;linear_address : longint) : longint;assemble
|
|||||||
asm
|
asm
|
||||||
movl linear_address,%edx
|
movl linear_address,%edx
|
||||||
movl %edx,%ecx
|
movl %edx,%ecx
|
||||||
|
pushl %gs
|
||||||
movw selector,%gs
|
movw selector,%gs
|
||||||
.Larg19:
|
.Larg19:
|
||||||
movb %gs:(%edx),%al
|
movb %gs:(%edx),%al
|
||||||
@ -46,6 +47,7 @@ asm
|
|||||||
incl %edx
|
incl %edx
|
||||||
jmp .Larg19
|
jmp .Larg19
|
||||||
.Larg20:
|
.Larg20:
|
||||||
|
popl %gs
|
||||||
movl %edx,%eax
|
movl %edx,%eax
|
||||||
subl %ecx,%eax
|
subl %ecx,%eax
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user