Ignore:
Timestamp:
Dec 14, 2013, 8:39:48 PM (11 years ago)
Author:
cfuguet
Message:
  • Modification in giet_xml/xml_parser.c: When parsing IRQs, compare agains IRQ_TYPE_* constants instead of numbers for readibility
  • Modification in giet_common/utils.c Adding utility function to write on CP0 status register
  • Modification in giet_boot/boot.c After loading the kernel.elf file, the GIET exception handler is available (giet entry point). Therefore, we can reset the BEV bit of the status register to use the giet entry point instead of the preloader entry point in case of exception during kernel init function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_common/utils.c

    r258 r262  
    150150    asm volatile( "mfc0    %0,        $12" : "=r"(ret));
    151151    return ret;
     152}
     153//////////////////////////////////////////////////////////////////////////////
     154// This function set a new value for the CP0 status register.
     155//////////////////////////////////////////////////////////////////////////////
     156inline void _set_sr(unsigned int val)
     157{
     158    asm volatile( "mtc0    %0,        $12" ::"r" (val));
    152159}
    153160//////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.