Ticket #1918: sparc64-contextinit.diff

File sparc64-contextinit.diff, 654 bytes (added by Gedare Bloom, on Sep 20, 2011 at 3:58:33 PM)

initialize context with cleared g4 register

  • cpukit/score/cpu/sparc64/cpu.c

    RCS file: /usr1/CVS/rtems/cpukit/score/cpu/sparc64/cpu.c,v
    retrieving revision 1.2
    diff -u -r1.2 cpu.c
     
    104104    the_context->o6_sp = stack_high - CPU_MINIMUM_STACK_FRAME_SIZE - STACK_BIAS;
    105105    the_context->i6_fp = 0;
    106106
     107    /* ABI uses g4 as segment register, make sure it is zeroed */
     108    the_context->g4    = 0;
     109
    107110    /* PSTATE used to be built here, but is no longer included in context */
    108111
    109112  /*