mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 20:39:24 +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
|
||||
movl linear_address,%edx
|
||||
movl %edx,%ecx
|
||||
pushl %gs
|
||||
movw selector,%gs
|
||||
.Larg19:
|
||||
movb %gs:(%edx),%al
|
||||
@ -46,6 +47,7 @@ asm
|
||||
incl %edx
|
||||
jmp .Larg19
|
||||
.Larg20:
|
||||
popl %gs
|
||||
movl %edx,%eax
|
||||
subl %ecx,%eax
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user