~ubuntu-branches/ubuntu/vivid/syslinux/vivid-proposed

« back to all changes in this revision

Viewing changes to dos/getsetsl.c

  • Committer: Package Import Robot
  • Author(s): Daniel Baumann
  • Date: 2014-06-14 10:55:07 UTC
  • mfrom: (1.3.17)
  • Revision ID: package-import@ubuntu.com-20140614105507-2sh4czic7un5snhd
Tags: 3:6.03~pre14+dfsg-1
* Correcting spelling mistakes for os-prober integration, thanks to
  Zlatko Calusic <zcalusic@bitsync.net> (Closes: #748786).
* Moving isohybrid from isolinux to syslinux-utils for consistency.
* Adding extlinux NEWS file to document bootloader integration in
  syslinux-stuff (Closes: #748689).
* Merging upstream version 6.03~pre14+dfsg.
* Dropping nonx86.patch, included upstream.
* Building with embedded gnu-efi.
* Building with gcc-4.8.
* Updating years copyright notices in debian files.
* Dropping debian specific memdiskfind manpage for newly added upstream
  one.
* Dropping debian specific isohybrid manpage for newly added upstream
  one.
* Updating todo file.
* Updating readme file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
                 : "r" (seg)
124
124
                 : "memory");
125
125
}
 
126
 
 
127
void memset_sl(void *dst, int c, size_t len)
 
128
{
 
129
    uint16_t seg;
 
130
    uint16_t off;
 
131
 
 
132
    seg = ds() + ((size_t)dst >> 4);
 
133
    off = (size_t)dst & 15;
 
134
 
 
135
    asm volatile("pushw %%es ; "
 
136
                 "movw %3,%%es ; "
 
137
                 "rep ; stosb ; "
 
138
                 "popw %%es"
 
139
                 : "+D" (off), "+c" (len)
 
140
                 : "a" (c), "r" (seg)
 
141
                 : "memory");
 
142
}