diff options
Diffstat (limited to 'usr/src/uts/sun4u/cpu/cheetah_copy.s')
| -rw-r--r-- | usr/src/uts/sun4u/cpu/cheetah_copy.s | 165 |
1 files changed, 1 insertions, 164 deletions
diff --git a/usr/src/uts/sun4u/cpu/cheetah_copy.s b/usr/src/uts/sun4u/cpu/cheetah_copy.s index 44961025d1..6805e5e218 100644 --- a/usr/src/uts/sun4u/cpu/cheetah_copy.s +++ b/usr/src/uts/sun4u/cpu/cheetah_copy.s @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/param.h> #include <sys/errno.h> #include <sys/asm_linkage.h> @@ -37,9 +35,7 @@ #include <sys/privregs.h> #include <sys/fpras_impl.h> -#if !defined(lint) #include "assym.h" -#endif /* lint */ /* * Pseudo-code to aid in understanding the control flow of the @@ -621,7 +617,6 @@ * of the copy code to membar #Sync immediately after copy is complete * and before using the BLD_*_FROMSTACK macro. */ -#if !defined(lint) #define BST_FPQ1Q3_TOSTACK(tmp1) \ /* membar #Sync */ ;\ add %fp, STACK_BIAS - SAVED_FPREGS_ADJUST, tmp1 ;\ @@ -657,7 +652,6 @@ add tmp1, VIS_BLOCKSIZE, tmp1 ;\ ldda [tmp1]ASI_BLK_P, %f48 ;\ membar #Sync -#endif /* * FP_NOMIGRATE and FP_ALLOWMIGRATE. Prevent migration (or, stronger, @@ -737,15 +731,6 @@ label2: * Returns errno value on pagefault error, 0 if all ok */ -#if defined(lint) - -/* ARGSUSED */ -int -kcopy(const void *from, void *to, size_t count) -{ return(0); } - -#else /* lint */ - .seg ".text" .align 4 @@ -913,7 +898,6 @@ fp_panic_msg: mov %g0, %o0 ! SET_SIZE(kcopy) -#endif /* lint */ /* @@ -924,14 +908,6 @@ fp_panic_msg: * Copy a page of memory. * Assumes double word alignment and a count >= 256. */ -#if defined(lint) - -/* ARGSUSED */ -void -bcopy(const void *from, void *to, size_t count) -{} - -#else /* lint */ ENTRY(bcopy) @@ -1502,21 +1478,10 @@ bcopy(const void *from, void *to, size_t count) SET_SIZE(bcopy_more) -#endif /* lint */ - /* * Block copy with possibly overlapped operands. */ -#if defined(lint) - -/*ARGSUSED*/ -void -ovbcopy(const void *from, void *to, size_t count) -{} - -#else /* lint */ - ENTRY(ovbcopy) tst %o2 ! check count bgu,a %ncc, 1f ! nothing to do or bad arguments @@ -1560,8 +1525,6 @@ ovbcopy(const void *from, void *to, size_t count) SET_SIZE(ovbcopy) -#endif /* lint */ - /* * hwblkpagecopy() @@ -1570,12 +1533,6 @@ ovbcopy(const void *from, void *to, size_t count) * has already disabled kernel preemption and has checked * use_hw_bcopy. Preventing preemption also prevents cpu migration. */ -#ifdef lint -/*ARGSUSED*/ -void -hwblkpagecopy(const void *src, void *dst) -{ } -#else /* lint */ ENTRY(hwblkpagecopy) ! get another window w/space for three aligned blocks of saved fpregs save %sp, -SA(MINFRAME + HWCOPYFRAMESIZE), %sp @@ -1703,7 +1660,6 @@ hwblkpagecopy(const void *src, void *dst) restore %g0, 0, %o0 SET_SIZE(hwblkpagecopy) -#endif /* lint */ /* @@ -1762,10 +1718,6 @@ hwblkpagecopy(const void *src, void *dst) * Copy kernel data to user space (copyout/xcopyout/xcopyout_little). */ -#if defined(lint) - - -#else /* lint */ /* * We save the arguments in the following registers in case of a fault: * kaddr - %l1 @@ -1832,17 +1784,6 @@ hwblkpagecopy(const void *src, void *dst) SET_SIZE(copyio_fault) -#endif - -#if defined(lint) - -/*ARGSUSED*/ -int -copyout(const void *kaddr, void *uaddr, size_t count) -{ return (0); } - -#else /* lint */ - ENTRY(copyout) cmp %o2, VIS_COPY_THRESHOLD ! check for leaf rtn case @@ -2467,17 +2408,6 @@ copyout(const void *kaddr, void *uaddr, size_t count) SET_SIZE(copyout_more) -#endif /* lint */ - - -#ifdef lint - -/*ARGSUSED*/ -int -xcopyout(const void *kaddr, void *uaddr, size_t count) -{ return (0); } - -#else /* lint */ ENTRY(xcopyout) cmp %o2, VIS_COPY_THRESHOLD ! check for leaf rtn case @@ -2583,17 +2513,6 @@ xcopyout(const void *kaddr, void *uaddr, size_t count) SET_SIZE(xcopyout) -#endif /* lint */ - -#ifdef lint - -/*ARGSUSED*/ -int -xcopyout_little(const void *kaddr, void *uaddr, size_t count) -{ return (0); } - -#else /* lint */ - ENTRY(xcopyout_little) sethi %hi(.xcopyio_err), %o5 or %o5, %lo(.xcopyio_err), %o5 @@ -2624,21 +2543,10 @@ xcopyout_little(const void *kaddr, void *uaddr, size_t count) SET_SIZE(xcopyout_little) -#endif /* lint */ - /* * Copy user data to kernel space (copyin/xcopyin/xcopyin_little) */ -#if defined(lint) - -/*ARGSUSED*/ -int -copyin(const void *uaddr, void *kaddr, size_t count) -{ return (0); } - -#else /* lint */ - ENTRY(copyin) cmp %o2, VIS_COPY_THRESHOLD ! check for leaf rtn case bleu,pt %ncc, .copyin_small ! go to larger cases @@ -3254,17 +3162,6 @@ copyin(const void *uaddr, void *kaddr, size_t count) SET_SIZE(copyin_more) -#endif /* lint */ - -#ifdef lint - -/*ARGSUSED*/ -int -xcopyin(const void *uaddr, void *kaddr, size_t count) -{ return (0); } - -#else /* lint */ - ENTRY(xcopyin) cmp %o2, VIS_COPY_THRESHOLD ! check for leaf rtn case @@ -3370,17 +3267,6 @@ xcopyin(const void *uaddr, void *kaddr, size_t count) SET_SIZE(xcopyin) -#endif /* lint */ - -#ifdef lint - -/*ARGSUSED*/ -int -xcopyin_little(const void *uaddr, void *kaddr, size_t count) -{ return (0); } - -#else /* lint */ - ENTRY(xcopyin_little) sethi %hi(.xcopyio_err), %o5 or %o5, %lo(.xcopyio_err), %o5 @@ -3417,21 +3303,11 @@ xcopyin_little(const void *uaddr, void *kaddr, size_t count) SET_SIZE(xcopyin_little) -#endif /* lint */ - /* * Copy a block of storage - must not overlap (from + len <= to). * No fault handler installed (to be called under on_fault()) */ -#if defined(lint) - -/* ARGSUSED */ -void -copyin_noerr(const void *ufrom, void *kto, size_t count) -{} - -#else /* lint */ ENTRY(copyin_noerr) cmp %o2, VIS_COPY_THRESHOLD ! check for leaf rtn case @@ -3515,21 +3391,12 @@ copyin_noerr(const void *ufrom, void *kto, size_t count) nop SET_SIZE(copyin_noerr) -#endif /* lint */ /* * Copy a block of storage - must not overlap (from + len <= to). * No fault handler installed (to be called under on_fault()) */ -#if defined(lint) - -/* ARGSUSED */ -void -copyout_noerr(const void *kfrom, void *uto, size_t count) -{} - -#else /* lint */ ENTRY(copyout_noerr) cmp %o2, VIS_COPY_THRESHOLD ! check for leaf rtn case @@ -3603,7 +3470,6 @@ copyout_noerr(const void *kfrom, void *uto, size_t count) or REAL_LOFAULT, %lo(.copyio_noerr), REAL_LOFAULT SET_SIZE(copyout_noerr) -#endif /* lint */ /* @@ -3614,14 +3480,6 @@ copyout_noerr(const void *kfrom, void *uto, size_t count) * Caller is responsible for ensuring use_hw_bzero is true and that * kpreempt_disable() has been called. */ -#ifdef lint -/*ARGSUSED*/ -int -hwblkclr(void *addr, size_t len) -{ - return(0); -} -#else /* lint */ ! %i0 - start address ! %i1 - length of region (multiple of 64) ! %l0 - saved fprs @@ -3722,14 +3580,7 @@ hwblkclr(void *addr, size_t len) restore %g0, 0, %o0 ! return (bzero or not) SET_SIZE(hwblkclr) -#endif /* lint */ - -#ifdef lint -/*ARGSUSED*/ -void -hw_pa_bcopy32(uint64_t src, uint64_t dst) -{} -#else /*!lint */ + /* * Copy 32 bytes of data from src (%o0) to dst (%o1) * using physical addresses. @@ -3764,19 +3615,6 @@ hw_pa_bcopy32(uint64_t src, uint64_t dst) SET_SIZE(hw_pa_bcopy32) -#endif /* lint */ - -#if defined(lint) - -int use_hw_bcopy = 1; -int use_hw_bzero = 1; -uint_t hw_copy_limit_1 = 0; -uint_t hw_copy_limit_2 = 0; -uint_t hw_copy_limit_4 = 0; -uint_t hw_copy_limit_8 = 0; - -#else /* !lint */ - DGDEF(use_hw_bcopy) .word 1 DGDEF(use_hw_bzero) @@ -3792,4 +3630,3 @@ uint_t hw_copy_limit_8 = 0; .align 64 .section ".text" -#endif /* !lint */ |
