Print this page
de-linting of .s files
*** 23,37 ****
* Use is subject to license terms.
*
* Assembly code support for the Cheetah+ module
*/
- #pragma ident "%Z%%M% %I% %E% SMI"
-
- #if !defined(lint)
#include "assym.h"
- #endif /* lint */
#include <sys/asm_linkage.h>
#include <sys/mmu.h>
#include <vm/hat_sfmmu.h>
#include <sys/machparam.h>
--- 23,33 ----
*** 52,63 ****
#ifdef TRAPTRACE
#include <sys/traptrace.h>
#endif /* TRAPTRACE */
- #if !defined(lint)
-
.global retire_l2_start
.global retire_l2_end
.global unretire_l2_start
.global unretire_l2_end
.global retire_l3_start
--- 48,57 ----
*** 125,144 ****
set PN_L2_IDX_DISP_FLUSH, scr3; \
or l2_idx_out, scr3, l2_idx_out; \
PN_ECACHE_REFLUSH_LINE(l2_idx_out, l3_idx_out, scr3, scr4)
- #endif /* !lint */
-
- #if defined(lint)
-
- /*ARGSUSED*/
- int
- retire_l2(uint64_t tag_addr, uint64_t pattern)
- {return 0;}
-
- #else
.align 4096
ENTRY(retire_l2)
retire_l2_start:
! since we disable interrupts, we don't need to do kpreempt_disable()
--- 119,128 ----
*** 196,217 ****
ba 9b
dec %o5
retire_l2_end:
SET_SIZE(retire_l2)
- #endif /* lint */
-
- #if defined(lint)
-
- /*
- */
- /*ARGSUSED*/
- int
- unretire_l2(uint64_t tag_addr, uint64_t pattern)
- {return 0;}
-
- #else
ENTRY(unretire_l2)
unretire_l2_start:
! since we disable interrupts, we don't need to do kpreempt_disable()
rdpr %pstate, %o2
--- 180,189 ----
*** 255,274 ****
retl
mov %o5, %o0
unretire_l2_end:
SET_SIZE(unretire_l2)
- #endif /* lint */
-
- #if defined(lint)
-
- /*ARGSUSED*/
- int
- retire_l3(uint64_t tag_addr, uint64_t pattern)
- {return 0;}
-
- #else
ENTRY(retire_l3)
retire_l3_start:
! since we disable interrupts, we don't need to do kpreempt_disable()
rdpr %pstate, %o2
--- 227,236 ----
*** 321,342 ****
ba 9b
dec %o5
retire_l3_end:
SET_SIZE(retire_l3)
- #endif /* lint */
-
- #if defined(lint)
-
- /*
- */
- /*ARGSUSED*/
- int
- unretire_l3(uint64_t tag_addr, uint64_t pattern)
- {return 0;}
-
- #else
ENTRY(unretire_l3)
unretire_l3_start:
! since we disable interrupts, we don't need to do kpreempt_disable()
rdpr %pstate, %o2
--- 283,292 ----
*** 380,399 ****
retl
mov %o5, %o0
unretire_l3_end:
SET_SIZE(unretire_l3)
- #endif /* lint */
-
- #if defined(lint)
-
- /*ARGSUSED*/
- int
- retire_l2_alternate(uint64_t tag_addr, uint64_t pattern)
- {return 0;}
-
- #else
.align 2048
ENTRY(retire_l2_alternate)
! since we disable interrupts, we don't need to do kpreempt_disable()
--- 330,339 ----
*** 450,471 ****
clr %o5
ba 9b
dec %o5
SET_SIZE(retire_l2_alternate)
- #endif /* lint */
-
- #if defined(lint)
-
- /*
- */
- /*ARGSUSED*/
- int
- unretire_l2_alternate(uint64_t tag_addr, uint64_t pattern)
- {return 0;}
-
- #else
ENTRY(unretire_l2_alternate)
! since we disable interrupts, we don't need to do kpreempt_disable()
rdpr %pstate, %o2
andn %o2, PSTATE_IE, %g1
--- 390,399 ----
*** 507,526 ****
wrpr %g0, %o2, %pstate !restore pstate
retl
mov %o5, %o0
SET_SIZE(unretire_l2_alternate)
- #endif /* lint */
-
- #if defined(lint)
-
- /*ARGSUSED*/
- int
- retire_l3_alternate(uint64_t tag_addr, uint64_t pattern)
- {return 0;}
-
- #else
ENTRY(retire_l3_alternate)
! since we disable interrupts, we don't need to do kpreempt_disable()
rdpr %pstate, %o2
andn %o2, PSTATE_IE, %g1
--- 435,444 ----
*** 571,592 ****
! Hmm. Not INV, not NA
ba 9b
dec %o5
SET_SIZE(retire_l3_alternate)
- #endif /* lint */
-
- #if defined(lint)
-
- /*
- */
- /*ARGSUSED*/
- int
- unretire_l3_alternate(uint64_t tag_addr, uint64_t pattern)
- {return 0;}
-
- #else
ENTRY(unretire_l3_alternate)
! since we disable interrupts, we don't need to do kpreempt_disable()
rdpr %pstate, %o2
andn %o2, PSTATE_IE, %g1
--- 489,498 ----
*** 628,647 ****
wrpr %g0, %o2, %pstate !restore pstate
retl
mov %o5, %o0
SET_SIZE(unretire_l3_alternate)
- #endif /* lint */
-
- #if defined(lint)
-
- /*ARGSUSED*/
- void
- get_ecache_dtags_tl1(uint64_t afar, ch_cpu_logout_t *clop)
- { }
-
- #else
ENTRY(get_ecache_dtags_tl1)
PARK_SIBLING_CORE(%g3, %g4, %g5)
add %g2, CH_CLO_DATA + CH_CHD_EC_DATA, %g2
--- 534,543 ----
*** 652,670 ****
UNPARK_SIBLING_CORE(%g3, %g4, %g5) ! can use %g3 again
retry
SET_SIZE(get_ecache_dtags_tl1)
- #endif /* lint */
-
- #if defined(lint)
- /*ARGSUSED*/
- void
- get_l2_tag_tl1(uint64_t tag_addr, uint64_t tag_data_ptr)
- { }
-
- #else
ENTRY(get_l2_tag_tl1)
/*
* Now read the tag data
*/
--- 548,557 ----
*** 672,690 ****
stx %g4, [%g2]
retry
SET_SIZE(get_l2_tag_tl1)
- #endif /* lint */
-
- #if defined(lint)
- /*ARGSUSED*/
- void
- get_l3_tag_tl1(uint64_t tag_addr, uint64_t tag_data_ptr)
- { }
-
- #else
ENTRY(get_l3_tag_tl1)
/*
* Now read the tag data
*/
--- 559,568 ----
*** 691,698 ****
ldxa [%g1]ASI_EC_DIAG, %g4 ! save tag_data
stx %g4, [%g2]
retry
SET_SIZE(get_l3_tag_tl1)
-
- #endif /* lint */
--- 569,574 ----