Changeset ecbd287d in mainline


Ignore:
Timestamp:
2010-05-22T09:24:05Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb239dc
Parents:
7c8e1e1 (diff), 7f1d897 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge sparc64 kernel stack tracing improvements.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/sun4u/start.S

    r7c8e1e1 recbd287d  
    293293         * Call arch_pre_main(bootinfo)
    294294         */
     295        call arch_pre_main
    295296        mov %o1, %o0
    296         call arch_pre_main
    297         nop
    298        
     297       
     298        /*
     299         * Create the first stack frame.
     300         */
     301        save %sp, -(STACK_WINDOW_SAVE_AREA_SIZE + STACK_ARG_SAVE_AREA_SIZE), %sp
     302        flushw
     303        add %g0, -STACK_BIAS, %fp
     304
    299305        call main_bsp
    300306        nop
     
    303309
    3043100:
    305         ba %xcc, 0b
    306         nop
     311        ba,a %xcc, 0b
    307312
    308313
     
    354359        ldx [%g1], %o6
    355360
     361        /*
     362         * Create the first stack frame.
     363         */
     364        save %sp, -(STACK_WINDOW_SAVE_AREA_SIZE + STACK_ARG_SAVE_AREA_SIZE), %sp
     365        flushw
     366        add %g0, -STACK_BIAS, %fp
     367
    356368        call main_ap
    357369        nop
     
    361373       
    3623740:
    363         ba %xcc, 0b
    364         nop
     375        ba,a %xcc, 0b
    365376
    366377
  • kernel/arch/sparc64/src/sun4v/start.S

    r7c8e1e1 recbd287d  
    155155        mov 0, %o5
    156156        ta 0xff
    157         nop
    158157
    159158        /*
     
    250249         * Call arch_pre_main(bootinfo)
    251250         */
     251        call arch_pre_main
    252252        or %l1, %g0, %o0
    253         call arch_pre_main
    254         nop
    255253       
     254        /*
     255         * Create the first stack frame.
     256         */
     257        save %sp, -(STACK_WINDOW_SAVE_AREA_SIZE + STACK_ARG_SAVE_AREA_SIZE), %sp
     258        flushw
     259        add %g0, -STACK_BIAS, %fp
     260
    256261        call main_bsp
    257262        nop
     
    260265
    2612660:
    262         ba %xcc, 0b
    263         nop
     267        ba,a %xcc, 0b
    264268
    2652691:
     
    273277         */
    274278
    275         mov     1, %o0                  ! MMU enable flag
    276         set     mmu_enabled, %o1
    277         mov     MMU_ENABLE, %o5 ! MMU enable HV call
    278         ta      0x80            ! call HV
     279        mov 1, %o0              ! MMU enable flag
     280        set mmu_enabled, %o1
     281        mov MMU_ENABLE, %o5     ! MMU enable HV call
     282        ta 0x80                 ! call HV
    279283
    280284        mmu_enabled:
     
    289293        ldx [%g1], %o6
    290294
     295        /*
     296         * Create the first stack frame.
     297         */
     298        save %sp, -(STACK_WINDWO_SAVE_AREA_SIZE + STACK_ARG_SAVE_AREA_SIZE), %sp
     299        flushw
     300        add %g0, -STACK_BIAS, %fp
     301
    291302        call main_ap
    292303        nop
     
    295306        /* Not reached. */
    2963070:
    297         ba %xcc, 0b
    298         nop
     308        ba,a %xcc, 0b
    299309
    300310.align 8
     
    314324before_ap_boots:
    315325        setx 0x80400000, %g0, %o0
    316         ba %xcc, kernel_image_start
    317         nop
     326        ba,a %xcc, kernel_image_start
    318327
    319328.section K_DATA_START, "aw", @progbits
  • uspace/lib/c/arch/sparc64/src/thread_entry.s

    r7c8e1e1 recbd287d  
    3838        # Create the first stack frame.
    3939        #
     40        save %sp, -176, %sp
     41        flushw
     42        add %g0, -0x7ff, %fp
    4043
    41         #save %sp, -176, %sp
    42         #flushw
    43         #add %g0, -0x7ff, %fp
     44        #
     45        # Propagate the input arguments to the new window.
     46        #
     47        mov %i0, %o0
    4448
    4549        sethi %hi(_gp), %l7
Note: See TracChangeset for help on using the changeset viewer.