   1              		.file	"hal_irq.c"
   2              		.option nopic
   3              		.attribute arch, "rv32i2p0_m2p0"
   4              		.attribute unaligned_access, 0
   5              		.attribute stack_align, 16
   6              		.text
   7              		.section	.text.HAL_enable_interrupts,"ax",@progbits
   8              		.align	2
   9              		.globl	HAL_enable_interrupts
  11              	HAL_enable_interrupts:
  12              	 #APP
  13              	# 617 "C:\2023\Microchip_Projects\Design_updates\2023.2\SoftConsole_updated\miv-rv32im-bootloader/m
   0              	
  14              		csrrs a5, mstatus, 8
  15              	# 0 "" 2
  16              	 #NO_APP
  17 0004 67800000 		ret
  19              		.section	.text.HAL_disable_interrupts,"ax",@progbits
  20              		.align	2
  21              		.globl	HAL_disable_interrupts
  23              	HAL_disable_interrupts:
  24              	 #APP
  25              	# 31 "../hal/hal_irq.c" 1
   1              	/***************************************************************************//**
   2              	 * Copyright 2019-2022 Microchip FPGA Embedded Systems Solutions.
   3              	 *
   4              	 * SPDX-License-Identifier: MIT
   5              	 * 
   6              	 * @file hal_irq.c
   7              	 * @author Microchip FPGA Embedded Systems Solutions
   8              	 * @brief Legacy interrupt control functions for the Microchip driver library 
   9              	 * hardware abstraction layer.
  10              	 *
  11              	 */
  12              	#include "hal.h"
  13              	#include "miv_rv32_hal/miv_rv32_hal.h"
  14              	
  15              	#ifdef __cplusplus
  16              	extern "C" {
  17              	#endif
  18              	
  19              	/*------------------------------------------------------------------------------
  20              	 * 
  21              	 */
  22              	void HAL_enable_interrupts(void) {
  23              	    MRV_enable_interrupts();
  24              	}
  25              	
  26              	/*------------------------------------------------------------------------------
  27              	 * 
  28              	 */
  29              	psr_t HAL_disable_interrupts(void) {
  30              	    psr_t psr;
  31 0000 73250030 	    psr = read_csr(mstatus);
  32              	    MRV_disable_interrupts();
  26              		csrr a0, mstatus
  27              	# 0 "" 2
  28              	 #NO_APP
  29 0004 93070008 		li	a5,128
  30              	 #APP
  31              	# 631 "C:\2023\Microchip_Projects\Design_updates\2023.2\SoftConsole_updated\miv-rv32im-bootloader/m
  32              		csrrc a5, mstatus, a5
  33              	# 0 "" 2
  34              	# 632 "C:\2023\Microchip_Projects\Design_updates\2023.2\SoftConsole_updated\miv-rv32im-bootloader/m
  35              		csrrc a5, mstatus, 8
  36              	# 0 "" 2
  37              	 #NO_APP
  38 0010 67800000 		ret
  40              		.section	.text.HAL_restore_interrupts,"ax",@progbits
  41              		.align	2
  42              		.globl	HAL_restore_interrupts
  44              	HAL_restore_interrupts:
  45              	 #APP
  46              	# 40 "../hal/hal_irq.c" 1
  33              	    return(psr);
  34              	}
  35              	
  36              	/*------------------------------------------------------------------------------
  37              	 * 
  38              	 */
  39              	void HAL_restore_interrupts(psr_t saved_psr) {
  40 0000 73100530 	    write_csr(mstatus, saved_psr);
  41              	}
  47              		csrw mstatus, a0
  48              	# 0 "" 2
  49              	 #NO_APP
  50 0004 67800000 		ret
  52              		.comm	MRV_LOCAL_IRQn_Type,4,4
  53              		.ident	"GCC: (xPack GNU RISC-V Embedded GCC (Microsemi SoftConsole build), 64-bit) 8.3.0"
DEFINED SYMBOLS
                            *ABS*:0000000000000000 hal_irq.c
C:\Users\i68629\AppData\Local\Temp\ccQIDUDf.s:11     .text.HAL_enable_interrupts:0000000000000000 HAL_enable_interrupts
C:\Users\i68629\AppData\Local\Temp\ccQIDUDf.s:23     .text.HAL_disable_interrupts:0000000000000000 HAL_disable_interrupts
C:\Users\i68629\AppData\Local\Temp\ccQIDUDf.s:44     .text.HAL_restore_interrupts:0000000000000000 HAL_restore_interrupts
                            *COM*:0000000000000004 MRV_LOCAL_IRQn_Type

NO UNDEFINED SYMBOLS
