Changeset a9ac978 in mainline for kernel/arch/sparc64/src/start.S
- Timestamp:
- 2006-09-27T20:11:34Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 00b38a3
- Parents:
- 86b31ba9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/start.S
r86b31ba9 ra9ac978 27 27 # 28 28 29 #include <arch/arch.h> 29 30 #include <arch/regdef.h> 30 31 #include <arch/boot/boot.h> … … 33 34 #include <arch/mm/tlb.h> 34 35 #include <arch/mm/tte.h> 36 37 #ifdef CONFIG_SMP 38 #include <arch/context_offset.h> 39 #endif 35 40 36 41 .register %g2, #scratch … … 227 232 wrpr %g0, 0, %tl 228 233 229 brz %l7, 2f ! skip if you are not the bootstrap CPU 234 brz %l7, 1f ! skip if you are not the bootstrap CPU 235 nop 230 236 231 237 call arch_pre_main … … 237 243 /* Not reached. */ 238 244 245 0: 246 ba 0b 247 nop 248 249 250 /* 251 * Read MID from the processor. 252 */ 253 1: 254 ldxa [%g0] ASI_UPA_CONFIG, %g1 255 srlx %g1, UPA_CONFIG_MID_SHIFT, %g1 256 and %g1, UPA_CONFIG_MID_MASK, %g1 257 258 /* 259 * Active loop for APs until the BSP picks them up. 260 * A processor cannot leave the loop until the 261 * global variable 'waking_up_mid' equals its 262 * MID. 263 */ 264 set waking_up_mid, %g2 239 265 2: 240 b 2b 241 nop 266 ldx [%g2], %g3 267 cmp %g3, %g1 268 bne 2b 269 nop 270 271 #ifdef CONFIG_SMP 272 /* 273 * Configure stack for the AP. 274 * The AP is expected to use the stack saved 275 * in the ctx global variable. 276 */ 277 set ctx, %g1 278 add %g1, OFFSET_SP, %g1 279 ldx [%g1], %o6 280 281 call main_ap 282 nop 283 #endif 284 285 /* Not reached. */ 286 287 0: 288 ba 0b 289 nop
Note:
See TracChangeset
for help on using the changeset viewer.