* ========== Copyright Header Begin ==========================================
* OpenSPARC T2 Processor File: ncu_park_by_running_rw1c.s
* Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
* 4150 Network Circle, Santa Clara, California 95054, U.S.A.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* For the avoidance of doubt, and except that if any non-GPL license
* choice is available it will apply instead, Sun elects to use only
* the General Public License version 2 (GPLv2) at this time for any
* software where a choice of GPL license versions is made
* available with the language indicating that GPLv2 or any later version
* may be used, or where a choice of which version of the GPL is applied is
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* ========== Copyright Header End ============================================
#define MAIN_PAGE_NUCLEUS_ALSO
#define MAIN_PAGE_HV_ALSO
! Just halt all other threads
! Enable/disable other threads and check status to see if
! these threads were correctly parked/unparked
ldxa [ASI_CMP_CORE_RUNNING_STATUS]%asi, %g2
setx 0x7fffffffffffffff,%l0,%g7
setx asi_running_rw1c_mask,%l0,%g6
stxa %g7,[ASI_CMP_CORE_RUNNING_RW]%asi
stxa %g1,[ASI_CMP_CORE_RUNNING_W1C]%asi
ldxa [ASI_CMP_CORE_RUNNING_RW]%asi, %g2
ldxa [ASI_CMP_CORE_RUNNING_STATUS]%asi, %g2
! Special case of disabling self
setx 0xffffffffffffffff,%l0,%g7
stxa %g7,[ASI_CMP_CORE_RUNNING_RW]%asi
setx 0x7fffffffffffffff,%l0,%g1
stxa %g1,[ASI_CMP_CORE_RUNNING_W1C]%asi
setx 0x8000000000000000,%l0,%g1
ldxa [ASI_CMP_CORE_RUNNING_RW]%asi, %g2
ldxa [ASI_CMP_CORE_RUNNING_STATUS]%asi, %g2
/******************************************************
*******************************************************/
.xword 0x9849543973ffacea
.xword 0x9873423420976290
.xword 0x6876cedec243baa0
.xword 0xafccafcafadeafcc
.xword 0x9876234524000004
.xword 0xe23287634bcafed8
.xword 0x94cad5362ddcec98
.xword 0x20027373bced6940
.xword 0x58cde0de5438b098
.xword 0x9763245926423460
.xword 0x998bcade2345326a
.xword 0x876324c2de739290
.xword 0xbacedceafdbffbec
.xword 0x52823c3de3cfade2
.xword 0xbace420789988672
.xword 0x9849543973ffacec
.xword 0x987342342097629e
.xword 0x6876cedec243baa0
.xword 0xafccafcafadeafcc
.xword 0x9876234524000008
.xword 0x0000000000000000
.xword 0x8000000000000000
.xword 0x0040000000000000
.xword 0x0000200000000000
.xword 0x0000001000000000
.xword 0x0000000000000000
.xword 0x00000000ff000000
.xword 0x0000000000770000
.xword 0x000000000000ff00
.xword 0x0000000000000022
.xword 0xffffffffffffffff
.xword 0x8000000000000000