OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [common/] [crt0.S] - Diff between revs 7 and 11

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 7 Rev 11
Line 216... Line 216...
 
 
// *********************************************************
// *********************************************************
// Go to endless sleep mode if main returns
// Go to endless sleep mode if main returns
// *********************************************************
// *********************************************************
__crt0_this_is_the_end:
__crt0_this_is_the_end:
  wfi                      // in case Ziscr is not available -> processor should stall here
 
  csrrci zero, mstatus, 8  // mstatus: disable global IRQs (MIE)
  csrrci zero, mstatus, 8  // mstatus: disable global IRQs (MIE)
  wfi
  wfi
  j .
__crt0_this_is_the_end_end:
 
  j __crt0_this_is_the_end_end // in case Ziscr is not available
 
 
 
 
// *********************************************************
// *********************************************************
// NEORV32 runtime environment: First-level exception/interrupt handler
// NEORV32 runtime environment: First-level exception/interrupt handler
// *********************************************************
// *********************************************************

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.