~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/powerpc/kernel/misc_64.S

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
415
415
 * Create a kernel thread
416
416
 *   kernel_thread(fn, arg, flags)
417
417
 */
418
 
_GLOBAL(original_kernel_thread)
 
418
_GLOBAL(kernel_thread)
419
419
        std     r29,-24(r1)
420
420
        std     r30,-16(r1)
421
421
        stdu    r1,-STACK_FRAME_OVERHEAD(r1)
462
462
 * wait for the flag to change, indicating this kernel is going away but
463
463
 * the slave code for the next one is at addresses 0 to 100.
464
464
 *
465
 
 * This is used by all slaves.
 
465
 * This is used by all slaves, even those that did not find a matching
 
466
 * paca in the secondary startup code.
466
467
 *
467
468
 * Physical (hardware) cpu id should be in r3.
468
469
 */
471
472
1:      mflr    r5
472
473
        addi    r5,r5,kexec_flag-1b
473
474
 
474
 
        li      r4,KEXEC_STATE_REAL_MODE
475
 
        stb     r4,PACAKEXECSTATE(r13)
476
 
        SYNC
477
 
 
478
475
99:     HMT_LOW
479
476
#ifdef CONFIG_KEXEC             /* use no memory without kexec */
480
477
        lwz     r4,0(r5)
499
496
 *
500
497
 * get phys id from paca
501
498
 * switch to real mode
 
499
 * mark the paca as no longer used
502
500
 * join other cpus in kexec_wait(phys_id)
503
501
 */
504
502
_GLOBAL(kexec_smp_wait)
505
503
        lhz     r3,PACAHWCPUID(r13)
506
504
        bl      real_mode
 
505
 
 
506
        li      r4,KEXEC_STATE_REAL_MODE
 
507
        stb     r4,PACAKEXECSTATE(r13)
 
508
        SYNC
 
509
 
507
510
        b       .kexec_wait
508
511
 
509
512
/*