diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-25 16:38:31 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-25 16:38:31 -0700 |
commit | 223f5298620a3b3be9fbd206e2a3fbb388487da0 (patch) | |
tree | 286635488927e801c646d80e21d6a194261ed75b /memdump/memset.S | |
parent | 57556d8f612128679464667ce124ddc611795db2 (diff) | |
parent | a81fb89a445ae0dca286c861d8d51f705533df0d (diff) | |
download | syslinux-3.60-pre2.tar.gz |
Merge commit 'syslinux-3.52' into gpxe-supportsyslinux-3.60-pre2
Diffstat (limited to 'memdump/memset.S')
-rw-r--r-- | memdump/memset.S | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/memdump/memset.S b/memdump/memset.S new file mode 100644 index 00000000..86e12ab2 --- /dev/null +++ b/memdump/memset.S @@ -0,0 +1,21 @@ +# +# memset.S +# +# Minimal 16-bit memset() implementation +# + + .text + .code16gcc + .globl memset + .type memset, @function +memset: + cld + pushw %di + movw %ax,%di + movb %dl,%al + # The third argument is already in %cx + rep ; stosb + popw %di + retl + + .size memset,.-memset |