1 /* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/misc/SlowBcopy.S,v 1.1 1999/07/10 07:24:51 dawes Exp $ */
2 /*******************************************************************************
3 Copyright 1994 by Glenn G. Lai
7 Permission to use, copy, modify, and distribute this software and its
8 documentation for any purpose and without fee is hereby granted,
9 provided that the above copyr notice appear in all copies and that
10 both that copyr notice and this permission notice appear in
11 supporting documentation, and that the name of Glenn G. Lai not be
12 used in advertising or publicity pertaining to distribution of the
13 software without specific, written prior permission.
15 Glenn G. Lai DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
16 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
17 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
18 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
19 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
20 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
28 *******************************************************************************/
29 /* $XConsortium: SlowBcopy.s /main/4 1996/02/21 17:40:52 kaleb $ */
32 * Modified from the output generated by GCC
34 * Create a dependency that should be immune from the effect of register
35 * renaming as is commonly seen in superscalar processors. This should
36 * insert a minimum of 100-ns delays between reads/writes at clock rates
39 * Slowbcopy(char *src, char *dst, int count)
52 GLOBL GLNAME(xf86SlowBcopy)
56 GLNAME(xf86SlowBcopy):
61 MOV_L (REGOFF(8,EBP),ECX)
62 MOV_L (REGOFF(12,EBP),EDX)
63 MOV_L (REGOFF(16,EBP),ESI)
70 MOV_B (REGIND(ECX),BL)
83 MOV_B (BL,REGIND(EDX))
102 LEA_L (REGOFF(-8,EBP),ESP)