Print this page
de-linting of .s files
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4u/ml/memscrub_asm.s
+++ new/usr/src/uts/sun4u/ml/memscrub_asm.s
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License, Version 1.0 only
6 6 * (the "License"). You may not use this file except in compliance
7 7 * with the License.
8 8 *
9 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 * or http://www.opensolaris.org/os/licensing.
11 11 * See the License for the specific language governing permissions
12 12 * and limitations under the License.
13 13 *
14 14 * When distributing Covered Code, include this CDDL HEADER in each
15 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 * If applicable, add the following below this CDDL HEADER, with the
17 17 * fields enclosed by brackets "[]" replaced with your own identifying
18 18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 19 *
20 20 * CDDL HEADER END
21 21 */
22 22 /*
23 23 * Copyright (c) 2007 by Sun Microsystems, Inc.
24 24 */
25 25
26 -#pragma ident "%Z%%M% %I% %E% SMI"
27 -
28 26 /*
29 27 * General machine architecture & implementation specific
30 28 * assembly language routines.
31 29 */
32 -#if defined(lint)
33 -#include <sys/types.h>
34 -#include <sys/machsystm.h>
35 -#include <sys/t_lock.h>
36 -#else /* lint */
37 30 #include "assym.h"
38 -#endif /* lint */
39 31
40 32 #include <sys/asm_linkage.h>
41 33 #include <sys/eeprom.h>
42 34 #include <sys/param.h>
43 35 #include <sys/async.h>
44 36 #include <sys/intreg.h>
45 37 #include <sys/machthread.h>
46 38 #include <sys/iocache.h>
47 39 #include <sys/privregs.h>
48 40 #include <sys/archsystm.h>
49 41
50 -#if defined(lint)
51 -
52 -/*ARGSUSED*/
53 -void
54 -memscrub_read(caddr_t vaddr, u_int blks)
55 -{}
56 -
57 -#else /* lint */
58 -
59 42 !
60 43 ! void memscrub_read(caddr_t src, u_int blks)
61 44 !
62 45
63 46 .seg ".text"
64 47 .align 4
65 48
66 49 ENTRY(memscrub_read)
67 50 srl %o1, 0, %o1 ! clear upper word of blk count
68 51 rd %fprs, %o2 ! get the status of fp
69 52 wr %g0, FPRS_FEF, %fprs ! enable fp
70 53
71 54 1:
72 55 prefetch [%o0 + 8*64], 0
73 56 ldda [%o0]ASI_BLK_P, %d0
74 57 add %o0, 64, %o0
75 58 prefetch [%o0 + 8*64], 0
76 59 ldda [%o0]ASI_BLK_P, %d16
77 60 add %o0, 64, %o0
78 61 prefetch [%o0 + 8*64], 0
79 62 ldda [%o0]ASI_BLK_P, %d32
80 63 add %o0, 64, %o0
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
81 64 prefetch [%o0 + 8*64], 0
82 65 ldda [%o0]ASI_BLK_P, %d48
83 66 dec %o1
84 67 brnz,a %o1, 1b
85 68 add %o0, 64, %o0
86 69
87 70 retl
88 71 wr %o2, 0, %fprs ! restore fprs (disabled)
89 72 SET_SIZE(memscrub_read)
90 73
91 -#endif /* lint */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX