From 3f4d6d81eea34770ddb50cfbf589d4d7febf1802 Mon Sep 17 00:00:00 2001 From: hpa Date: Fri, 17 Dec 2004 10:03:47 +0000 Subject: Fix memcpy/memset to match the use of regparm and .code16gcc --- dos/memset.S | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'dos/memset.S') diff --git a/dos/memset.S b/dos/memset.S index a7f610a3..dd534e7b 100644 --- a/dos/memset.S +++ b/dos/memset.S @@ -6,17 +6,17 @@ # .text - .code16 + .code16gcc .globl memset .type memset, @function memset: cld - pushl %edi - movw 8(%esp),%di - movb 12(%esp),%al - movw 16(%esp),%cx + pushw %di + movw %ax,%di + movb %dl,%al + # The third argument is already in %cx rep ; stosb - popl %edi - ret + popw %di + retl .size memset,.-memset -- cgit v1.2.1