4150 lines
182 KiB
Plaintext
4150 lines
182 KiB
Plaintext
|
|
BMS_MC.elf: file format elf32-littleriscv
|
|
BMS_MC.elf
|
|
architecture: riscv:rv32, flags 0x00000112:
|
|
EXEC_P, HAS_SYMS, D_PAGED
|
|
start address 0x00000000
|
|
|
|
Program Header:
|
|
LOAD off 0x00001000 vaddr 0x00000000 paddr 0x00000000 align 2**12
|
|
filesz 0x000025a4 memsz 0x000025a4 flags r-x
|
|
LOAD off 0x00004000 vaddr 0x20000000 paddr 0x000025a4 align 2**12
|
|
filesz 0x00000098 memsz 0x000000d0 flags rw-
|
|
LOAD off 0x00004800 vaddr 0x20004800 paddr 0x20004800 align 2**12
|
|
filesz 0x00000000 memsz 0x00000800 flags rw-
|
|
|
|
Sections:
|
|
Idx Name Size VMA LMA File off Algn
|
|
0 .init 00000004 00000000 00000000 00001000 2**1
|
|
CONTENTS, ALLOC, LOAD, READONLY, CODE
|
|
1 .vector 0000013c 00000004 00000004 00001004 2**1
|
|
CONTENTS, ALLOC, LOAD, READONLY, CODE
|
|
2 .text 00002464 00000140 00000140 00001140 2**2
|
|
CONTENTS, ALLOC, LOAD, READONLY, CODE
|
|
3 .fini 00000000 000025a4 000025a4 00004098 2**0
|
|
CONTENTS, ALLOC, LOAD, CODE
|
|
4 .dalign 00000000 20000000 20000000 00004098 2**0
|
|
CONTENTS
|
|
5 .dlalign 00000000 000025a4 000025a4 00004098 2**0
|
|
CONTENTS
|
|
6 .data 00000098 20000000 000025a4 00004000 2**2
|
|
CONTENTS, ALLOC, LOAD, DATA
|
|
7 .bss 00000038 20000098 0000263c 00004098 2**2
|
|
ALLOC
|
|
8 .stack 00000800 20004800 20004800 00004800 2**0
|
|
ALLOC
|
|
9 .debug_info 00013c81 00000000 00000000 00004098 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
10 .debug_abbrev 0000362d 00000000 00000000 00017d19 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
11 .debug_loc 0000426c 00000000 00000000 0001b346 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
12 .debug_aranges 000009e8 00000000 00000000 0001f5b8 2**3
|
|
CONTENTS, READONLY, DEBUGGING
|
|
13 .debug_ranges 000009f0 00000000 00000000 0001ffa0 2**3
|
|
CONTENTS, READONLY, DEBUGGING
|
|
14 .debug_line 0000c96f 00000000 00000000 00020990 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
15 .debug_str 00002f89 00000000 00000000 0002d2ff 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
16 .comment 00000033 00000000 00000000 00030288 2**0
|
|
CONTENTS, READONLY
|
|
17 .debug_frame 00001bd4 00000000 00000000 000302bc 2**2
|
|
CONTENTS, READONLY, DEBUGGING
|
|
18 .stab 00000084 00000000 00000000 00031e90 2**2
|
|
CONTENTS, READONLY, DEBUGGING
|
|
19 .stabstr 00000117 00000000 00000000 00031f14 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
SYMBOL TABLE:
|
|
00000000 l d .init 00000000 .init
|
|
00000004 l d .vector 00000000 .vector
|
|
00000140 l d .text 00000000 .text
|
|
000025a4 l d .fini 00000000 .fini
|
|
20000000 l d .dalign 00000000 .dalign
|
|
000025a4 l d .dlalign 00000000 .dlalign
|
|
20000000 l d .data 00000000 .data
|
|
20000098 l d .bss 00000000 .bss
|
|
20004800 l d .stack 00000000 .stack
|
|
00000000 l d .debug_info 00000000 .debug_info
|
|
00000000 l d .debug_abbrev 00000000 .debug_abbrev
|
|
00000000 l d .debug_loc 00000000 .debug_loc
|
|
00000000 l d .debug_aranges 00000000 .debug_aranges
|
|
00000000 l d .debug_ranges 00000000 .debug_ranges
|
|
00000000 l d .debug_line 00000000 .debug_line
|
|
00000000 l d .debug_str 00000000 .debug_str
|
|
00000000 l d .comment 00000000 .comment
|
|
00000000 l d .debug_frame 00000000 .debug_frame
|
|
00000000 l d .stab 00000000 .stab
|
|
00000000 l d .stabstr 00000000 .stabstr
|
|
00000000 l df *ABS* 00000000 ./Startup/startup_ch32l103.o
|
|
00000004 l .vector 00000000 _vector_base
|
|
00000000 l df *ABS* 00000000 adc.c
|
|
00000000 l df *ABS* 00000000 gpio.c
|
|
00000000 l df *ABS* 00000000 init.c
|
|
00000000 l df *ABS* 00000000 tim.c
|
|
00000000 l df *ABS* 00000000 chgContrl.c
|
|
00000000 l df *ABS* 00000000 convert.c
|
|
00000000 l df *ABS* 00000000 timeIT.c
|
|
00000000 l df *ABS* 00000000 ch32l103_it.c
|
|
00000000 l df *ABS* 00000000 main.c
|
|
00000000 l df *ABS* 00000000 system_ch32l103.c
|
|
00000000 l df *ABS* 00000000 ch32l103_adc.c
|
|
00000000 l df *ABS* 00000000 ch32l103_dbgmcu.c
|
|
00000000 l df *ABS* 00000000 ch32l103_dma.c
|
|
00000000 l df *ABS* 00000000 ch32l103_gpio.c
|
|
00000000 l df *ABS* 00000000 ch32l103_misc.c
|
|
00000000 l df *ABS* 00000000 ch32l103_rcc.c
|
|
20000010 l O .data 00000010 PBHBPrescTable
|
|
20000084 l O .data 00000004 ADCPrescTable
|
|
00000000 l df *ABS* 00000000 ch32l103_tim.c
|
|
00000000 l df *ABS* 00000000 ch32l103_usart.c
|
|
00000000 l df *ABS* 00000000 debug.c
|
|
200000b4 l O .bss 00000002 p_ms
|
|
200000b6 l O .bss 00000002 p_us
|
|
20000088 l O .data 00000004 curbrk.5033
|
|
00000000 l df *ABS* 00000000 printf.c
|
|
00000000 l df *ABS* 00000000 findfp.c
|
|
0000141a l F .text 00000066 std
|
|
00000000 l df *ABS* 00000000 fwalk.c
|
|
00000000 l df *ABS* 00000000 nano-mallocr.c
|
|
00000000 l df *ABS* 00000000 nano-vfprintf.c
|
|
00001710 l F .text 00000026 __sfputc_r
|
|
00000000 l df *ABS* 00000000 nano-vfprintf_i.c
|
|
00000000 l df *ABS* 00000000 sbrkr.c
|
|
00000000 l df *ABS* 00000000 stdio.c
|
|
00000000 l df *ABS* 00000000 wbuf.c
|
|
00000000 l df *ABS* 00000000 writer.c
|
|
00000000 l df *ABS* 00000000 wsetup.c
|
|
00000000 l df *ABS* 00000000 closer.c
|
|
00000000 l df *ABS* 00000000 fflush.c
|
|
00000000 l df *ABS* 00000000 lseekr.c
|
|
00000000 l df *ABS* 00000000 makebuf.c
|
|
00000000 l df *ABS* 00000000 memchr.c
|
|
00000000 l df *ABS* 00000000 mlock.c
|
|
00000000 l df *ABS* 00000000 nano-mallocr.c
|
|
00000000 l df *ABS* 00000000 readr.c
|
|
00000000 l df *ABS* 00000000 fstatr.c
|
|
00000000 l df *ABS* 00000000 isattyr.c
|
|
00000000 l df *ABS* 00000000 close.c
|
|
00000000 l df *ABS* 00000000 fstat.c
|
|
00000000 l df *ABS* 00000000 isatty.c
|
|
00000000 l df *ABS* 00000000 lseek.c
|
|
00000000 l df *ABS* 00000000 read.c
|
|
00000000 l df *ABS* 00000000 impure.c
|
|
20000020 l O .data 00000060 impure_data
|
|
00000000 l df *ABS* 00000000 reent.c
|
|
00000854 w .text 00000000 EXTI2_IRQHandler
|
|
0000244e g F .text 00000028 _isatty_r
|
|
00002226 g F .text 0000002c _lseek_r
|
|
00000bc6 g F .text 00000014 DMA_Cmd
|
|
00000c9a g F .text 0000000a GPIO_ReadOutputDataBit
|
|
000013dc g F .text 0000003e printf
|
|
20000880 g .data 00000000 __global_pointer$
|
|
00000148 g F .text 00000028 .hidden __riscv_save_8
|
|
00000854 w .text 00000000 TIM1_CC_IRQHandler
|
|
2000009b g O .bss 00000001 g_timer50MsFlag
|
|
00001e48 g F .text 00000030 __sseek
|
|
000014d0 g F .text 00000066 __sinit
|
|
00001e7e g F .text 000000be __swbuf_r
|
|
00000606 g F .text 00000010 HardFault_Handler
|
|
0000148a g F .text 00000046 __sfmoreglue
|
|
00002352 g F .text 00000002 __malloc_unlock
|
|
0000096c g F .text 00000012 ADC_DMACmd
|
|
00000854 w .text 00000000 USBPD_IRQHandler
|
|
00000194 g F .text 0000000c .hidden __riscv_restore_3
|
|
00000854 w .text 00000000 SysTick_Handler
|
|
00000542 g F .text 00000016 DCHG_Enable
|
|
00000990 g F .text 0000000a ADC_StartCalibration
|
|
00000fac g F .text 00000054 NVIC_Init
|
|
00000854 w .text 00000000 PVD_IRQHandler
|
|
00000180 g F .text 00000020 .hidden __riscv_restore_10
|
|
000004e0 g F .text 0000000c all_hardWare_init
|
|
00000604 g F .text 00000002 NMI_Handler
|
|
00000854 w .text 00000000 EXTI3_IRQHandler
|
|
00000148 g F .text 00000028 .hidden __riscv_save_11
|
|
00000ae6 g F .text 00000006 DBGMCU_GetCHIPID
|
|
20000099 g O .bss 00000001 S_Times_1
|
|
000012fe g F .text 0000000a USART_GetFlagStatus
|
|
00002424 g F .text 0000002a _fstat_r
|
|
200000ac g O .bss 00000002 USBPD_CFG
|
|
200000cc g O .bss 00000004 errno
|
|
20000098 g .bss 00000000 _sbss
|
|
00000800 g *ABS* 00000000 __stack_size
|
|
00001328 g F .text 00000054 USART_Printf_Init
|
|
00000b8e g F .text 00000038 DMA_Init
|
|
00000854 w .text 00000000 USBFS_IRQHandler
|
|
00000194 g F .text 0000000c .hidden __riscv_restore_2
|
|
200000c0 g O .bss 0000000a gADCBuf
|
|
0000095c g F .text 00000010 ADC_Cmd
|
|
00001480 g F .text 0000000a _cleanup_r
|
|
00000cb6 g F .text 0000012c GPIO_PinRemapConfig
|
|
00000248 g F .text 00000170 all_adc_init
|
|
00000854 w .text 00000000 EXTI0_IRQHandler
|
|
00000854 w .text 00000000 I2C2_EV_IRQHandler
|
|
00001144 g F .text 0000001e RCC_PB2PeriphResetCmd
|
|
00000854 w .text 00000000 LPTIM_IRQHandler
|
|
000011d8 g F .text 00000018 TIM_Cmd
|
|
000003b8 g F .text 00000128 all_gpio_Init
|
|
20000080 g O .data 00000004 SystemCoreClock
|
|
00002482 g F .text 0000000c _fstat
|
|
00000004 g .init 00000000 _einit
|
|
0000121a g F .text 0000000c TIM_ClearITPendingBit
|
|
00000140 g F .text 00000030 .hidden __riscv_save_12
|
|
00000bda g F .text 000000c0 GPIO_Init
|
|
00001000 g F .text 00000014 RCC_ADCCLKConfig
|
|
00000854 w .text 00000000 Break_Point_Handler
|
|
00000180 g F .text 00000020 .hidden __riscv_restore_11
|
|
200000b0 g O .bss 00000004 NVIC_Priority_Group
|
|
00000854 w .text 00000000 SPI1_IRQHandler
|
|
0000097e g F .text 0000000a ADC_ResetCalibration
|
|
000012e0 g F .text 00000016 USART_Cmd
|
|
00001daa g F .text 0000002a _sbrk_r
|
|
200000a0 g O .bss 00000004 CHIPID
|
|
00000854 w .text 00000000 TAMPER_IRQHandler
|
|
00000170 g F .text 0000000c .hidden __riscv_save_1
|
|
00000194 g F .text 0000000c .hidden __riscv_restore_0
|
|
000023f8 g F .text 0000002c _read_r
|
|
00000156 g F .text 0000001a .hidden __riscv_save_7
|
|
00000558 g F .text 00000050 convert_Temp
|
|
00000854 w .text 00000000 Ecall_M_Mode_Handler
|
|
20004800 g .stack 00000000 _heap_end
|
|
0000248e g F .text 0000000c _isatty
|
|
20000090 g O .data 00000004 _global_impure_ptr
|
|
0000018a g F .text 00000016 .hidden __riscv_restore_5
|
|
2000009c g O .bss 00000002 ADC_Trim
|
|
00000854 w .text 00000000 DMA1_Channel4_IRQHandler
|
|
000009ba g F .text 000000b8 ADC_RegularChannelConfig
|
|
000013b6 g F .text 00000026 _sbrk
|
|
00000a8a g F .text 0000005c ADC_FIFO_Cmd
|
|
20000098 g O .bss 00000001 Ms_Times_50
|
|
0000018a g F .text 00000016 .hidden __riscv_restore_6
|
|
00000854 w .text 00000000 USART3_IRQHandler
|
|
00000854 w .text 00000000 RTC_IRQHandler
|
|
0000099a g F .text 00000008 ADC_GetCalibrationStatus
|
|
200000d0 g .bss 00000000 _ebss
|
|
00000854 w .text 00000000 DMA1_Channel7_IRQHandler
|
|
000009a2 g F .text 00000018 ADC_SoftwareStartConvCmd
|
|
00000988 g F .text 00000008 ADC_GetResetCalibrationStatus
|
|
00000854 w .text 00000000 CAN1_RX1_IRQHandler
|
|
00001308 g F .text 00000020 Delay_Init
|
|
00001108 g F .text 0000001e RCC_PB2PeriphClockCmd
|
|
00000de2 g F .text 000001c4 GPIO_IPD_Unused
|
|
00000854 w .text 00000000 USBPDWakeUp_IRQHandler
|
|
00000ca4 g F .text 00000004 GPIO_SetBits
|
|
00000854 w .text 00000000 TIM4_IRQHandler
|
|
00000148 g F .text 00000028 .hidden __riscv_save_9
|
|
00000cac g F .text 0000000a GPIO_WriteBit
|
|
00002508 g O .text 00000020 __sf_fake_stderr
|
|
00000156 g F .text 0000001a .hidden __riscv_save_4
|
|
00000854 w .text 00000000 I2C1_EV_IRQHandler
|
|
00000854 w .text 00000000 USART4_IRQHandler
|
|
00001202 g F .text 00000018 TIM_GetITStatus
|
|
00001014 g F .text 000000d6 RCC_GetClocksFreq
|
|
00000854 w .text 00000000 DMA1_Channel6_IRQHandler
|
|
00001736 g F .text 00000040 __sfputs_r
|
|
200000a8 g O .bss 00000004 TS_Val
|
|
00002338 g F .text 00000018 memchr
|
|
00001226 g F .text 000000ba USART_Init
|
|
00002354 g F .text 000000a4 _free_r
|
|
00000854 w .text 00000000 TIM3_IRQHandler
|
|
00000854 w .text 00000000 RCC_IRQHandler
|
|
00000170 g F .text 0000000c .hidden __riscv_save_3
|
|
00000854 w .text 00000000 TIM1_TRG_COM_IRQHandler
|
|
00000854 w .text 00000000 DMA1_Channel1_IRQHandler
|
|
00000000 g .init 00000000 _start
|
|
2000009a g O .bss 00000001 g_timer1SFlag
|
|
000010ea g F .text 0000001e RCC_HBPeriphClockCmd
|
|
0000249a g F .text 0000000c _lseek
|
|
00001126 g F .text 0000001e RCC_PB1PeriphClockCmd
|
|
00000854 w .text 00000000 EXTI15_10_IRQHandler
|
|
000011f0 g F .text 00000012 TIM_ITConfig
|
|
00000854 w .text 00000000 ADC_IRQHandler
|
|
200000a4 g O .bss 00000004 OPA_Trim
|
|
00000854 w .text 00000000 DMA1_Channel8_IRQHandler
|
|
00000ca8 g F .text 00000004 GPIO_ResetBits
|
|
00002068 g F .text 00000028 _close_r
|
|
20000000 g .dalign 00000000 _data_vma
|
|
00001f6a g F .text 000000fe __swsetup_r
|
|
00000854 w .text 00000000 EXTI9_5_IRQHandler
|
|
00001536 g F .text 0000009c __sfp
|
|
00000148 g F .text 00000028 .hidden __riscv_save_10
|
|
00001dd4 g F .text 0000002c __sread
|
|
00002350 g F .text 00000002 __malloc_lock
|
|
0000018a g F .text 00000016 .hidden __riscv_restore_4
|
|
00000180 g F .text 00000020 .hidden __riscv_restore_8
|
|
000021c0 g F .text 00000066 _fflush_r
|
|
00000156 g F .text 0000001a .hidden __riscv_save_6
|
|
00000854 w .text 00000000 SPI2_IRQHandler
|
|
00002528 g O .text 00000020 __sf_fake_stdin
|
|
000001a0 g F .text 000000a8 memset
|
|
00000180 g F .text 00000020 .hidden __riscv_restore_9
|
|
0000018a g F .text 00000016 .hidden __riscv_restore_7
|
|
00000616 g F .text 000000c4 main
|
|
00001e78 g F .text 00000006 __sclose
|
|
0000163c g F .text 000000d4 _malloc_r
|
|
00000854 w .text 00000000 DMA1_Channel5_IRQHandler
|
|
00000854 w .text 00000000 EXTI4_IRQHandler
|
|
00000854 w .text 00000000 USB_LP_CAN1_RX0_IRQHandler
|
|
00000a72 g F .text 00000018 ADC_BufferCmd
|
|
000006da g F .text 000000d6 SystemInit
|
|
000013dc g F .text 0000003e iprintf
|
|
00000854 w .text 00000000 USB_HP_CAN1_TX_IRQHandler
|
|
00000000 g .init 00000000 _sinit
|
|
00000854 w .text 00000000 CMPWakeUp_IRQHandler
|
|
00001f3c g F .text 0000002e _write_r
|
|
00000854 w .text 00000000 DMA1_Channel3_IRQHandler
|
|
000019fe g F .text 0000010c _printf_common
|
|
2000008c g O .data 00000004 _impure_ptr
|
|
00000854 w .text 00000000 TIM1_UP_IRQHandler
|
|
00002090 g F .text 00000130 __sflush_r
|
|
00000854 w .text 00000000 LPTIMWakeUp_IRQHandler
|
|
00000854 w .text 00000000 WWDG_IRQHandler
|
|
00000854 w .text 00000000 Ecall_U_Mode_Handler
|
|
000005a8 g F .text 0000005c TIM2_IRQHandler
|
|
20005000 g .stack 00000000 _eusrstack
|
|
00000170 g F .text 0000000c .hidden __riscv_save_2
|
|
00000854 w .text 00000000 SW_Handler
|
|
000008dc g F .text 0000002a ADC_DeInit
|
|
00000854 w .text 00000000 TIM1_BRK_IRQHandler
|
|
00002252 g F .text 00000056 __swhatbuf_r
|
|
00000906 g F .text 00000056 ADC_Init
|
|
000012f6 g F .text 00000008 USART_SendData
|
|
00000854 w .text 00000000 OPA_IRQHandler
|
|
00000854 w .text 00000000 EXTI1_IRQHandler
|
|
00000156 g F .text 0000001a .hidden __riscv_save_5
|
|
0000137c g F .text 0000003a _write
|
|
20000098 g .data 00000000 _edata
|
|
200000d0 g .bss 00000000 _end
|
|
00001162 g F .text 00000076 TIM_TimeBaseInit
|
|
00000854 w .text 00000000 RTCAlarm_IRQHandler
|
|
000025a4 g .dlalign 00000000 _data_lma
|
|
00000854 w .text 00000000 USART2_IRQHandler
|
|
00001e00 g F .text 00000048 __swrite
|
|
00001776 g F .text 00000288 _vfiprintf_r
|
|
000015d2 g F .text 0000006a _fwalk_reent
|
|
000007b0 g F .text 000000a4 SystemCoreClockUpdate
|
|
00000854 w .text 00000000 I2C2_ER_IRQHandler
|
|
00000854 w .text 00000000 DMA1_Channel2_IRQHandler
|
|
00002548 g O .text 00000020 __sf_fake_stdout
|
|
20000000 g O .data 00000010 HBPrescTable
|
|
0000017c g F .text 00000024 .hidden __riscv_restore_12
|
|
000024a6 g F .text 0000000c _read
|
|
00000856 w .text 00000000 handle_reset
|
|
00000854 w .text 00000000 CAN1_SCE_IRQHandler
|
|
00000854 w .text 00000000 FLASH_IRQHandler
|
|
00000170 g F .text 0000000c .hidden __riscv_save_0
|
|
00000854 w .text 00000000 USBFSWakeUp_IRQHandler
|
|
00000854 w .text 00000000 USART1_IRQHandler
|
|
000022a8 g F .text 00000090 __smakebuf_r
|
|
00001b0a g F .text 000002a0 _printf_i
|
|
200000bc g O .bss 00000004 __malloc_sbrk_start
|
|
00000854 w .text 00000000 I2C1_ER_IRQHandler
|
|
00000fa6 g F .text 00000006 NVIC_PriorityGroupConfig
|
|
00000aec g F .text 000000a2 DMA_DeInit
|
|
200000b8 g O .bss 00000004 __malloc_free_list
|
|
00000194 g F .text 0000000c .hidden __riscv_restore_1
|
|
00001776 g F .text 00000288 _vfprintf_r
|
|
000004ec g F .text 00000056 all_tim_Init
|
|
00002476 g F .text 0000000c _close
|
|
|
|
|
|
|
|
Disassembly of section .init:
|
|
|
|
00000000 <_sinit>:
|
|
0: 0570006f j 856 <handle_reset>
|
|
|
|
Disassembly of section .vector:
|
|
|
|
00000004 <_vector_base>:
|
|
...
|
|
c: 0604 addi s1,sp,768
|
|
e: 0000 unimp
|
|
10: 0606 slli a2,a2,0x1
|
|
12: 0000 unimp
|
|
14: 0000 unimp
|
|
16: 0000 unimp
|
|
18: 0854 addi a3,sp,20
|
|
...
|
|
22: 0000 unimp
|
|
24: 0854 addi a3,sp,20
|
|
26: 0000 unimp
|
|
28: 0854 addi a3,sp,20
|
|
...
|
|
32: 0000 unimp
|
|
34: 0854 addi a3,sp,20
|
|
36: 0000 unimp
|
|
38: 0000 unimp
|
|
3a: 0000 unimp
|
|
3c: 0854 addi a3,sp,20
|
|
3e: 0000 unimp
|
|
40: 0000 unimp
|
|
42: 0000 unimp
|
|
44: 0854 addi a3,sp,20
|
|
46: 0000 unimp
|
|
48: 0854 addi a3,sp,20
|
|
4a: 0000 unimp
|
|
4c: 0854 addi a3,sp,20
|
|
4e: 0000 unimp
|
|
50: 0854 addi a3,sp,20
|
|
52: 0000 unimp
|
|
54: 0854 addi a3,sp,20
|
|
56: 0000 unimp
|
|
58: 0854 addi a3,sp,20
|
|
5a: 0000 unimp
|
|
5c: 0854 addi a3,sp,20
|
|
5e: 0000 unimp
|
|
60: 0854 addi a3,sp,20
|
|
62: 0000 unimp
|
|
64: 0854 addi a3,sp,20
|
|
66: 0000 unimp
|
|
68: 0854 addi a3,sp,20
|
|
6a: 0000 unimp
|
|
6c: 0854 addi a3,sp,20
|
|
6e: 0000 unimp
|
|
70: 0854 addi a3,sp,20
|
|
72: 0000 unimp
|
|
74: 0854 addi a3,sp,20
|
|
76: 0000 unimp
|
|
78: 0854 addi a3,sp,20
|
|
7a: 0000 unimp
|
|
7c: 0854 addi a3,sp,20
|
|
7e: 0000 unimp
|
|
80: 0854 addi a3,sp,20
|
|
82: 0000 unimp
|
|
84: 0854 addi a3,sp,20
|
|
86: 0000 unimp
|
|
88: 0854 addi a3,sp,20
|
|
8a: 0000 unimp
|
|
8c: 0854 addi a3,sp,20
|
|
8e: 0000 unimp
|
|
90: 0854 addi a3,sp,20
|
|
92: 0000 unimp
|
|
94: 0854 addi a3,sp,20
|
|
96: 0000 unimp
|
|
98: 0854 addi a3,sp,20
|
|
9a: 0000 unimp
|
|
9c: 0854 addi a3,sp,20
|
|
9e: 0000 unimp
|
|
a0: 0854 addi a3,sp,20
|
|
a2: 0000 unimp
|
|
a4: 0854 addi a3,sp,20
|
|
a6: 0000 unimp
|
|
a8: 0854 addi a3,sp,20
|
|
aa: 0000 unimp
|
|
ac: 0854 addi a3,sp,20
|
|
ae: 0000 unimp
|
|
b0: 0854 addi a3,sp,20
|
|
b2: 0000 unimp
|
|
b4: 05a8 addi a0,sp,712
|
|
b6: 0000 unimp
|
|
b8: 0854 addi a3,sp,20
|
|
ba: 0000 unimp
|
|
bc: 0854 addi a3,sp,20
|
|
be: 0000 unimp
|
|
c0: 0854 addi a3,sp,20
|
|
c2: 0000 unimp
|
|
c4: 0854 addi a3,sp,20
|
|
c6: 0000 unimp
|
|
c8: 0854 addi a3,sp,20
|
|
ca: 0000 unimp
|
|
cc: 0854 addi a3,sp,20
|
|
ce: 0000 unimp
|
|
d0: 0854 addi a3,sp,20
|
|
d2: 0000 unimp
|
|
d4: 0854 addi a3,sp,20
|
|
d6: 0000 unimp
|
|
d8: 0854 addi a3,sp,20
|
|
da: 0000 unimp
|
|
dc: 0854 addi a3,sp,20
|
|
de: 0000 unimp
|
|
e0: 0854 addi a3,sp,20
|
|
e2: 0000 unimp
|
|
e4: 0854 addi a3,sp,20
|
|
e6: 0000 unimp
|
|
e8: 0854 addi a3,sp,20
|
|
ea: 0000 unimp
|
|
ec: 0854 addi a3,sp,20
|
|
ee: 0000 unimp
|
|
f0: 0854 addi a3,sp,20
|
|
f2: 0000 unimp
|
|
f4: 0854 addi a3,sp,20
|
|
f6: 0000 unimp
|
|
f8: 0854 addi a3,sp,20
|
|
fa: 0000 unimp
|
|
fc: 0854 addi a3,sp,20
|
|
fe: 0000 unimp
|
|
100: 0854 addi a3,sp,20
|
|
102: 0000 unimp
|
|
104: 0854 addi a3,sp,20
|
|
106: 0000 unimp
|
|
108: 0854 addi a3,sp,20
|
|
10a: 0000 unimp
|
|
10c: 0000 unimp
|
|
10e: 0000 unimp
|
|
110: 0854 addi a3,sp,20
|
|
112: 0000 unimp
|
|
114: 0854 addi a3,sp,20
|
|
...
|
|
|
|
Disassembly of section .text:
|
|
|
|
00000140 <__riscv_save_12>:
|
|
140: 7139 addi sp,sp,-64
|
|
142: 4301 li t1,0
|
|
144: c66e sw s11,12(sp)
|
|
146: a019 j 14c <__riscv_save_10+0x4>
|
|
|
|
00000148 <__riscv_save_10>:
|
|
148: 7139 addi sp,sp,-64
|
|
14a: 5341 li t1,-16
|
|
14c: c86a sw s10,16(sp)
|
|
14e: ca66 sw s9,20(sp)
|
|
150: cc62 sw s8,24(sp)
|
|
152: ce5e sw s7,28(sp)
|
|
154: a019 j 15a <__riscv_save_4+0x4>
|
|
|
|
00000156 <__riscv_save_4>:
|
|
156: 7139 addi sp,sp,-64
|
|
158: 5301 li t1,-32
|
|
15a: d05a sw s6,32(sp)
|
|
15c: d256 sw s5,36(sp)
|
|
15e: d452 sw s4,40(sp)
|
|
160: d64e sw s3,44(sp)
|
|
162: d84a sw s2,48(sp)
|
|
164: da26 sw s1,52(sp)
|
|
166: dc22 sw s0,56(sp)
|
|
168: de06 sw ra,60(sp)
|
|
16a: 40610133 sub sp,sp,t1
|
|
16e: 8282 jr t0
|
|
|
|
00000170 <__riscv_save_0>:
|
|
170: 1141 addi sp,sp,-16
|
|
172: c04a sw s2,0(sp)
|
|
174: c226 sw s1,4(sp)
|
|
176: c422 sw s0,8(sp)
|
|
178: c606 sw ra,12(sp)
|
|
17a: 8282 jr t0
|
|
|
|
0000017c <__riscv_restore_12>:
|
|
17c: 4db2 lw s11,12(sp)
|
|
17e: 0141 addi sp,sp,16
|
|
|
|
00000180 <__riscv_restore_10>:
|
|
180: 4d02 lw s10,0(sp)
|
|
182: 4c92 lw s9,4(sp)
|
|
184: 4c22 lw s8,8(sp)
|
|
186: 4bb2 lw s7,12(sp)
|
|
188: 0141 addi sp,sp,16
|
|
|
|
0000018a <__riscv_restore_4>:
|
|
18a: 4b02 lw s6,0(sp)
|
|
18c: 4a92 lw s5,4(sp)
|
|
18e: 4a22 lw s4,8(sp)
|
|
190: 49b2 lw s3,12(sp)
|
|
192: 0141 addi sp,sp,16
|
|
|
|
00000194 <__riscv_restore_0>:
|
|
194: 4902 lw s2,0(sp)
|
|
196: 4492 lw s1,4(sp)
|
|
198: 4422 lw s0,8(sp)
|
|
19a: 40b2 lw ra,12(sp)
|
|
19c: 0141 addi sp,sp,16
|
|
19e: 8082 ret
|
|
|
|
000001a0 <memset>:
|
|
1a0: 433d li t1,15
|
|
1a2: 872a mv a4,a0
|
|
1a4: 02c37363 bgeu t1,a2,1ca <memset+0x2a>
|
|
1a8: 00f77793 andi a5,a4,15
|
|
1ac: efbd bnez a5,22a <memset+0x8a>
|
|
1ae: e5ad bnez a1,218 <memset+0x78>
|
|
1b0: ff067693 andi a3,a2,-16
|
|
1b4: 8a3d andi a2,a2,15
|
|
1b6: 96ba add a3,a3,a4
|
|
1b8: c30c sw a1,0(a4)
|
|
1ba: c34c sw a1,4(a4)
|
|
1bc: c70c sw a1,8(a4)
|
|
1be: c74c sw a1,12(a4)
|
|
1c0: 0741 addi a4,a4,16
|
|
1c2: fed76be3 bltu a4,a3,1b8 <memset+0x18>
|
|
1c6: e211 bnez a2,1ca <memset+0x2a>
|
|
1c8: 8082 ret
|
|
1ca: 40c306b3 sub a3,t1,a2
|
|
1ce: 068a slli a3,a3,0x2
|
|
1d0: 00000297 auipc t0,0x0
|
|
1d4: 9696 add a3,a3,t0
|
|
1d6: 00a68067 jr 10(a3)
|
|
1da: 00b70723 sb a1,14(a4)
|
|
1de: 00b706a3 sb a1,13(a4)
|
|
1e2: 00b70623 sb a1,12(a4)
|
|
1e6: 00b705a3 sb a1,11(a4)
|
|
1ea: 00b70523 sb a1,10(a4)
|
|
1ee: 00b704a3 sb a1,9(a4)
|
|
1f2: 00b70423 sb a1,8(a4)
|
|
1f6: 00b703a3 sb a1,7(a4)
|
|
1fa: 00b70323 sb a1,6(a4)
|
|
1fe: 00b702a3 sb a1,5(a4)
|
|
202: 00b70223 sb a1,4(a4)
|
|
206: 00b701a3 sb a1,3(a4)
|
|
20a: 00b70123 sb a1,2(a4)
|
|
20e: 00b700a3 sb a1,1(a4)
|
|
212: 00b70023 sb a1,0(a4)
|
|
216: 8082 ret
|
|
218: 0ff5f593 andi a1,a1,255
|
|
21c: 00859693 slli a3,a1,0x8
|
|
220: 8dd5 or a1,a1,a3
|
|
222: 01059693 slli a3,a1,0x10
|
|
226: 8dd5 or a1,a1,a3
|
|
228: b761 j 1b0 <memset+0x10>
|
|
22a: 00279693 slli a3,a5,0x2
|
|
22e: 00000297 auipc t0,0x0
|
|
232: 9696 add a3,a3,t0
|
|
234: 8286 mv t0,ra
|
|
236: fa8680e7 jalr -88(a3)
|
|
23a: 8096 mv ra,t0
|
|
23c: 17c1 addi a5,a5,-16
|
|
23e: 8f1d sub a4,a4,a5
|
|
240: 963e add a2,a2,a5
|
|
242: f8c374e3 bgeu t1,a2,1ca <memset+0x2a>
|
|
246: b7a5 j 1ae <memset+0xe>
|
|
|
|
00000248 <all_adc_init>:
|
|
248: f29ff2ef jal t0,170 <__riscv_save_0>
|
|
24c: 7139 addi sp,sp,-64
|
|
24e: 02000613 li a2,32
|
|
252: 4581 li a1,0
|
|
254: 0848 addi a0,sp,20
|
|
256: 37a9 jal 1a0 <memset>
|
|
258: 4585 li a1,1
|
|
25a: 4511 li a0,4
|
|
25c: c402 sw zero,8(sp)
|
|
25e: c602 sw zero,12(sp)
|
|
260: c802 sw zero,16(sp)
|
|
262: 6a7000ef jal ra,1108 <RCC_PB2PeriphClockCmd>
|
|
266: 4585 li a1,1
|
|
268: 20000513 li a0,512
|
|
26c: 69d000ef jal ra,1108 <RCC_PB2PeriphClockCmd>
|
|
270: 6531 lui a0,0xc
|
|
272: 58f000ef jal ra,1000 <RCC_ADCCLKConfig>
|
|
276: 40011537 lui a0,0x40011
|
|
27a: 0c700793 li a5,199
|
|
27e: 002c addi a1,sp,8
|
|
280: 80050513 addi a0,a0,-2048 # 40010800 <_eusrstack+0x2000b800>
|
|
284: 40012437 lui s0,0x40012
|
|
288: 847c sh a5,8(sp)
|
|
28a: c802 sw zero,16(sp)
|
|
28c: 14f000ef jal ra,bda <GPIO_Init>
|
|
290: 40040513 addi a0,s0,1024 # 40012400 <_eusrstack+0x2000d400>
|
|
294: 25a1 jal 8dc <ADC_DeInit>
|
|
296: 4785 li a5,1
|
|
298: cc3e sw a5,24(sp)
|
|
29a: ce3e sw a5,28(sp)
|
|
29c: 000e07b7 lui a5,0xe0
|
|
2a0: d03e sw a5,32(sp)
|
|
2a2: 084c addi a1,sp,20
|
|
2a4: 4795 li a5,5
|
|
2a6: 40040513 addi a0,s0,1024
|
|
2aa: 02f10423 sb a5,40(sp)
|
|
2ae: ca02 sw zero,20(sp)
|
|
2b0: d202 sw zero,36(sp)
|
|
2b2: 654000ef jal ra,906 <ADC_Init>
|
|
2b6: 4585 li a1,1
|
|
2b8: 40040513 addi a0,s0,1024
|
|
2bc: 6b0000ef jal ra,96c <ADC_DMACmd>
|
|
2c0: 4585 li a1,1
|
|
2c2: 40040513 addi a0,s0,1024
|
|
2c6: 696000ef jal ra,95c <ADC_Cmd>
|
|
2ca: 4585 li a1,1
|
|
2cc: 40040513 addi a0,s0,1024
|
|
2d0: 7ba000ef jal ra,a8a <ADC_FIFO_Cmd>
|
|
2d4: 4581 li a1,0
|
|
2d6: 40040513 addi a0,s0,1024
|
|
2da: 798000ef jal ra,a72 <ADC_BufferCmd>
|
|
2de: 40040513 addi a0,s0,1024
|
|
2e2: 69c000ef jal ra,97e <ADC_ResetCalibration>
|
|
2e6: 40040493 addi s1,s0,1024
|
|
2ea: 8526 mv a0,s1
|
|
2ec: 69c000ef jal ra,988 <ADC_GetResetCalibrationStatus>
|
|
2f0: fd6d bnez a0,2ea <all_adc_init+0xa2>
|
|
2f2: 40040513 addi a0,s0,1024
|
|
2f6: 40012437 lui s0,0x40012
|
|
2fa: 696000ef jal ra,990 <ADC_StartCalibration>
|
|
2fe: 40040493 addi s1,s0,1024 # 40012400 <_eusrstack+0x2000d400>
|
|
302: 8526 mv a0,s1
|
|
304: 696000ef jal ra,99a <ADC_GetCalibrationStatus>
|
|
308: fd6d bnez a0,302 <all_adc_init+0xba>
|
|
30a: 02c00613 li a2,44
|
|
30e: 4581 li a1,0
|
|
310: 0848 addi a0,sp,20
|
|
312: 3579 jal 1a0 <memset>
|
|
314: 4585 li a1,1
|
|
316: 4505 li a0,1
|
|
318: 5d3000ef jal ra,10ea <RCC_HBPeriphClockCmd>
|
|
31c: 400204b7 lui s1,0x40020
|
|
320: 00848513 addi a0,s1,8 # 40020008 <_eusrstack+0x2001b008>
|
|
324: 7c8000ef jal ra,aec <DMA_DeInit>
|
|
328: 44c40793 addi a5,s0,1100
|
|
32c: ca3e sw a5,20(sp)
|
|
32e: 84018793 addi a5,gp,-1984 # 200000c0 <gADCBuf>
|
|
332: cc3e sw a5,24(sp)
|
|
334: 4795 li a5,5
|
|
336: d03e sw a5,32(sp)
|
|
338: 08000793 li a5,128
|
|
33c: d43e sw a5,40(sp)
|
|
33e: 10000793 li a5,256
|
|
342: d63e sw a5,44(sp)
|
|
344: 40000793 li a5,1024
|
|
348: d83e sw a5,48(sp)
|
|
34a: 02000793 li a5,32
|
|
34e: da3e sw a5,52(sp)
|
|
350: 084c addi a1,sp,20
|
|
352: 678d lui a5,0x3
|
|
354: 00848513 addi a0,s1,8
|
|
358: dc3e sw a5,56(sp)
|
|
35a: ce02 sw zero,28(sp)
|
|
35c: d202 sw zero,36(sp)
|
|
35e: de02 sw zero,60(sp)
|
|
360: 02f000ef jal ra,b8e <DMA_Init>
|
|
364: 00848513 addi a0,s1,8
|
|
368: 4585 li a1,1
|
|
36a: 05d000ef jal ra,bc6 <DMA_Cmd>
|
|
36e: 40040513 addi a0,s0,1024
|
|
372: 469d li a3,7
|
|
374: 4605 li a2,1
|
|
376: 4581 li a1,0
|
|
378: 642000ef jal ra,9ba <ADC_RegularChannelConfig>
|
|
37c: 40040513 addi a0,s0,1024
|
|
380: 469d li a3,7
|
|
382: 4609 li a2,2
|
|
384: 4585 li a1,1
|
|
386: 2d15 jal 9ba <ADC_RegularChannelConfig>
|
|
388: 40040513 addi a0,s0,1024
|
|
38c: 469d li a3,7
|
|
38e: 460d li a2,3
|
|
390: 4589 li a1,2
|
|
392: 2525 jal 9ba <ADC_RegularChannelConfig>
|
|
394: 40040513 addi a0,s0,1024
|
|
398: 469d li a3,7
|
|
39a: 4611 li a2,4
|
|
39c: 4599 li a1,6
|
|
39e: 2d31 jal 9ba <ADC_RegularChannelConfig>
|
|
3a0: 469d li a3,7
|
|
3a2: 4615 li a2,5
|
|
3a4: 40040513 addi a0,s0,1024
|
|
3a8: 459d li a1,7
|
|
3aa: 2d01 jal 9ba <ADC_RegularChannelConfig>
|
|
3ac: 4585 li a1,1
|
|
3ae: 40040513 addi a0,s0,1024
|
|
3b2: 2bc5 jal 9a2 <ADC_SoftwareStartConvCmd>
|
|
3b4: 6121 addi sp,sp,64
|
|
3b6: bbf9 j 194 <__riscv_restore_0>
|
|
|
|
000003b8 <all_gpio_Init>:
|
|
3b8: db9ff2ef jal t0,170 <__riscv_save_0>
|
|
3bc: 1141 addi sp,sp,-16
|
|
3be: 4585 li a1,1
|
|
3c0: 4541 li a0,16
|
|
3c2: 547000ef jal ra,1108 <RCC_PB2PeriphClockCmd>
|
|
3c6: 448d li s1,3
|
|
3c8: 4941 li s2,16
|
|
3ca: 6789 lui a5,0x2
|
|
3cc: 004c addi a1,sp,4
|
|
3ce: 40011537 lui a0,0x40011
|
|
3d2: 827c sh a5,4(sp)
|
|
3d4: c64a sw s2,12(sp)
|
|
3d6: c426 sw s1,8(sp)
|
|
3d8: 003000ef jal ra,bda <GPIO_Init>
|
|
3dc: 6589 lui a1,0x2
|
|
3de: 40011537 lui a0,0x40011
|
|
3e2: 0c3000ef jal ra,ca4 <GPIO_SetBits>
|
|
3e6: 4585 li a1,1
|
|
3e8: 4521 li a0,8
|
|
3ea: 40011437 lui s0,0x40011
|
|
3ee: 51b000ef jal ra,1108 <RCC_PB2PeriphClockCmd>
|
|
3f2: 20000793 li a5,512
|
|
3f6: 004c addi a1,sp,4
|
|
3f8: c0040513 addi a0,s0,-1024 # 40010c00 <_eusrstack+0x2000bc00>
|
|
3fc: 827c sh a5,4(sp)
|
|
3fe: c64a sw s2,12(sp)
|
|
400: c426 sw s1,8(sp)
|
|
402: 7d8000ef jal ra,bda <GPIO_Init>
|
|
406: c0040513 addi a0,s0,-1024
|
|
40a: 20000593 li a1,512
|
|
40e: 097000ef jal ra,ca4 <GPIO_SetBits>
|
|
412: 4585 li a1,1
|
|
414: 4511 li a0,4
|
|
416: 4f3000ef jal ra,1108 <RCC_PB2PeriphClockCmd>
|
|
41a: 77e1 lui a5,0xffff8
|
|
41c: 10078793 addi a5,a5,256 # ffff8100 <_eusrstack+0xdfff3100>
|
|
420: 004c addi a1,sp,4
|
|
422: 80040513 addi a0,s0,-2048
|
|
426: 827c sh a5,4(sp)
|
|
428: c64a sw s2,12(sp)
|
|
42a: c426 sw s1,8(sp)
|
|
42c: 7ae000ef jal ra,bda <GPIO_Init>
|
|
430: 65a1 lui a1,0x8
|
|
432: 80040513 addi a0,s0,-2048
|
|
436: 10058593 addi a1,a1,256 # 8100 <_data_lma+0x5b5c>
|
|
43a: 06b000ef jal ra,ca4 <GPIO_SetBits>
|
|
43e: 4585 li a1,1
|
|
440: 4521 li a0,8
|
|
442: 4c7000ef jal ra,1108 <RCC_PB2PeriphClockCmd>
|
|
446: 6785 lui a5,0x1
|
|
448: 80078793 addi a5,a5,-2048 # 800 <__stack_size>
|
|
44c: 004c addi a1,sp,4
|
|
44e: c0040513 addi a0,s0,-1024
|
|
452: 827c sh a5,4(sp)
|
|
454: c64a sw s2,12(sp)
|
|
456: c426 sw s1,8(sp)
|
|
458: 782000ef jal ra,bda <GPIO_Init>
|
|
45c: 6585 lui a1,0x1
|
|
45e: c0040513 addi a0,s0,-1024
|
|
462: 80058593 addi a1,a1,-2048 # 800 <__stack_size>
|
|
466: 03f000ef jal ra,ca4 <GPIO_SetBits>
|
|
46a: 4585 li a1,1
|
|
46c: 4521 li a0,8
|
|
46e: 49b000ef jal ra,1108 <RCC_PB2PeriphClockCmd>
|
|
472: 4791 li a5,4
|
|
474: 004c addi a1,sp,4
|
|
476: c0040513 addi a0,s0,-1024
|
|
47a: 827c sh a5,4(sp)
|
|
47c: c64a sw s2,12(sp)
|
|
47e: c426 sw s1,8(sp)
|
|
480: 75a000ef jal ra,bda <GPIO_Init>
|
|
484: c0040513 addi a0,s0,-1024
|
|
488: 4591 li a1,4
|
|
48a: 01b000ef jal ra,ca4 <GPIO_SetBits>
|
|
48e: 4585 li a1,1
|
|
490: 4521 li a0,8
|
|
492: 477000ef jal ra,1108 <RCC_PB2PeriphClockCmd>
|
|
496: 47a1 li a5,8
|
|
498: 827c sh a5,4(sp)
|
|
49a: 004c addi a1,sp,4
|
|
49c: 4791 li a5,4
|
|
49e: c0040513 addi a0,s0,-1024
|
|
4a2: c63e sw a5,12(sp)
|
|
4a4: c426 sw s1,8(sp)
|
|
4a6: 734000ef jal ra,bda <GPIO_Init>
|
|
4aa: c0040513 addi a0,s0,-1024
|
|
4ae: 45a1 li a1,8
|
|
4b0: 7f4000ef jal ra,ca4 <GPIO_SetBits>
|
|
4b4: 4585 li a1,1
|
|
4b6: 4521 li a0,8
|
|
4b8: 451000ef jal ra,1108 <RCC_PB2PeriphClockCmd>
|
|
4bc: 0c000793 li a5,192
|
|
4c0: 004c addi a1,sp,4
|
|
4c2: c0040513 addi a0,s0,-1024
|
|
4c6: 827c sh a5,4(sp)
|
|
4c8: c64a sw s2,12(sp)
|
|
4ca: c426 sw s1,8(sp)
|
|
4cc: 70e000ef jal ra,bda <GPIO_Init>
|
|
4d0: 0c000593 li a1,192
|
|
4d4: c0040513 addi a0,s0,-1024
|
|
4d8: 7d0000ef jal ra,ca8 <GPIO_ResetBits>
|
|
4dc: 0141 addi sp,sp,16
|
|
4de: b95d j 194 <__riscv_restore_0>
|
|
|
|
000004e0 <all_hardWare_init>:
|
|
4e0: c91ff2ef jal t0,170 <__riscv_save_0>
|
|
4e4: 3dd1 jal 3b8 <all_gpio_Init>
|
|
4e6: 2019 jal 4ec <all_tim_Init>
|
|
4e8: 3385 jal 248 <all_adc_init>
|
|
4ea: b16d j 194 <__riscv_restore_0>
|
|
|
|
000004ec <all_tim_Init>:
|
|
4ec: c85ff2ef jal t0,170 <__riscv_save_0>
|
|
4f0: 1101 addi sp,sp,-32
|
|
4f2: 4585 li a1,1
|
|
4f4: 4505 li a0,1
|
|
4f6: 431000ef jal ra,1126 <RCC_PB1PeriphClockCmd>
|
|
4fa: 6785 lui a5,0x1
|
|
4fc: 38778793 addi a5,a5,903 # 1387 <_write+0xb>
|
|
500: ca3e sw a5,20(sp)
|
|
502: 084c addi a1,sp,20
|
|
504: 479d li a5,7
|
|
506: 40000537 lui a0,0x40000
|
|
50a: cc3e sw a5,24(sp)
|
|
50c: 00011e23 sh zero,28(sp)
|
|
510: 453000ef jal ra,1162 <TIM_TimeBaseInit>
|
|
514: 4605 li a2,1
|
|
516: 4585 li a1,1
|
|
518: 40000537 lui a0,0x40000
|
|
51c: 4d5000ef jal ra,11f0 <TIM_ITConfig>
|
|
520: 02c00793 li a5,44
|
|
524: 867c sh a5,12(sp)
|
|
526: 478d li a5,3
|
|
528: 875c sb a5,14(sp)
|
|
52a: 0068 addi a0,sp,12
|
|
52c: 4785 li a5,1
|
|
52e: c83e sw a5,16(sp)
|
|
530: 27d000ef jal ra,fac <NVIC_Init>
|
|
534: 4585 li a1,1
|
|
536: 40000537 lui a0,0x40000
|
|
53a: 49f000ef jal ra,11d8 <TIM_Cmd>
|
|
53e: 6105 addi sp,sp,32
|
|
540: b991 j 194 <__riscv_restore_0>
|
|
|
|
00000542 <DCHG_Enable>:
|
|
542: 400117b7 lui a5,0x40011
|
|
546: c0078793 addi a5,a5,-1024 # 40010c00 <_eusrstack+0x2000bc00>
|
|
54a: 04000713 li a4,64
|
|
54e: c119 beqz a0,554 <DCHG_Enable+0x12>
|
|
550: cb98 sw a4,16(a5)
|
|
552: 8082 ret
|
|
554: cbd8 sw a4,20(a5)
|
|
556: 8082 ret
|
|
|
|
00000558 <convert_Temp>:
|
|
558: 8401d803 lhu a6,-1984(gp) # 200000c0 <gADCBuf>
|
|
55c: 84018793 addi a5,gp,-1984 # 200000c0 <gADCBuf>
|
|
560: 23b6 lhu a3,2(a5)
|
|
562: 23da lhu a4,4(a5)
|
|
564: 679d lui a5,0x7
|
|
566: 53078793 addi a5,a5,1328 # 7530 <_data_lma+0x4f8c>
|
|
56a: 5309 li t1,-30
|
|
56c: 02f80e33 mul t3,a6,a5
|
|
570: 000218b7 lui a7,0x21
|
|
574: fdf88893 addi a7,a7,-33 # 20fdf <_data_lma+0x1ea3b>
|
|
578: 02680833 mul a6,a6,t1
|
|
57c: 9846 add a6,a6,a7
|
|
57e: 030e4833 div a6,t3,a6
|
|
582: 01051023 sh a6,0(a0) # 40000000 <_eusrstack+0x1fffb000>
|
|
586: 02f68533 mul a0,a3,a5
|
|
58a: 026686b3 mul a3,a3,t1
|
|
58e: 02f707b3 mul a5,a4,a5
|
|
592: 96c6 add a3,a3,a7
|
|
594: 02670733 mul a4,a4,t1
|
|
598: 02d546b3 div a3,a0,a3
|
|
59c: 9746 add a4,a4,a7
|
|
59e: 02e7c7b3 div a5,a5,a4
|
|
5a2: a196 sh a3,0(a1)
|
|
5a4: a21e sh a5,0(a2)
|
|
5a6: 8082 ret
|
|
|
|
000005a8 <TIM2_IRQHandler>:
|
|
5a8: 4585 li a1,1
|
|
5aa: 40000537 lui a0,0x40000
|
|
5ae: 455000ef jal ra,1202 <TIM_GetITStatus>
|
|
5b2: c539 beqz a0,600 <TIM2_IRQHandler+0x58>
|
|
5b4: 81918593 addi a1,gp,-2023 # 20000099 <S_Times_1>
|
|
5b8: 81818693 addi a3,gp,-2024 # 20000098 <_edata>
|
|
5bc: 219c lbu a5,0(a1)
|
|
5be: 2298 lbu a4,0(a3)
|
|
5c0: 81918613 addi a2,gp,-2023 # 20000099 <S_Times_1>
|
|
5c4: 0785 addi a5,a5,1
|
|
5c6: 0705 addi a4,a4,1
|
|
5c8: 0ff77713 andi a4,a4,255
|
|
5cc: 0ff7f793 andi a5,a5,255
|
|
5d0: a19c sb a5,0(a1)
|
|
5d2: a298 sb a4,0(a3)
|
|
5d4: 45a5 li a1,9
|
|
5d6: 00e5f763 bgeu a1,a4,5e4 <TIM2_IRQHandler+0x3c>
|
|
5da: 00068023 sb zero,0(a3)
|
|
5de: 4685 li a3,1
|
|
5e0: 80d18da3 sb a3,-2021(gp) # 2000009b <g_timer50MsFlag>
|
|
5e4: 0c700713 li a4,199
|
|
5e8: 00f77763 bgeu a4,a5,5f6 <TIM2_IRQHandler+0x4e>
|
|
5ec: 4705 li a4,1
|
|
5ee: 00060023 sb zero,0(a2)
|
|
5f2: 80e18d23 sb a4,-2022(gp) # 2000009a <g_timer1SFlag>
|
|
5f6: 4585 li a1,1
|
|
5f8: 40000537 lui a0,0x40000
|
|
5fc: 41f000ef jal ra,121a <TIM_ClearITPendingBit>
|
|
600: 30200073 mret
|
|
|
|
00000604 <NMI_Handler>:
|
|
604: a001 j 604 <NMI_Handler>
|
|
|
|
00000606 <HardFault_Handler>:
|
|
606: beef07b7 lui a5,0xbeef0
|
|
60a: e000e737 lui a4,0xe000e
|
|
60e: 08078793 addi a5,a5,128 # beef0080 <_eusrstack+0x9eeeb080>
|
|
612: c73c sw a5,72(a4)
|
|
614: a001 j 614 <HardFault_Handler+0xe>
|
|
|
|
00000616 <main>:
|
|
616: b41ff2ef jal t0,156 <__riscv_save_4>
|
|
61a: 1141 addi sp,sp,-16
|
|
61c: 4505 li a0,1
|
|
61e: 189000ef jal ra,fa6 <NVIC_PriorityGroupConfig>
|
|
622: 2279 jal 7b0 <SystemCoreClockUpdate>
|
|
624: 4e5000ef jal ra,1308 <Delay_Init>
|
|
628: 6571 lui a0,0x1c
|
|
62a: 20050513 addi a0,a0,512 # 1c200 <_data_lma+0x19c5c>
|
|
62e: 4fb000ef jal ra,1328 <USART_Printf_Init>
|
|
632: 200007b7 lui a5,0x20000
|
|
636: 0807a583 lw a1,128(a5) # 20000080 <SystemCoreClock>
|
|
63a: 00002537 lui a0,0x2
|
|
63e: 4b450513 addi a0,a0,1204 # 24b4 <_read+0xe>
|
|
642: 59b000ef jal ra,13dc <iprintf>
|
|
646: 2145 jal ae6 <DBGMCU_GetCHIPID>
|
|
648: 85aa mv a1,a0
|
|
64a: 00002537 lui a0,0x2
|
|
64e: 4c450513 addi a0,a0,1220 # 24c4 <_read+0x1e>
|
|
652: 58b000ef jal ra,13dc <iprintf>
|
|
656: 3569 jal 4e0 <all_hardWare_init>
|
|
658: 4505 li a0,1
|
|
65a: 35e5 jal 542 <DCHG_Enable>
|
|
65c: 00011523 sh zero,10(sp)
|
|
660: 00011623 sh zero,12(sp)
|
|
664: 00011723 sh zero,14(sp)
|
|
668: 4a05 li s4,1
|
|
66a: 84018413 addi s0,gp,-1984 # 200000c0 <gADCBuf>
|
|
66e: 00002ab7 lui s5,0x2
|
|
672: 81b1c783 lbu a5,-2021(gp) # 2000009b <g_timer50MsFlag>
|
|
676: 00fa1463 bne s4,a5,67e <main+0x68>
|
|
67a: 80018da3 sb zero,-2021(gp) # 2000009b <g_timer50MsFlag>
|
|
67e: 81a1c783 lbu a5,-2022(gp) # 2000009a <g_timer1SFlag>
|
|
682: fefa18e3 bne s4,a5,672 <main+0x5c>
|
|
686: 00e10613 addi a2,sp,14
|
|
68a: 006c addi a1,sp,12
|
|
68c: 00a10513 addi a0,sp,10
|
|
690: 80018d23 sb zero,-2022(gp) # 2000009a <g_timer1SFlag>
|
|
694: 35d1 jal 558 <convert_Temp>
|
|
696: 6589 lui a1,0x2
|
|
698: 40011537 lui a0,0x40011
|
|
69c: 2bfd jal c9a <GPIO_ReadOutputDataBit>
|
|
69e: 00153613 seqz a2,a0
|
|
6a2: 6589 lui a1,0x2
|
|
6a4: 40011537 lui a0,0x40011
|
|
6a8: 2511 jal cac <GPIO_WriteBit>
|
|
6aa: 400114b7 lui s1,0x40011
|
|
6ae: 20000593 li a1,512
|
|
6b2: c0048513 addi a0,s1,-1024 # 40010c00 <_eusrstack+0x2000bc00>
|
|
6b6: 23d5 jal c9a <GPIO_ReadOutputDataBit>
|
|
6b8: 00153613 seqz a2,a0
|
|
6bc: 20000593 li a1,512
|
|
6c0: c0048513 addi a0,s1,-1024
|
|
6c4: 23e5 jal cac <GPIO_WriteBit>
|
|
6c6: 241e lhu a5,8(s0)
|
|
6c8: 207a lhu a4,6(s0)
|
|
6ca: 8734 lhu a3,14(sp)
|
|
6cc: 8630 lhu a2,12(sp)
|
|
6ce: 852c lhu a1,10(sp)
|
|
6d0: 4d4a8513 addi a0,s5,1236 # 24d4 <_read+0x2e>
|
|
6d4: 509000ef jal ra,13dc <iprintf>
|
|
6d8: bf69 j 672 <main+0x5c>
|
|
|
|
000006da <SystemInit>:
|
|
6da: a97ff2ef jal t0,170 <__riscv_save_0>
|
|
6de: 40021437 lui s0,0x40021
|
|
6e2: 401c lw a5,0(s0)
|
|
6e4: 08ff0737 lui a4,0x8ff0
|
|
6e8: 1141 addi sp,sp,-16
|
|
6ea: 0017e793 ori a5,a5,1
|
|
6ee: c01c sw a5,0(s0)
|
|
6f0: 405c lw a5,4(s0)
|
|
6f2: 8ff9 and a5,a5,a4
|
|
6f4: c05c sw a5,4(s0)
|
|
6f6: 401c lw a5,0(s0)
|
|
6f8: fef70737 lui a4,0xfef70
|
|
6fc: 176d addi a4,a4,-5
|
|
6fe: 8ff9 and a5,a5,a4
|
|
700: c01c sw a5,0(s0)
|
|
702: 401c lw a5,0(s0)
|
|
704: fffc0737 lui a4,0xfffc0
|
|
708: 177d addi a4,a4,-1
|
|
70a: 8ff9 and a5,a5,a4
|
|
70c: c01c sw a5,0(s0)
|
|
70e: 405c lw a5,4(s0)
|
|
710: ff010737 lui a4,0xff010
|
|
714: 177d addi a4,a4,-1
|
|
716: 8ff9 and a5,a5,a4
|
|
718: c05c sw a5,4(s0)
|
|
71a: 009f07b7 lui a5,0x9f0
|
|
71e: c41c sw a5,8(s0)
|
|
720: 25c9 jal de2 <GPIO_IPD_Unused>
|
|
722: c402 sw zero,8(sp)
|
|
724: c602 sw zero,12(sp)
|
|
726: 400227b7 lui a5,0x40022
|
|
72a: 0007a023 sw zero,0(a5) # 40022000 <_eusrstack+0x2001d000>
|
|
72e: 401c lw a5,0(s0)
|
|
730: 6741 lui a4,0x10
|
|
732: 400216b7 lui a3,0x40021
|
|
736: 8fd9 or a5,a5,a4
|
|
738: c01c sw a5,0(s0)
|
|
73a: 00020637 lui a2,0x20
|
|
73e: 6705 lui a4,0x1
|
|
740: 429c lw a5,0(a3)
|
|
742: 8ff1 and a5,a5,a2
|
|
744: c63e sw a5,12(sp)
|
|
746: 47a2 lw a5,8(sp)
|
|
748: 0785 addi a5,a5,1
|
|
74a: c43e sw a5,8(sp)
|
|
74c: 47b2 lw a5,12(sp)
|
|
74e: e781 bnez a5,756 <SystemInit+0x7c>
|
|
750: 47a2 lw a5,8(sp)
|
|
752: fee797e3 bne a5,a4,740 <SystemInit+0x66>
|
|
756: 400217b7 lui a5,0x40021
|
|
75a: 439c lw a5,0(a5)
|
|
75c: 00e79713 slli a4,a5,0xe
|
|
760: 04075063 bgez a4,7a0 <SystemInit+0xc6>
|
|
764: 4785 li a5,1
|
|
766: c63e sw a5,12(sp)
|
|
768: 4732 lw a4,12(sp)
|
|
76a: 4785 li a5,1
|
|
76c: 02f71c63 bne a4,a5,7a4 <SystemInit+0xca>
|
|
770: 400217b7 lui a5,0x40021
|
|
774: 43d8 lw a4,4(a5)
|
|
776: 400216b7 lui a3,0x40021
|
|
77a: c3d8 sw a4,4(a5)
|
|
77c: 43d8 lw a4,4(a5)
|
|
77e: c3d8 sw a4,4(a5)
|
|
780: 43d8 lw a4,4(a5)
|
|
782: c3d8 sw a4,4(a5)
|
|
784: 43d8 lw a4,4(a5)
|
|
786: 9b71 andi a4,a4,-4
|
|
788: c3d8 sw a4,4(a5)
|
|
78a: 43d8 lw a4,4(a5)
|
|
78c: 00176713 ori a4,a4,1
|
|
790: c3d8 sw a4,4(a5)
|
|
792: 4711 li a4,4
|
|
794: 42dc lw a5,4(a3)
|
|
796: 8bb1 andi a5,a5,12
|
|
798: fee79ee3 bne a5,a4,794 <SystemInit+0xba>
|
|
79c: 0141 addi sp,sp,16
|
|
79e: badd j 194 <__riscv_restore_0>
|
|
7a0: c602 sw zero,12(sp)
|
|
7a2: b7d9 j 768 <SystemInit+0x8e>
|
|
7a4: 40022737 lui a4,0x40022
|
|
7a8: 431c lw a5,0(a4)
|
|
7aa: 9bf1 andi a5,a5,-4
|
|
7ac: c31c sw a5,0(a4)
|
|
7ae: b7fd j 79c <SystemInit+0xc2>
|
|
|
|
000007b0 <SystemCoreClockUpdate>:
|
|
7b0: 400216b7 lui a3,0x40021
|
|
7b4: 42dc lw a5,4(a3)
|
|
7b6: 20000737 lui a4,0x20000
|
|
7ba: 4611 li a2,4
|
|
7bc: 8bb1 andi a5,a5,12
|
|
7be: 08070713 addi a4,a4,128 # 20000080 <SystemCoreClock>
|
|
7c2: 02c78f63 beq a5,a2,800 <__stack_size>
|
|
7c6: 4621 li a2,8
|
|
7c8: 04c78163 beq a5,a2,80a <__stack_size+0xa>
|
|
7cc: eb95 bnez a5,800 <__stack_size>
|
|
7ce: 429c lw a5,0(a3)
|
|
7d0: 8b91 andi a5,a5,4
|
|
7d2: c79d beqz a5,800 <__stack_size>
|
|
7d4: 000f47b7 lui a5,0xf4
|
|
7d8: 24078793 addi a5,a5,576 # f4240 <_data_lma+0xf1c9c>
|
|
7dc: c31c sw a5,0(a4)
|
|
7de: 400217b7 lui a5,0x40021
|
|
7e2: 43dc lw a5,4(a5)
|
|
7e4: 8391 srli a5,a5,0x4
|
|
7e6: 00f7f693 andi a3,a5,15
|
|
7ea: 200007b7 lui a5,0x20000
|
|
7ee: 00078793 mv a5,a5
|
|
7f2: 97b6 add a5,a5,a3
|
|
7f4: 2394 lbu a3,0(a5)
|
|
7f6: 431c lw a5,0(a4)
|
|
7f8: 00d7d7b3 srl a5,a5,a3
|
|
7fc: c31c sw a5,0(a4)
|
|
7fe: 8082 ret
|
|
800: 007a17b7 lui a5,0x7a1
|
|
804: 20078793 addi a5,a5,512 # 7a1200 <_data_lma+0x79ec5c>
|
|
808: bfd1 j 7dc <SystemCoreClockUpdate+0x2c>
|
|
80a: 42dc lw a5,4(a3)
|
|
80c: 42d4 lw a3,4(a3)
|
|
80e: 6641 lui a2,0x10
|
|
810: 83c9 srli a5,a5,0x12
|
|
812: 8bbd andi a5,a5,15
|
|
814: 8ef1 and a3,a3,a2
|
|
816: 0789 addi a5,a5,2
|
|
818: 4645 li a2,17
|
|
81a: 00c79363 bne a5,a2,820 <__stack_size+0x20>
|
|
81e: 47c9 li a5,18
|
|
820: ee81 bnez a3,838 <__stack_size+0x38>
|
|
822: 400246b7 lui a3,0x40024
|
|
826: 8006a683 lw a3,-2048(a3) # 40023800 <_eusrstack+0x2001e800>
|
|
82a: 8ac1 andi a3,a3,16
|
|
82c: ce89 beqz a3,846 <__stack_size+0x46>
|
|
82e: 007a16b7 lui a3,0x7a1
|
|
832: 20068693 addi a3,a3,512 # 7a1200 <_data_lma+0x79ec5c>
|
|
836: a821 j 84e <__stack_size+0x4e>
|
|
838: 400216b7 lui a3,0x40021
|
|
83c: 42d4 lw a3,4(a3)
|
|
83e: 00e69613 slli a2,a3,0xe
|
|
842: fe0656e3 bgez a2,82e <__stack_size+0x2e>
|
|
846: 003d16b7 lui a3,0x3d1
|
|
84a: 90068693 addi a3,a3,-1792 # 3d0900 <_data_lma+0x3ce35c>
|
|
84e: 02d787b3 mul a5,a5,a3
|
|
852: b769 j 7dc <SystemCoreClockUpdate+0x2c>
|
|
|
|
00000854 <ADC_IRQHandler>:
|
|
854: a001 j 854 <ADC_IRQHandler>
|
|
|
|
00000856 <handle_reset>:
|
|
856: 20000197 auipc gp,0x20000
|
|
85a: 02a18193 addi gp,gp,42 # 20000880 <__global_pointer$>
|
|
85e: 20004117 auipc sp,0x20004
|
|
862: 7a210113 addi sp,sp,1954 # 20005000 <_eusrstack>
|
|
866: 00002517 auipc a0,0x2
|
|
86a: d3e50513 addi a0,a0,-706 # 25a4 <_data_lma>
|
|
86e: 1ffff597 auipc a1,0x1ffff
|
|
872: 79258593 addi a1,a1,1938 # 20000000 <_data_vma>
|
|
876: 81818613 addi a2,gp,-2024 # 20000098 <_edata>
|
|
87a: 00c5fa63 bgeu a1,a2,88e <handle_reset+0x38>
|
|
87e: 00052283 lw t0,0(a0)
|
|
882: 0055a023 sw t0,0(a1)
|
|
886: 0511 addi a0,a0,4
|
|
888: 0591 addi a1,a1,4
|
|
88a: fec5eae3 bltu a1,a2,87e <handle_reset+0x28>
|
|
88e: 81818513 addi a0,gp,-2024 # 20000098 <_edata>
|
|
892: 85018593 addi a1,gp,-1968 # 200000d0 <_ebss>
|
|
896: 00b57763 bgeu a0,a1,8a4 <handle_reset+0x4e>
|
|
89a: 00052023 sw zero,0(a0)
|
|
89e: 0511 addi a0,a0,4
|
|
8a0: feb56de3 bltu a0,a1,89a <handle_reset+0x44>
|
|
8a4: 42fd li t0,31
|
|
8a6: bc029073 csrw 0xbc0,t0
|
|
8aa: 428d li t0,3
|
|
8ac: 80429073 csrw 0x804,t0
|
|
8b0: 08800293 li t0,136
|
|
8b4: 30029073 csrw mstatus,t0
|
|
8b8: fffff297 auipc t0,0xfffff
|
|
8bc: 74c28293 addi t0,t0,1868 # 4 <_einit>
|
|
8c0: 0032e293 ori t0,t0,3
|
|
8c4: 30529073 csrw mtvec,t0
|
|
8c8: e13ff0ef jal ra,6da <SystemInit>
|
|
8cc: 00000297 auipc t0,0x0
|
|
8d0: d4a28293 addi t0,t0,-694 # 616 <main>
|
|
8d4: 34129073 csrw mepc,t0
|
|
8d8: 30200073 mret
|
|
|
|
000008dc <ADC_DeInit>:
|
|
8dc: 400127b7 lui a5,0x40012
|
|
8e0: 40078793 addi a5,a5,1024 # 40012400 <_eusrstack+0x2000d400>
|
|
8e4: 02f51063 bne a0,a5,904 <ADC_DeInit+0x28>
|
|
8e8: 889ff2ef jal t0,170 <__riscv_save_0>
|
|
8ec: 4585 li a1,1
|
|
8ee: 20000513 li a0,512
|
|
8f2: 053000ef jal ra,1144 <RCC_PB2PeriphResetCmd>
|
|
8f6: 4581 li a1,0
|
|
8f8: 20000513 li a0,512
|
|
8fc: 049000ef jal ra,1144 <RCC_PB2PeriphResetCmd>
|
|
900: 895ff06f j 194 <__riscv_restore_0>
|
|
904: 8082 ret
|
|
|
|
00000906 <ADC_Init>:
|
|
906: 415c lw a5,4(a0)
|
|
908: e0f10737 lui a4,0xe0f10
|
|
90c: eff70713 addi a4,a4,-257 # e0f0feff <_eusrstack+0xc0f0aeff>
|
|
910: 4d94 lw a3,24(a1)
|
|
912: 8f7d and a4,a4,a5
|
|
914: 419c lw a5,0(a1)
|
|
916: 8fd5 or a5,a5,a3
|
|
918: 4dd4 lw a3,28(a1)
|
|
91a: 8fd5 or a5,a5,a3
|
|
91c: 41d4 lw a3,4(a1)
|
|
91e: 06a2 slli a3,a3,0x8
|
|
920: 8fd5 or a5,a5,a3
|
|
922: 8fd9 or a5,a5,a4
|
|
924: c15c sw a5,4(a0)
|
|
926: 451c lw a5,8(a0)
|
|
928: fff1f737 lui a4,0xfff1f
|
|
92c: 7fd70713 addi a4,a4,2045 # fff1f7fd <_eusrstack+0xdff1a7fd>
|
|
930: 45d4 lw a3,12(a1)
|
|
932: 8f7d and a4,a4,a5
|
|
934: 499c lw a5,16(a1)
|
|
936: 8fd5 or a5,a5,a3
|
|
938: 4594 lw a3,8(a1)
|
|
93a: 0686 slli a3,a3,0x1
|
|
93c: 8fd5 or a5,a5,a3
|
|
93e: 8fd9 or a5,a5,a4
|
|
940: c51c sw a5,8(a0)
|
|
942: 555c lw a5,44(a0)
|
|
944: ff100737 lui a4,0xff100
|
|
948: 177d addi a4,a4,-1
|
|
94a: 8f7d and a4,a4,a5
|
|
94c: 29dc lbu a5,20(a1)
|
|
94e: 17fd addi a5,a5,-1
|
|
950: 0ff7f793 andi a5,a5,255
|
|
954: 07d2 slli a5,a5,0x14
|
|
956: 8fd9 or a5,a5,a4
|
|
958: d55c sw a5,44(a0)
|
|
95a: 8082 ret
|
|
|
|
0000095c <ADC_Cmd>:
|
|
95c: 451c lw a5,8(a0)
|
|
95e: c589 beqz a1,968 <ADC_Cmd+0xc>
|
|
960: 0017e793 ori a5,a5,1
|
|
964: c51c sw a5,8(a0)
|
|
966: 8082 ret
|
|
968: 9bf9 andi a5,a5,-2
|
|
96a: bfed j 964 <ADC_Cmd+0x8>
|
|
|
|
0000096c <ADC_DMACmd>:
|
|
96c: 451c lw a5,8(a0)
|
|
96e: c589 beqz a1,978 <ADC_DMACmd+0xc>
|
|
970: 1007e793 ori a5,a5,256
|
|
974: c51c sw a5,8(a0)
|
|
976: 8082 ret
|
|
978: eff7f793 andi a5,a5,-257
|
|
97c: bfe5 j 974 <ADC_DMACmd+0x8>
|
|
|
|
0000097e <ADC_ResetCalibration>:
|
|
97e: 451c lw a5,8(a0)
|
|
980: 0087e793 ori a5,a5,8
|
|
984: c51c sw a5,8(a0)
|
|
986: 8082 ret
|
|
|
|
00000988 <ADC_GetResetCalibrationStatus>:
|
|
988: 4508 lw a0,8(a0)
|
|
98a: 810d srli a0,a0,0x3
|
|
98c: 8905 andi a0,a0,1
|
|
98e: 8082 ret
|
|
|
|
00000990 <ADC_StartCalibration>:
|
|
990: 451c lw a5,8(a0)
|
|
992: 0047e793 ori a5,a5,4
|
|
996: c51c sw a5,8(a0)
|
|
998: 8082 ret
|
|
|
|
0000099a <ADC_GetCalibrationStatus>:
|
|
99a: 4508 lw a0,8(a0)
|
|
99c: 8109 srli a0,a0,0x2
|
|
99e: 8905 andi a0,a0,1
|
|
9a0: 8082 ret
|
|
|
|
000009a2 <ADC_SoftwareStartConvCmd>:
|
|
9a2: 451c lw a5,8(a0)
|
|
9a4: c591 beqz a1,9b0 <ADC_SoftwareStartConvCmd+0xe>
|
|
9a6: 00500737 lui a4,0x500
|
|
9aa: 8fd9 or a5,a5,a4
|
|
9ac: c51c sw a5,8(a0)
|
|
9ae: 8082 ret
|
|
9b0: ffb00737 lui a4,0xffb00
|
|
9b4: 177d addi a4,a4,-1
|
|
9b6: 8ff9 and a5,a5,a4
|
|
9b8: bfd5 j 9ac <ADC_SoftwareStartConvCmd+0xa>
|
|
|
|
000009ba <ADC_RegularChannelConfig>:
|
|
9ba: 47a5 li a5,9
|
|
9bc: 04b7f763 bgeu a5,a1,a0a <ADC_RegularChannelConfig+0x50>
|
|
9c0: 478d li a5,3
|
|
9c2: ff658713 addi a4,a1,-10
|
|
9c6: 02f70733 mul a4,a4,a5
|
|
9ca: 00c52803 lw a6,12(a0)
|
|
9ce: 479d li a5,7
|
|
9d0: 00e797b3 sll a5,a5,a4
|
|
9d4: fff7c793 not a5,a5
|
|
9d8: 0107f7b3 and a5,a5,a6
|
|
9dc: 00e696b3 sll a3,a3,a4
|
|
9e0: 8edd or a3,a3,a5
|
|
9e2: c554 sw a3,12(a0)
|
|
9e4: 4799 li a5,6
|
|
9e6: 04c7e363 bltu a5,a2,a2c <ADC_RegularChannelConfig+0x72>
|
|
9ea: 4795 li a5,5
|
|
9ec: 167d addi a2,a2,-1
|
|
9ee: 02f60633 mul a2,a2,a5
|
|
9f2: 5958 lw a4,52(a0)
|
|
9f4: 47fd li a5,31
|
|
9f6: 00c797b3 sll a5,a5,a2
|
|
9fa: fff7c793 not a5,a5
|
|
9fe: 8ff9 and a5,a5,a4
|
|
a00: 00c59633 sll a2,a1,a2
|
|
a04: 8e5d or a2,a2,a5
|
|
a06: d950 sw a2,52(a0)
|
|
a08: 8082 ret
|
|
a0a: 470d li a4,3
|
|
a0c: 02e58733 mul a4,a1,a4
|
|
a10: 01052803 lw a6,16(a0)
|
|
a14: 479d li a5,7
|
|
a16: 00e797b3 sll a5,a5,a4
|
|
a1a: fff7c793 not a5,a5
|
|
a1e: 0107f7b3 and a5,a5,a6
|
|
a22: 00e696b3 sll a3,a3,a4
|
|
a26: 8edd or a3,a3,a5
|
|
a28: c914 sw a3,16(a0)
|
|
a2a: bf6d j 9e4 <ADC_RegularChannelConfig+0x2a>
|
|
a2c: 47b1 li a5,12
|
|
a2e: 02c7e263 bltu a5,a2,a52 <ADC_RegularChannelConfig+0x98>
|
|
a32: 4795 li a5,5
|
|
a34: 1665 addi a2,a2,-7
|
|
a36: 02f60633 mul a2,a2,a5
|
|
a3a: 5918 lw a4,48(a0)
|
|
a3c: 47fd li a5,31
|
|
a3e: 00c797b3 sll a5,a5,a2
|
|
a42: fff7c793 not a5,a5
|
|
a46: 8ff9 and a5,a5,a4
|
|
a48: 00c59633 sll a2,a1,a2
|
|
a4c: 8e5d or a2,a2,a5
|
|
a4e: d910 sw a2,48(a0)
|
|
a50: 8082 ret
|
|
a52: 4795 li a5,5
|
|
a54: 164d addi a2,a2,-13
|
|
a56: 02f60633 mul a2,a2,a5
|
|
a5a: 5558 lw a4,44(a0)
|
|
a5c: 47fd li a5,31
|
|
a5e: 00c797b3 sll a5,a5,a2
|
|
a62: fff7c793 not a5,a5
|
|
a66: 8ff9 and a5,a5,a4
|
|
a68: 00c595b3 sll a1,a1,a2
|
|
a6c: 8ddd or a1,a1,a5
|
|
a6e: d54c sw a1,44(a0)
|
|
a70: 8082 ret
|
|
|
|
00000a72 <ADC_BufferCmd>:
|
|
a72: 415c lw a5,4(a0)
|
|
a74: c591 beqz a1,a80 <ADC_BufferCmd+0xe>
|
|
a76: 04000737 lui a4,0x4000
|
|
a7a: 8fd9 or a5,a5,a4
|
|
a7c: c15c sw a5,4(a0)
|
|
a7e: 8082 ret
|
|
a80: fc000737 lui a4,0xfc000
|
|
a84: 177d addi a4,a4,-1
|
|
a86: 8ff9 and a5,a5,a4
|
|
a88: bfd5 j a7c <ADC_BufferCmd+0xa>
|
|
|
|
00000a8a <ADC_FIFO_Cmd>:
|
|
a8a: 456706b7 lui a3,0x45670
|
|
a8e: 400227b7 lui a5,0x40022
|
|
a92: 12368693 addi a3,a3,291 # 45670123 <_eusrstack+0x2566b123>
|
|
a96: cdef9737 lui a4,0xcdef9
|
|
a9a: c3d4 sw a3,4(a5)
|
|
a9c: 9ab70713 addi a4,a4,-1621 # cdef89ab <_eusrstack+0xadef39ab>
|
|
aa0: c3d8 sw a4,4(a5)
|
|
aa2: d3d4 sw a3,36(a5)
|
|
aa4: c798 sw a4,8(a5)
|
|
aa6: 5bd8 lw a4,52(a5)
|
|
aa8: 03478693 addi a3,a5,52 # 40022034 <_eusrstack+0x2001d034>
|
|
aac: 00271613 slli a2,a4,0x2
|
|
ab0: fe064be3 bltz a2,aa6 <ADC_FIFO_Cmd+0x1c>
|
|
ab4: 57d8 lw a4,44(a5)
|
|
ab6: 20076713 ori a4,a4,512
|
|
aba: d7d8 sw a4,44(a5)
|
|
abc: 5bdc lw a5,52(a5)
|
|
abe: 20000737 lui a4,0x20000
|
|
ac2: 8fd9 or a5,a5,a4
|
|
ac4: c29c sw a5,0(a3)
|
|
ac6: 40022737 lui a4,0x40022
|
|
aca: 5b5c lw a5,52(a4)
|
|
acc: 00279693 slli a3,a5,0x2
|
|
ad0: fe06dde3 bgez a3,aca <ADC_FIFO_Cmd+0x40>
|
|
ad4: 493c lw a5,80(a0)
|
|
ad6: c589 beqz a1,ae0 <ADC_FIFO_Cmd+0x56>
|
|
ad8: 0407e793 ori a5,a5,64
|
|
adc: c93c sw a5,80(a0)
|
|
ade: 8082 ret
|
|
ae0: fbf7f793 andi a5,a5,-65
|
|
ae4: bfe5 j adc <ADC_FIFO_Cmd+0x52>
|
|
|
|
00000ae6 <DBGMCU_GetCHIPID>:
|
|
ae6: 8201a503 lw a0,-2016(gp) # 200000a0 <CHIPID>
|
|
aea: 8082 ret
|
|
|
|
00000aec <DMA_DeInit>:
|
|
aec: 411c lw a5,0(a0)
|
|
aee: 6741 lui a4,0x10
|
|
af0: 1779 addi a4,a4,-2
|
|
af2: 8ff9 and a5,a5,a4
|
|
af4: c11c sw a5,0(a0)
|
|
af6: 00052023 sw zero,0(a0)
|
|
afa: 00052223 sw zero,4(a0)
|
|
afe: 00052423 sw zero,8(a0)
|
|
b02: 400207b7 lui a5,0x40020
|
|
b06: 00052623 sw zero,12(a0)
|
|
b0a: 00878713 addi a4,a5,8 # 40020008 <_eusrstack+0x2001b008>
|
|
b0e: 00e51763 bne a0,a4,b1c <DMA_DeInit+0x30>
|
|
b12: 43d8 lw a4,4(a5)
|
|
b14: 00f76713 ori a4,a4,15
|
|
b18: c3d8 sw a4,4(a5)
|
|
b1a: 8082 ret
|
|
b1c: 01c78713 addi a4,a5,28
|
|
b20: 00e51663 bne a0,a4,b2c <DMA_DeInit+0x40>
|
|
b24: 43d8 lw a4,4(a5)
|
|
b26: 0f076713 ori a4,a4,240
|
|
b2a: b7fd j b18 <DMA_DeInit+0x2c>
|
|
b2c: 03078713 addi a4,a5,48
|
|
b30: 00e51863 bne a0,a4,b40 <DMA_DeInit+0x54>
|
|
b34: 43d8 lw a4,4(a5)
|
|
b36: 6685 lui a3,0x1
|
|
b38: f0068693 addi a3,a3,-256 # f00 <GPIO_IPD_Unused+0x11e>
|
|
b3c: 8f55 or a4,a4,a3
|
|
b3e: bfe9 j b18 <DMA_DeInit+0x2c>
|
|
b40: 04478713 addi a4,a5,68
|
|
b44: 00e51563 bne a0,a4,b4e <DMA_DeInit+0x62>
|
|
b48: 43d8 lw a4,4(a5)
|
|
b4a: 66bd lui a3,0xf
|
|
b4c: bfc5 j b3c <DMA_DeInit+0x50>
|
|
b4e: 05878713 addi a4,a5,88
|
|
b52: 00e51663 bne a0,a4,b5e <DMA_DeInit+0x72>
|
|
b56: 43d8 lw a4,4(a5)
|
|
b58: 000f06b7 lui a3,0xf0
|
|
b5c: b7c5 j b3c <DMA_DeInit+0x50>
|
|
b5e: 06c78713 addi a4,a5,108
|
|
b62: 00e51663 bne a0,a4,b6e <DMA_DeInit+0x82>
|
|
b66: 43d8 lw a4,4(a5)
|
|
b68: 00f006b7 lui a3,0xf00
|
|
b6c: bfc1 j b3c <DMA_DeInit+0x50>
|
|
b6e: 08078713 addi a4,a5,128
|
|
b72: 00e51663 bne a0,a4,b7e <DMA_DeInit+0x92>
|
|
b76: 43d8 lw a4,4(a5)
|
|
b78: 0f0006b7 lui a3,0xf000
|
|
b7c: b7c1 j b3c <DMA_DeInit+0x50>
|
|
b7e: 09478713 addi a4,a5,148
|
|
b82: f8e51ce3 bne a0,a4,b1a <DMA_DeInit+0x2e>
|
|
b86: 43d8 lw a4,4(a5)
|
|
b88: f00006b7 lui a3,0xf0000
|
|
b8c: bf45 j b3c <DMA_DeInit+0x50>
|
|
|
|
00000b8e <DMA_Init>:
|
|
b8e: 411c lw a5,0(a0)
|
|
b90: 7761 lui a4,0xffff8
|
|
b92: 073d addi a4,a4,15
|
|
b94: 5194 lw a3,32(a1)
|
|
b96: 8f7d and a4,a4,a5
|
|
b98: 459c lw a5,8(a1)
|
|
b9a: 8fd5 or a5,a5,a3
|
|
b9c: 4994 lw a3,16(a1)
|
|
b9e: 8fd5 or a5,a5,a3
|
|
ba0: 49d4 lw a3,20(a1)
|
|
ba2: 8fd5 or a5,a5,a3
|
|
ba4: 4d94 lw a3,24(a1)
|
|
ba6: 8fd5 or a5,a5,a3
|
|
ba8: 4dd4 lw a3,28(a1)
|
|
baa: 8fd5 or a5,a5,a3
|
|
bac: 51d4 lw a3,36(a1)
|
|
bae: 8fd5 or a5,a5,a3
|
|
bb0: 5594 lw a3,40(a1)
|
|
bb2: 8fd5 or a5,a5,a3
|
|
bb4: 8fd9 or a5,a5,a4
|
|
bb6: c11c sw a5,0(a0)
|
|
bb8: 45dc lw a5,12(a1)
|
|
bba: c15c sw a5,4(a0)
|
|
bbc: 419c lw a5,0(a1)
|
|
bbe: c51c sw a5,8(a0)
|
|
bc0: 41dc lw a5,4(a1)
|
|
bc2: c55c sw a5,12(a0)
|
|
bc4: 8082 ret
|
|
|
|
00000bc6 <DMA_Cmd>:
|
|
bc6: 411c lw a5,0(a0)
|
|
bc8: c589 beqz a1,bd2 <DMA_Cmd+0xc>
|
|
bca: 0017e793 ori a5,a5,1
|
|
bce: c11c sw a5,0(a0)
|
|
bd0: 8082 ret
|
|
bd2: 6741 lui a4,0x10
|
|
bd4: 1779 addi a4,a4,-2
|
|
bd6: 8ff9 and a5,a5,a4
|
|
bd8: bfdd j bce <DMA_Cmd+0x8>
|
|
|
|
00000bda <GPIO_Init>:
|
|
bda: 459c lw a5,8(a1)
|
|
bdc: 0107f713 andi a4,a5,16
|
|
be0: 00f7f813 andi a6,a5,15
|
|
be4: c701 beqz a4,bec <GPIO_Init+0x12>
|
|
be6: 41d8 lw a4,4(a1)
|
|
be8: 00e86833 or a6,a6,a4
|
|
bec: 218e lhu a1,0(a1)
|
|
bee: 0ff5f713 andi a4,a1,255
|
|
bf2: c339 beqz a4,c38 <GPIO_Init+0x5e>
|
|
bf4: 4118 lw a4,0(a0)
|
|
bf6: 4681 li a3,0
|
|
bf8: 4e85 li t4,1
|
|
bfa: 4f3d li t5,15
|
|
bfc: 02800f93 li t6,40
|
|
c00: 04800293 li t0,72
|
|
c04: 4e21 li t3,8
|
|
c06: 00de9633 sll a2,t4,a3
|
|
c0a: 00c5f8b3 and a7,a1,a2
|
|
c0e: 03161163 bne a2,a7,c30 <GPIO_Init+0x56>
|
|
c12: 00269893 slli a7,a3,0x2
|
|
c16: 011f1333 sll t1,t5,a7
|
|
c1a: fff34313 not t1,t1
|
|
c1e: 00e37733 and a4,t1,a4
|
|
c22: 011818b3 sll a7,a6,a7
|
|
c26: 00e8e733 or a4,a7,a4
|
|
c2a: 05f79f63 bne a5,t6,c88 <GPIO_Init+0xae>
|
|
c2e: c950 sw a2,20(a0)
|
|
c30: 0685 addi a3,a3,1
|
|
c32: fdc69ae3 bne a3,t3,c06 <GPIO_Init+0x2c>
|
|
c36: c118 sw a4,0(a0)
|
|
c38: 0ff00713 li a4,255
|
|
c3c: 04b77563 bgeu a4,a1,c86 <GPIO_Init+0xac>
|
|
c40: 4154 lw a3,4(a0)
|
|
c42: 4621 li a2,8
|
|
c44: 4e85 li t4,1
|
|
c46: 4f3d li t5,15
|
|
c48: 02800f93 li t6,40
|
|
c4c: 04800293 li t0,72
|
|
c50: 4e41 li t3,16
|
|
c52: 00ce98b3 sll a7,t4,a2
|
|
c56: 0115f733 and a4,a1,a7
|
|
c5a: 02e89263 bne a7,a4,c7e <GPIO_Init+0xa4>
|
|
c5e: 00261713 slli a4,a2,0x2
|
|
c62: 1701 addi a4,a4,-32
|
|
c64: 00ef1333 sll t1,t5,a4
|
|
c68: fff34313 not t1,t1
|
|
c6c: 00d376b3 and a3,t1,a3
|
|
c70: 00e81733 sll a4,a6,a4
|
|
c74: 8ed9 or a3,a3,a4
|
|
c76: 01f79d63 bne a5,t6,c90 <GPIO_Init+0xb6>
|
|
c7a: 01152a23 sw a7,20(a0)
|
|
c7e: 0605 addi a2,a2,1
|
|
c80: fdc619e3 bne a2,t3,c52 <GPIO_Init+0x78>
|
|
c84: c154 sw a3,4(a0)
|
|
c86: 8082 ret
|
|
c88: fa5794e3 bne a5,t0,c30 <GPIO_Init+0x56>
|
|
c8c: c910 sw a2,16(a0)
|
|
c8e: b74d j c30 <GPIO_Init+0x56>
|
|
c90: fe5797e3 bne a5,t0,c7e <GPIO_Init+0xa4>
|
|
c94: 01152823 sw a7,16(a0)
|
|
c98: b7dd j c7e <GPIO_Init+0xa4>
|
|
|
|
00000c9a <GPIO_ReadOutputDataBit>:
|
|
c9a: 4548 lw a0,12(a0)
|
|
c9c: 8d6d and a0,a0,a1
|
|
c9e: 00a03533 snez a0,a0
|
|
ca2: 8082 ret
|
|
|
|
00000ca4 <GPIO_SetBits>:
|
|
ca4: c90c sw a1,16(a0)
|
|
ca6: 8082 ret
|
|
|
|
00000ca8 <GPIO_ResetBits>:
|
|
ca8: c94c sw a1,20(a0)
|
|
caa: 8082 ret
|
|
|
|
00000cac <GPIO_WriteBit>:
|
|
cac: c219 beqz a2,cb2 <GPIO_WriteBit+0x6>
|
|
cae: c90c sw a1,16(a0)
|
|
cb0: 8082 ret
|
|
cb2: c94c sw a1,20(a0)
|
|
cb4: 8082 ret
|
|
|
|
00000cb6 <GPIO_PinRemapConfig>:
|
|
cb6: c0000737 lui a4,0xc0000
|
|
cba: 00e577b3 and a5,a0,a4
|
|
cbe: 08e79563 bne a5,a4,d48 <GPIO_PinRemapConfig+0x92>
|
|
cc2: 40010737 lui a4,0x40010
|
|
cc6: 435c lw a5,4(a4)
|
|
cc8: 01b55693 srli a3,a0,0x1b
|
|
ccc: 4f58 lw a4,28(a4)
|
|
cce: 8a9d andi a3,a3,7
|
|
cd0: e69d bnez a3,cfe <GPIO_PinRemapConfig+0x48>
|
|
cd2: 9bf9 andi a5,a5,-2
|
|
cd4: ff0006b7 lui a3,0xff000
|
|
cd8: 16fd addi a3,a3,-1
|
|
cda: 8f75 and a4,a4,a3
|
|
cdc: c989 beqz a1,cee <GPIO_PinRemapConfig+0x38>
|
|
cde: 01051693 slli a3,a0,0x10
|
|
ce2: 82c1 srli a3,a3,0x10
|
|
ce4: 8fd5 or a5,a5,a3
|
|
ce6: 01ff06b7 lui a3,0x1ff0
|
|
cea: 8d75 and a0,a0,a3
|
|
cec: 8f49 or a4,a4,a0
|
|
cee: 070006b7 lui a3,0x7000
|
|
cf2: 8fd5 or a5,a5,a3
|
|
cf4: 400106b7 lui a3,0x40010
|
|
cf8: c2dc sw a5,4(a3)
|
|
cfa: ced8 sw a4,28(a3)
|
|
cfc: 8082 ret
|
|
cfe: 4605 li a2,1
|
|
d00: 00c69663 bne a3,a2,d0c <GPIO_PinRemapConfig+0x56>
|
|
d04: 9bf5 andi a5,a5,-3
|
|
d06: ff8006b7 lui a3,0xff800
|
|
d0a: b7f9 j cd8 <GPIO_PinRemapConfig+0x22>
|
|
d0c: 4609 li a2,2
|
|
d0e: 00c69663 bne a3,a2,d1a <GPIO_PinRemapConfig+0x64>
|
|
d12: 9bed andi a5,a5,-5
|
|
d14: ffe806b7 lui a3,0xffe80
|
|
d18: b7c1 j cd8 <GPIO_PinRemapConfig+0x22>
|
|
d1a: 460d li a2,3
|
|
d1c: 00c69663 bne a3,a2,d28 <GPIO_PinRemapConfig+0x72>
|
|
d20: 9bdd andi a5,a5,-9
|
|
d22: fffc06b7 lui a3,0xfffc0
|
|
d26: bf4d j cd8 <GPIO_PinRemapConfig+0x22>
|
|
d28: 4611 li a2,4
|
|
d2a: 00c69763 bne a3,a2,d38 <GPIO_PinRemapConfig+0x82>
|
|
d2e: f3f7f793 andi a5,a5,-193
|
|
d32: ffc006b7 lui a3,0xffc00
|
|
d36: b74d j cd8 <GPIO_PinRemapConfig+0x22>
|
|
d38: 4615 li a2,5
|
|
d3a: fac691e3 bne a3,a2,cdc <GPIO_PinRemapConfig+0x26>
|
|
d3e: cff7f793 andi a5,a5,-769
|
|
d42: ffe006b7 lui a3,0xffe00
|
|
d46: bf49 j cd8 <GPIO_PinRemapConfig+0x22>
|
|
d48: 40000737 lui a4,0x40000
|
|
d4c: 02e79163 bne a5,a4,d6e <GPIO_PinRemapConfig+0xb8>
|
|
d50: 400107b7 lui a5,0x40010
|
|
d54: 4fd8 lw a4,28(a5)
|
|
d56: 0542 slli a0,a0,0x10
|
|
d58: 00a767b3 or a5,a4,a0
|
|
d5c: e589 bnez a1,d66 <GPIO_PinRemapConfig+0xb0>
|
|
d5e: fff54513 not a0,a0
|
|
d62: 00e577b3 and a5,a0,a4
|
|
d66: 40010737 lui a4,0x40010
|
|
d6a: cf5c sw a5,28(a4)
|
|
d6c: 8082 ret
|
|
d6e: e3a9 bnez a5,db0 <GPIO_PinRemapConfig+0xfa>
|
|
d70: 40010837 lui a6,0x40010
|
|
d74: 003007b7 lui a5,0x300
|
|
d78: 00482603 lw a2,4(a6) # 40010004 <_eusrstack+0x2000b004>
|
|
d7c: 01051713 slli a4,a0,0x10
|
|
d80: 00f576b3 and a3,a0,a5
|
|
d84: 8341 srli a4,a4,0x10
|
|
d86: 02f69663 bne a3,a5,db2 <GPIO_PinRemapConfig+0xfc>
|
|
d8a: f90006b7 lui a3,0xf9000
|
|
d8e: 16fd addi a3,a3,-1
|
|
d90: 00d677b3 and a5,a2,a3
|
|
d94: 00482603 lw a2,4(a6)
|
|
d98: 8ef1 and a3,a3,a2
|
|
d9a: 00d82223 sw a3,4(a6)
|
|
d9e: c591 beqz a1,daa <GPIO_PinRemapConfig+0xf4>
|
|
da0: 8155 srli a0,a0,0x15
|
|
da2: 0512 slli a0,a0,0x4
|
|
da4: 00a71533 sll a0,a4,a0
|
|
da8: 8fc9 or a5,a5,a0
|
|
daa: 40010737 lui a4,0x40010
|
|
dae: c35c sw a5,4(a4)
|
|
db0: 8082 ret
|
|
db2: 00b51793 slli a5,a0,0xb
|
|
db6: 0207d063 bgez a5,dd6 <GPIO_PinRemapConfig+0x120>
|
|
dba: 01055793 srli a5,a0,0x10
|
|
dbe: 00f7f693 andi a3,a5,15
|
|
dc2: 478d li a5,3
|
|
dc4: 00d797b3 sll a5,a5,a3
|
|
dc8: fff7c793 not a5,a5
|
|
dcc: 8ff1 and a5,a5,a2
|
|
dce: 070006b7 lui a3,0x7000
|
|
dd2: 8fd5 or a5,a5,a3
|
|
dd4: b7e9 j d9e <GPIO_PinRemapConfig+0xe8>
|
|
dd6: 01555793 srli a5,a0,0x15
|
|
dda: 0792 slli a5,a5,0x4
|
|
ddc: 00f717b3 sll a5,a4,a5
|
|
de0: b7e5 j dc8 <GPIO_PinRemapConfig+0x112>
|
|
|
|
00000de2 <GPIO_IPD_Unused>:
|
|
de2: b8eff2ef jal t0,170 <__riscv_save_0>
|
|
de6: 1ffff437 lui s0,0x1ffff
|
|
dea: 72442703 lw a4,1828(s0) # 1ffff724 <_data_lma+0x1fffd180>
|
|
dee: 3e000637 lui a2,0x3e000
|
|
df2: 1141 addi sp,sp,-16
|
|
df4: 01971793 slli a5,a4,0x19
|
|
df8: fff74693 not a3,a4
|
|
dfc: 8ff1 and a5,a5,a2
|
|
dfe: 0706 slli a4,a4,0x1
|
|
e00: 003e0637 lui a2,0x3e0
|
|
e04: 8f71 and a4,a4,a2
|
|
e06: 8fd9 or a5,a5,a4
|
|
e08: 01000637 lui a2,0x1000
|
|
e0c: 00969713 slli a4,a3,0x9
|
|
e10: 8f71 and a4,a4,a2
|
|
e12: 8fd9 or a5,a5,a4
|
|
e14: 82bd srli a3,a3,0xf
|
|
e16: 6741 lui a4,0x10
|
|
e18: 8ef9 and a3,a3,a4
|
|
e1a: c202 sw zero,4(sp)
|
|
e1c: c402 sw zero,8(sp)
|
|
e1e: c602 sw zero,12(sp)
|
|
e20: 8fd5 or a5,a5,a3
|
|
e22: 82f1a223 sw a5,-2012(gp) # 200000a4 <OPA_Trim>
|
|
e26: 72845703 lhu a4,1832(s0)
|
|
e2a: 4585 li a1,1
|
|
e2c: 80e19e23 sh a4,-2020(gp) # 2000009c <ADC_Trim>
|
|
e30: 72042703 lw a4,1824(s0)
|
|
e34: 03d00513 li a0,61
|
|
e38: 82e1a423 sw a4,-2008(gp) # 200000a8 <TS_Val>
|
|
e3c: 70442703 lw a4,1796(s0)
|
|
e40: 82e1a023 sw a4,-2016(gp) # 200000a0 <CHIPID>
|
|
e44: 73045703 lhu a4,1840(s0)
|
|
e48: 82e19623 sh a4,-2004(gp) # 200000ac <USBPD_CFG>
|
|
e4c: 2c75 jal 1108 <RCC_PB2PeriphClockCmd>
|
|
e4e: 70442783 lw a5,1796(s0)
|
|
e52: 103a0737 lui a4,0x103a0
|
|
e56: 70070713 addi a4,a4,1792 # 103a0700 <_data_lma+0x1039e15c>
|
|
e5a: f0f7f793 andi a5,a5,-241
|
|
e5e: 10e78463 beq a5,a4,f66 <GPIO_IPD_Unused+0x184>
|
|
e62: 00f76b63 bltu a4,a5,e78 <GPIO_IPD_Unused+0x96>
|
|
e66: 10320737 lui a4,0x10320
|
|
e6a: 70070713 addi a4,a4,1792 # 10320700 <_data_lma+0x1031e15c>
|
|
e6e: 08e78063 beq a5,a4,eee <GPIO_IPD_Unused+0x10c>
|
|
e72: 0141 addi sp,sp,16
|
|
e74: b20ff06f j 194 <__riscv_restore_0>
|
|
e78: 103b0737 lui a4,0x103b0
|
|
e7c: 70070713 addi a4,a4,1792 # 103b0700 <_data_lma+0x103ae15c>
|
|
e80: 08e78b63 beq a5,a4,f16 <GPIO_IPD_Unused+0x134>
|
|
e84: 103d0737 lui a4,0x103d0
|
|
e88: 70070713 addi a4,a4,1792 # 103d0700 <_data_lma+0x103ce15c>
|
|
e8c: fee793e3 bne a5,a4,e72 <GPIO_IPD_Unused+0x90>
|
|
e90: 4585 li a1,1
|
|
e92: 6521 lui a0,0x8
|
|
e94: 350d jal cb6 <GPIO_PinRemapConfig>
|
|
e96: 40011437 lui s0,0x40011
|
|
e9a: 77e1 lui a5,0xffff8
|
|
e9c: 04800493 li s1,72
|
|
ea0: 004c addi a1,sp,4
|
|
ea2: 80040513 addi a0,s0,-2048 # 40010800 <_eusrstack+0x2000b800>
|
|
ea6: 827c sh a5,4(sp)
|
|
ea8: c626 sw s1,12(sp)
|
|
eaa: 3b05 jal bda <GPIO_Init>
|
|
eac: 6785 lui a5,0x1
|
|
eae: 33878793 addi a5,a5,824 # 1338 <USART_Printf_Init+0x10>
|
|
eb2: 004c addi a1,sp,4
|
|
eb4: c0040513 addi a0,s0,-1024
|
|
eb8: 827c sh a5,4(sp)
|
|
eba: c626 sw s1,12(sp)
|
|
ebc: 3b39 jal bda <GPIO_Init>
|
|
ebe: 4791 li a5,4
|
|
ec0: 827c sh a5,4(sp)
|
|
ec2: 004c addi a1,sp,4
|
|
ec4: 02800793 li a5,40
|
|
ec8: c0040513 addi a0,s0,-1024
|
|
ecc: c63e sw a5,12(sp)
|
|
ece: 3331 jal bda <GPIO_Init>
|
|
ed0: 77f9 lui a5,0xffffe
|
|
ed2: 004c addi a1,sp,4
|
|
ed4: 40011537 lui a0,0x40011
|
|
ed8: 827c sh a5,4(sp)
|
|
eda: c626 sw s1,12(sp)
|
|
edc: 39fd jal bda <GPIO_Init>
|
|
ede: 478d li a5,3
|
|
ee0: 827c sh a5,4(sp)
|
|
ee2: c626 sw s1,12(sp)
|
|
ee4: 004c addi a1,sp,4
|
|
ee6: 40040513 addi a0,s0,1024
|
|
eea: 39c5 jal bda <GPIO_Init>
|
|
eec: b759 j e72 <GPIO_IPD_Unused+0x90>
|
|
eee: 77e1 lui a5,0xffff8
|
|
ef0: 40011537 lui a0,0x40011
|
|
ef4: c007c793 xori a5,a5,-1024
|
|
ef8: 04800413 li s0,72
|
|
efc: 004c addi a1,sp,4
|
|
efe: c0050513 addi a0,a0,-1024 # 40010c00 <_eusrstack+0x2000bc00>
|
|
f02: 827c sh a5,4(sp)
|
|
f04: c622 sw s0,12(sp)
|
|
f06: 39d1 jal bda <GPIO_Init>
|
|
f08: 6789 lui a5,0x2
|
|
f0a: 827c sh a5,4(sp)
|
|
f0c: c622 sw s0,12(sp)
|
|
f0e: 004c addi a1,sp,4
|
|
f10: 40011537 lui a0,0x40011
|
|
f14: bfd9 j eea <GPIO_IPD_Unused+0x108>
|
|
f16: 4585 li a1,1
|
|
f18: 6521 lui a0,0x8
|
|
f1a: 3b71 jal cb6 <GPIO_PinRemapConfig>
|
|
f1c: 40011437 lui s0,0x40011
|
|
f20: 77e1 lui a5,0xffff8
|
|
f22: 04800493 li s1,72
|
|
f26: 004c addi a1,sp,4
|
|
f28: 80040513 addi a0,s0,-2048 # 40010800 <_eusrstack+0x2000b800>
|
|
f2c: 827c sh a5,4(sp)
|
|
f2e: c626 sw s1,12(sp)
|
|
f30: 316d jal bda <GPIO_Init>
|
|
f32: 21000793 li a5,528
|
|
f36: 004c addi a1,sp,4
|
|
f38: c0040513 addi a0,s0,-1024
|
|
f3c: 827c sh a5,4(sp)
|
|
f3e: c626 sw s1,12(sp)
|
|
f40: 3969 jal bda <GPIO_Init>
|
|
f42: 4791 li a5,4
|
|
f44: 827c sh a5,4(sp)
|
|
f46: 004c addi a1,sp,4
|
|
f48: 02800793 li a5,40
|
|
f4c: c0040513 addi a0,s0,-1024
|
|
f50: c63e sw a5,12(sp)
|
|
f52: 3161 jal bda <GPIO_Init>
|
|
f54: 77f9 lui a5,0xffffe
|
|
f56: 004c addi a1,sp,4
|
|
f58: 40011537 lui a0,0x40011
|
|
f5c: 827c sh a5,4(sp)
|
|
f5e: c626 sw s1,12(sp)
|
|
f60: 39ad jal bda <GPIO_Init>
|
|
f62: 4789 li a5,2
|
|
f64: bfb5 j ee0 <GPIO_IPD_Unused+0xfe>
|
|
f66: 400114b7 lui s1,0x40011
|
|
f6a: 77e1 lui a5,0xffff8
|
|
f6c: 70078793 addi a5,a5,1792 # ffff8700 <_eusrstack+0xdfff3700>
|
|
f70: 04800413 li s0,72
|
|
f74: 004c addi a1,sp,4
|
|
f76: 80048513 addi a0,s1,-2048 # 40010800 <_eusrstack+0x2000b800>
|
|
f7a: 827c sh a5,4(sp)
|
|
f7c: c622 sw s0,12(sp)
|
|
f7e: 39b1 jal bda <GPIO_Init>
|
|
f80: e3900793 li a5,-455
|
|
f84: 004c addi a1,sp,4
|
|
f86: c0048513 addi a0,s1,-1024
|
|
f8a: 827c sh a5,4(sp)
|
|
f8c: c622 sw s0,12(sp)
|
|
f8e: 31b1 jal bda <GPIO_Init>
|
|
f90: 4791 li a5,4
|
|
f92: 827c sh a5,4(sp)
|
|
f94: 004c addi a1,sp,4
|
|
f96: 02800793 li a5,40
|
|
f9a: c0048513 addi a0,s1,-1024
|
|
f9e: c63e sw a5,12(sp)
|
|
fa0: 392d jal bda <GPIO_Init>
|
|
fa2: 77f9 lui a5,0xffffe
|
|
fa4: b79d j f0a <GPIO_IPD_Unused+0x128>
|
|
|
|
00000fa6 <NVIC_PriorityGroupConfig>:
|
|
fa6: 82a1a823 sw a0,-2000(gp) # 200000b0 <NVIC_Priority_Group>
|
|
faa: 8082 ret
|
|
|
|
00000fac <NVIC_Init>:
|
|
fac: 8301a703 lw a4,-2000(gp) # 200000b0 <NVIC_Priority_Group>
|
|
fb0: 4785 li a5,1
|
|
fb2: 2114 lbu a3,0(a0)
|
|
fb4: 02f71063 bne a4,a5,fd4 <NVIC_Init+0x28>
|
|
fb8: 311c lbu a5,1(a0)
|
|
fba: 02e79c63 bne a5,a4,ff2 <NVIC_Init+0x46>
|
|
fbe: 213c lbu a5,2(a0)
|
|
fc0: 0796 slli a5,a5,0x5
|
|
fc2: f807e793 ori a5,a5,-128
|
|
fc6: e000e737 lui a4,0xe000e
|
|
fca: 0ff7f793 andi a5,a5,255
|
|
fce: 9736 add a4,a4,a3
|
|
fd0: 40f70023 sb a5,1024(a4) # e000e400 <_eusrstack+0xc0009400>
|
|
fd4: 4705 li a4,1
|
|
fd6: 0056d793 srli a5,a3,0x5
|
|
fda: 00d71733 sll a4,a4,a3
|
|
fde: 4154 lw a3,4(a0)
|
|
fe0: ce89 beqz a3,ffa <NVIC_Init+0x4e>
|
|
fe2: 04078793 addi a5,a5,64 # ffffe040 <_eusrstack+0xdfff9040>
|
|
fe6: 078a slli a5,a5,0x2
|
|
fe8: e000e6b7 lui a3,0xe000e
|
|
fec: 97b6 add a5,a5,a3
|
|
fee: c398 sw a4,0(a5)
|
|
ff0: 8082 ret
|
|
ff2: f3ed bnez a5,fd4 <NVIC_Init+0x28>
|
|
ff4: 213c lbu a5,2(a0)
|
|
ff6: 0796 slli a5,a5,0x5
|
|
ff8: b7f9 j fc6 <NVIC_Init+0x1a>
|
|
ffa: 06078793 addi a5,a5,96
|
|
ffe: b7e5 j fe6 <NVIC_Init+0x3a>
|
|
|
|
00001000 <RCC_ADCCLKConfig>:
|
|
1000: 400216b7 lui a3,0x40021
|
|
1004: 42dc lw a5,4(a3)
|
|
1006: 7fff4737 lui a4,0x7fff4
|
|
100a: 177d addi a4,a4,-1
|
|
100c: 8ff9 and a5,a5,a4
|
|
100e: 8d5d or a0,a0,a5
|
|
1010: c2c8 sw a0,4(a3)
|
|
1012: 8082 ret
|
|
|
|
00001014 <RCC_GetClocksFreq>:
|
|
1014: 40021737 lui a4,0x40021
|
|
1018: 435c lw a5,4(a4)
|
|
101a: 4691 li a3,4
|
|
101c: 8bb1 andi a5,a5,12
|
|
101e: 06d78c63 beq a5,a3,1096 <RCC_GetClocksFreq+0x82>
|
|
1022: 46a1 li a3,8
|
|
1024: 06d78e63 beq a5,a3,10a0 <RCC_GetClocksFreq+0x8c>
|
|
1028: e7bd bnez a5,1096 <RCC_GetClocksFreq+0x82>
|
|
102a: 431c lw a5,0(a4)
|
|
102c: 8b91 andi a5,a5,4
|
|
102e: c7a5 beqz a5,1096 <RCC_GetClocksFreq+0x82>
|
|
1030: 000f47b7 lui a5,0xf4
|
|
1034: 24078793 addi a5,a5,576 # f4240 <_data_lma+0xf1c9c>
|
|
1038: c11c sw a5,0(a0)
|
|
103a: 40021637 lui a2,0x40021
|
|
103e: 425c lw a5,4(a2)
|
|
1040: 20000737 lui a4,0x20000
|
|
1044: 01070713 addi a4,a4,16 # 20000010 <PBHBPrescTable>
|
|
1048: 8391 srli a5,a5,0x4
|
|
104a: 8bbd andi a5,a5,15
|
|
104c: 97ba add a5,a5,a4
|
|
104e: 2394 lbu a3,0(a5)
|
|
1050: 411c lw a5,0(a0)
|
|
1052: 00d7d7b3 srl a5,a5,a3
|
|
1056: c15c sw a5,4(a0)
|
|
1058: 4254 lw a3,4(a2)
|
|
105a: 82a1 srli a3,a3,0x8
|
|
105c: 8a9d andi a3,a3,7
|
|
105e: 96ba add a3,a3,a4
|
|
1060: 2294 lbu a3,0(a3)
|
|
1062: 00d7d6b3 srl a3,a5,a3
|
|
1066: c514 sw a3,8(a0)
|
|
1068: 4254 lw a3,4(a2)
|
|
106a: 82ad srli a3,a3,0xb
|
|
106c: 8a9d andi a3,a3,7
|
|
106e: 9736 add a4,a4,a3
|
|
1070: 2314 lbu a3,0(a4)
|
|
1072: 00d7d6b3 srl a3,a5,a3
|
|
1076: c554 sw a3,12(a0)
|
|
1078: 4258 lw a4,4(a2)
|
|
107a: 00074c63 bltz a4,1092 <RCC_GetClocksFreq+0x7e>
|
|
107e: 425c lw a5,4(a2)
|
|
1080: 83b9 srli a5,a5,0xe
|
|
1082: 0037f713 andi a4,a5,3
|
|
1086: 80418793 addi a5,gp,-2044 # 20000084 <ADCPrescTable>
|
|
108a: 97ba add a5,a5,a4
|
|
108c: 239c lbu a5,0(a5)
|
|
108e: 02f6d7b3 divu a5,a3,a5
|
|
1092: c91c sw a5,16(a0)
|
|
1094: 8082 ret
|
|
1096: 007a17b7 lui a5,0x7a1
|
|
109a: 20078793 addi a5,a5,512 # 7a1200 <_data_lma+0x79ec5c>
|
|
109e: bf69 j 1038 <RCC_GetClocksFreq+0x24>
|
|
10a0: 435c lw a5,4(a4)
|
|
10a2: 4358 lw a4,4(a4)
|
|
10a4: 66c1 lui a3,0x10
|
|
10a6: 83c9 srli a5,a5,0x12
|
|
10a8: 8bbd andi a5,a5,15
|
|
10aa: 8f75 and a4,a4,a3
|
|
10ac: 0789 addi a5,a5,2
|
|
10ae: 46c5 li a3,17
|
|
10b0: 00d79363 bne a5,a3,10b6 <RCC_GetClocksFreq+0xa2>
|
|
10b4: 47c9 li a5,18
|
|
10b6: ef01 bnez a4,10ce <RCC_GetClocksFreq+0xba>
|
|
10b8: 40024737 lui a4,0x40024
|
|
10bc: 80072703 lw a4,-2048(a4) # 40023800 <_eusrstack+0x2001e800>
|
|
10c0: 8b41 andi a4,a4,16
|
|
10c2: cf09 beqz a4,10dc <RCC_GetClocksFreq+0xc8>
|
|
10c4: 007a1737 lui a4,0x7a1
|
|
10c8: 20070713 addi a4,a4,512 # 7a1200 <_data_lma+0x79ec5c>
|
|
10cc: a821 j 10e4 <RCC_GetClocksFreq+0xd0>
|
|
10ce: 40021737 lui a4,0x40021
|
|
10d2: 4358 lw a4,4(a4)
|
|
10d4: 00e71693 slli a3,a4,0xe
|
|
10d8: fe06d6e3 bgez a3,10c4 <RCC_GetClocksFreq+0xb0>
|
|
10dc: 003d1737 lui a4,0x3d1
|
|
10e0: 90070713 addi a4,a4,-1792 # 3d0900 <_data_lma+0x3ce35c>
|
|
10e4: 02e787b3 mul a5,a5,a4
|
|
10e8: bf81 j 1038 <RCC_GetClocksFreq+0x24>
|
|
|
|
000010ea <RCC_HBPeriphClockCmd>:
|
|
10ea: c599 beqz a1,10f8 <RCC_HBPeriphClockCmd+0xe>
|
|
10ec: 40021737 lui a4,0x40021
|
|
10f0: 4b5c lw a5,20(a4)
|
|
10f2: 8d5d or a0,a0,a5
|
|
10f4: cb48 sw a0,20(a4)
|
|
10f6: 8082 ret
|
|
10f8: 400217b7 lui a5,0x40021
|
|
10fc: 4bd8 lw a4,20(a5)
|
|
10fe: fff54513 not a0,a0
|
|
1102: 8d79 and a0,a0,a4
|
|
1104: cbc8 sw a0,20(a5)
|
|
1106: 8082 ret
|
|
|
|
00001108 <RCC_PB2PeriphClockCmd>:
|
|
1108: c599 beqz a1,1116 <RCC_PB2PeriphClockCmd+0xe>
|
|
110a: 40021737 lui a4,0x40021
|
|
110e: 4f1c lw a5,24(a4)
|
|
1110: 8d5d or a0,a0,a5
|
|
1112: cf08 sw a0,24(a4)
|
|
1114: 8082 ret
|
|
1116: 400217b7 lui a5,0x40021
|
|
111a: 4f98 lw a4,24(a5)
|
|
111c: fff54513 not a0,a0
|
|
1120: 8d79 and a0,a0,a4
|
|
1122: cf88 sw a0,24(a5)
|
|
1124: 8082 ret
|
|
|
|
00001126 <RCC_PB1PeriphClockCmd>:
|
|
1126: c599 beqz a1,1134 <RCC_PB1PeriphClockCmd+0xe>
|
|
1128: 40021737 lui a4,0x40021
|
|
112c: 4f5c lw a5,28(a4)
|
|
112e: 8d5d or a0,a0,a5
|
|
1130: cf48 sw a0,28(a4)
|
|
1132: 8082 ret
|
|
1134: 400217b7 lui a5,0x40021
|
|
1138: 4fd8 lw a4,28(a5)
|
|
113a: fff54513 not a0,a0
|
|
113e: 8d79 and a0,a0,a4
|
|
1140: cfc8 sw a0,28(a5)
|
|
1142: 8082 ret
|
|
|
|
00001144 <RCC_PB2PeriphResetCmd>:
|
|
1144: c599 beqz a1,1152 <RCC_PB2PeriphResetCmd+0xe>
|
|
1146: 40021737 lui a4,0x40021
|
|
114a: 475c lw a5,12(a4)
|
|
114c: 8d5d or a0,a0,a5
|
|
114e: c748 sw a0,12(a4)
|
|
1150: 8082 ret
|
|
1152: 400217b7 lui a5,0x40021
|
|
1156: 47d8 lw a4,12(a5)
|
|
1158: fff54513 not a0,a0
|
|
115c: 8d79 and a0,a0,a4
|
|
115e: c7c8 sw a0,12(a5)
|
|
1160: 8082 ret
|
|
|
|
00001162 <TIM_TimeBaseInit>:
|
|
1162: 211e lhu a5,0(a0)
|
|
1164: 40013737 lui a4,0x40013
|
|
1168: c0070713 addi a4,a4,-1024 # 40012c00 <_eusrstack+0x2000dc00>
|
|
116c: 07c2 slli a5,a5,0x10
|
|
116e: 83c1 srli a5,a5,0x10
|
|
1170: 02e50063 beq a0,a4,1190 <TIM_TimeBaseInit+0x2e>
|
|
1174: 40000737 lui a4,0x40000
|
|
1178: 00e50c63 beq a0,a4,1190 <TIM_TimeBaseInit+0x2e>
|
|
117c: 40070713 addi a4,a4,1024 # 40000400 <_eusrstack+0x1fffb400>
|
|
1180: 00e50863 beq a0,a4,1190 <TIM_TimeBaseInit+0x2e>
|
|
1184: 40001737 lui a4,0x40001
|
|
1188: 80070713 addi a4,a4,-2048 # 40000800 <_eusrstack+0x1fffb800>
|
|
118c: 00e51663 bne a0,a4,1198 <TIM_TimeBaseInit+0x36>
|
|
1190: 21fa lhu a4,6(a1)
|
|
1192: f8f7f793 andi a5,a5,-113
|
|
1196: 8fd9 or a5,a5,a4
|
|
1198: 259a lhu a4,8(a1)
|
|
119a: cff7f793 andi a5,a5,-769
|
|
119e: 07c2 slli a5,a5,0x10
|
|
11a0: 83c1 srli a5,a5,0x10
|
|
11a2: 8fd9 or a5,a5,a4
|
|
11a4: 40001737 lui a4,0x40001
|
|
11a8: a11e sh a5,0(a0)
|
|
11aa: 80070713 addi a4,a4,-2048 # 40000800 <_eusrstack+0x1fffb800>
|
|
11ae: 419c lw a5,0(a1)
|
|
11b0: 02e51063 bne a0,a4,11d0 <TIM_TimeBaseInit+0x6e>
|
|
11b4: d55c sw a5,44(a0)
|
|
11b6: 21de lhu a5,4(a1)
|
|
11b8: b51e sh a5,40(a0)
|
|
11ba: 400137b7 lui a5,0x40013
|
|
11be: c0078793 addi a5,a5,-1024 # 40012c00 <_eusrstack+0x2000dc00>
|
|
11c2: 00f51463 bne a0,a5,11ca <TIM_TimeBaseInit+0x68>
|
|
11c6: 25bc lbu a5,10(a1)
|
|
11c8: b91e sh a5,48(a0)
|
|
11ca: 4785 li a5,1
|
|
11cc: a95e sh a5,20(a0)
|
|
11ce: 8082 ret
|
|
11d0: 07c2 slli a5,a5,0x10
|
|
11d2: 83c1 srli a5,a5,0x10
|
|
11d4: b55e sh a5,44(a0)
|
|
11d6: b7c5 j 11b6 <TIM_TimeBaseInit+0x54>
|
|
|
|
000011d8 <TIM_Cmd>:
|
|
11d8: 211e lhu a5,0(a0)
|
|
11da: c589 beqz a1,11e4 <TIM_Cmd+0xc>
|
|
11dc: 0017e793 ori a5,a5,1
|
|
11e0: a11e sh a5,0(a0)
|
|
11e2: 8082 ret
|
|
11e4: 07c2 slli a5,a5,0x10
|
|
11e6: 83c1 srli a5,a5,0x10
|
|
11e8: 9bf9 andi a5,a5,-2
|
|
11ea: 07c2 slli a5,a5,0x10
|
|
11ec: 83c1 srli a5,a5,0x10
|
|
11ee: bfcd j 11e0 <TIM_Cmd+0x8>
|
|
|
|
000011f0 <TIM_ITConfig>:
|
|
11f0: 255e lhu a5,12(a0)
|
|
11f2: c601 beqz a2,11fa <TIM_ITConfig+0xa>
|
|
11f4: 8ddd or a1,a1,a5
|
|
11f6: a54e sh a1,12(a0)
|
|
11f8: 8082 ret
|
|
11fa: fff5c593 not a1,a1
|
|
11fe: 8dfd and a1,a1,a5
|
|
1200: bfdd j 11f6 <TIM_ITConfig+0x6>
|
|
|
|
00001202 <TIM_GetITStatus>:
|
|
1202: 291e lhu a5,16(a0)
|
|
1204: 254a lhu a0,12(a0)
|
|
1206: 8fed and a5,a5,a1
|
|
1208: 0542 slli a0,a0,0x10
|
|
120a: 8141 srli a0,a0,0x10
|
|
120c: c789 beqz a5,1216 <TIM_GetITStatus+0x14>
|
|
120e: 8d6d and a0,a0,a1
|
|
1210: 00a03533 snez a0,a0
|
|
1214: 8082 ret
|
|
1216: 4501 li a0,0
|
|
1218: 8082 ret
|
|
|
|
0000121a <TIM_ClearITPendingBit>:
|
|
121a: fff5c593 not a1,a1
|
|
121e: 05c2 slli a1,a1,0x10
|
|
1220: 81c1 srli a1,a1,0x10
|
|
1222: a90e sh a1,16(a0)
|
|
1224: 8082 ret
|
|
|
|
00001226 <USART_Init>:
|
|
1226: f4bfe2ef jal t0,170 <__riscv_save_0>
|
|
122a: 2916 lhu a3,16(a0)
|
|
122c: 77f5 lui a5,0xffffd
|
|
122e: 17fd addi a5,a5,-1
|
|
1230: 8ff5 and a5,a5,a3
|
|
1232: 21f6 lhu a3,6(a1)
|
|
1234: 25da lhu a4,12(a1)
|
|
1236: 7179 addi sp,sp,-48
|
|
1238: 8fd5 or a5,a5,a3
|
|
123a: a91e sh a5,16(a0)
|
|
123c: 2556 lhu a3,12(a0)
|
|
123e: 77fd lui a5,0xfffff
|
|
1240: 9f378793 addi a5,a5,-1549 # ffffe9f3 <_eusrstack+0xdfff99f3>
|
|
1244: 8ff5 and a5,a5,a3
|
|
1246: 21d6 lhu a3,4(a1)
|
|
1248: 842a mv s0,a0
|
|
124a: c62e sw a1,12(sp)
|
|
124c: 8fd5 or a5,a5,a3
|
|
124e: 2596 lhu a3,8(a1)
|
|
1250: 8fd5 or a5,a5,a3
|
|
1252: 25b6 lhu a3,10(a1)
|
|
1254: 8fd5 or a5,a5,a3
|
|
1256: a55e sh a5,12(a0)
|
|
1258: 295e lhu a5,20(a0)
|
|
125a: 07c2 slli a5,a5,0x10
|
|
125c: 83c1 srli a5,a5,0x10
|
|
125e: cff7f793 andi a5,a5,-769
|
|
1262: 8fd9 or a5,a5,a4
|
|
1264: a95e sh a5,20(a0)
|
|
1266: 0868 addi a0,sp,28
|
|
1268: 3375 jal 1014 <RCC_GetClocksFreq>
|
|
126a: 400147b7 lui a5,0x40014
|
|
126e: 80078793 addi a5,a5,-2048 # 40013800 <_eusrstack+0x2000e800>
|
|
1272: 45b2 lw a1,12(sp)
|
|
1274: 04f41a63 bne s0,a5,12c8 <USART_Init+0xa2>
|
|
1278: 57a2 lw a5,40(sp)
|
|
127a: 2456 lhu a3,12(s0)
|
|
127c: 4765 li a4,25
|
|
127e: 02e787b3 mul a5,a5,a4
|
|
1282: 06c2 slli a3,a3,0x10
|
|
1284: 86c1 srai a3,a3,0x10
|
|
1286: 4198 lw a4,0(a1)
|
|
1288: 0406d263 bgez a3,12cc <USART_Init+0xa6>
|
|
128c: 0706 slli a4,a4,0x1
|
|
128e: 2452 lhu a2,12(s0)
|
|
1290: 0642 slli a2,a2,0x10
|
|
1292: 02e7d7b3 divu a5,a5,a4
|
|
1296: 06400713 li a4,100
|
|
129a: 8641 srai a2,a2,0x10
|
|
129c: 02e7d6b3 divu a3,a5,a4
|
|
12a0: 02e7f7b3 remu a5,a5,a4
|
|
12a4: 0692 slli a3,a3,0x4
|
|
12a6: 02065563 bgez a2,12d0 <USART_Init+0xaa>
|
|
12aa: 078e slli a5,a5,0x3
|
|
12ac: 03278793 addi a5,a5,50
|
|
12b0: 02e7d7b3 divu a5,a5,a4
|
|
12b4: 0077f713 andi a4,a5,7
|
|
12b8: 00d767b3 or a5,a4,a3
|
|
12bc: 07c2 slli a5,a5,0x10
|
|
12be: 83c1 srli a5,a5,0x10
|
|
12c0: a41e sh a5,8(s0)
|
|
12c2: 6145 addi sp,sp,48
|
|
12c4: ed1fe06f j 194 <__riscv_restore_0>
|
|
12c8: 5792 lw a5,36(sp)
|
|
12ca: bf45 j 127a <USART_Init+0x54>
|
|
12cc: 070a slli a4,a4,0x2
|
|
12ce: b7c1 j 128e <USART_Init+0x68>
|
|
12d0: 0792 slli a5,a5,0x4
|
|
12d2: 03278793 addi a5,a5,50
|
|
12d6: 02e7d7b3 divu a5,a5,a4
|
|
12da: 8bbd andi a5,a5,15
|
|
12dc: 8fd5 or a5,a5,a3
|
|
12de: bff9 j 12bc <USART_Init+0x96>
|
|
|
|
000012e0 <USART_Cmd>:
|
|
12e0: c591 beqz a1,12ec <USART_Cmd+0xc>
|
|
12e2: 255e lhu a5,12(a0)
|
|
12e4: 6709 lui a4,0x2
|
|
12e6: 8fd9 or a5,a5,a4
|
|
12e8: a55e sh a5,12(a0)
|
|
12ea: 8082 ret
|
|
12ec: 255a lhu a4,12(a0)
|
|
12ee: 77f9 lui a5,0xffffe
|
|
12f0: 17fd addi a5,a5,-1
|
|
12f2: 8ff9 and a5,a5,a4
|
|
12f4: bfd5 j 12e8 <USART_Cmd+0x8>
|
|
|
|
000012f6 <USART_SendData>:
|
|
12f6: 1ff5f593 andi a1,a1,511
|
|
12fa: a14e sh a1,4(a0)
|
|
12fc: 8082 ret
|
|
|
|
000012fe <USART_GetFlagStatus>:
|
|
12fe: 210a lhu a0,0(a0)
|
|
1300: 8d6d and a0,a0,a1
|
|
1302: 00a03533 snez a0,a0
|
|
1306: 8082 ret
|
|
|
|
00001308 <Delay_Init>:
|
|
1308: 200007b7 lui a5,0x20000
|
|
130c: 0807a783 lw a5,128(a5) # 20000080 <SystemCoreClock>
|
|
1310: 6709 lui a4,0x2
|
|
1312: f4070713 addi a4,a4,-192 # 1f40 <_write_r+0x4>
|
|
1316: 02e7d7b3 divu a5,a5,a4
|
|
131a: 07c2 slli a5,a5,0x10
|
|
131c: 83c1 srli a5,a5,0x10
|
|
131e: 82f19b23 sh a5,-1994(gp) # 200000b6 <p_us>
|
|
1322: 82f19a23 sh a5,-1996(gp) # 200000b4 <p_ms>
|
|
1326: 8082 ret
|
|
|
|
00001328 <USART_Printf_Init>:
|
|
1328: e49fe2ef jal t0,170 <__riscv_save_0>
|
|
132c: 842a mv s0,a0
|
|
132e: 6511 lui a0,0x4
|
|
1330: 1101 addi sp,sp,-32
|
|
1332: 4585 li a1,1
|
|
1334: 0511 addi a0,a0,4
|
|
1336: 3bc9 jal 1108 <RCC_PB2PeriphClockCmd>
|
|
1338: 20000793 li a5,512
|
|
133c: 827c sh a5,4(sp)
|
|
133e: 40011537 lui a0,0x40011
|
|
1342: 478d li a5,3
|
|
1344: c43e sw a5,8(sp)
|
|
1346: 004c addi a1,sp,4
|
|
1348: 47e1 li a5,24
|
|
134a: 80050513 addi a0,a0,-2048 # 40010800 <_eusrstack+0x2000b800>
|
|
134e: c63e sw a5,12(sp)
|
|
1350: 88bff0ef jal ra,bda <GPIO_Init>
|
|
1354: c822 sw s0,16(sp)
|
|
1356: 40014437 lui s0,0x40014
|
|
135a: 000807b7 lui a5,0x80
|
|
135e: 080c addi a1,sp,16
|
|
1360: 80040513 addi a0,s0,-2048 # 40013800 <_eusrstack+0x2000e800>
|
|
1364: cc3e sw a5,24(sp)
|
|
1366: ca02 sw zero,20(sp)
|
|
1368: 00011e23 sh zero,28(sp)
|
|
136c: 3d6d jal 1226 <USART_Init>
|
|
136e: 4585 li a1,1
|
|
1370: 80040513 addi a0,s0,-2048
|
|
1374: 37b5 jal 12e0 <USART_Cmd>
|
|
1376: 6105 addi sp,sp,32
|
|
1378: e1dfe06f j 194 <__riscv_restore_0>
|
|
|
|
0000137c <_write>:
|
|
137c: ddbfe2ef jal t0,156 <__riscv_save_4>
|
|
1380: 400144b7 lui s1,0x40014
|
|
1384: 89ae mv s3,a1
|
|
1386: 8932 mv s2,a2
|
|
1388: 4401 li s0,0
|
|
138a: 80048493 addi s1,s1,-2048 # 40013800 <_eusrstack+0x2000e800>
|
|
138e: 01244563 blt s0,s2,1398 <_write+0x1c>
|
|
1392: 854a mv a0,s2
|
|
1394: df7fe06f j 18a <__riscv_restore_4>
|
|
1398: 04000593 li a1,64
|
|
139c: 8526 mv a0,s1
|
|
139e: 3785 jal 12fe <USART_GetFlagStatus>
|
|
13a0: dd65 beqz a0,1398 <_write+0x1c>
|
|
13a2: 008987b3 add a5,s3,s0
|
|
13a6: 00078583 lb a1,0(a5) # 80000 <_data_lma+0x7da5c>
|
|
13aa: 8526 mv a0,s1
|
|
13ac: 0405 addi s0,s0,1
|
|
13ae: 05c2 slli a1,a1,0x10
|
|
13b0: 81c1 srli a1,a1,0x10
|
|
13b2: 3791 jal 12f6 <USART_SendData>
|
|
13b4: bfe9 j 138e <_write+0x12>
|
|
|
|
000013b6 <_sbrk>:
|
|
13b6: 80818713 addi a4,gp,-2040 # 20000088 <curbrk.5033>
|
|
13ba: 431c lw a5,0(a4)
|
|
13bc: 85018693 addi a3,gp,-1968 # 200000d0 <_ebss>
|
|
13c0: 953e add a0,a0,a5
|
|
13c2: 00d56b63 bltu a0,a3,13d8 <_sbrk+0x22>
|
|
13c6: 200056b7 lui a3,0x20005
|
|
13ca: 80068693 addi a3,a3,-2048 # 20004800 <_heap_end>
|
|
13ce: 00a6e563 bltu a3,a0,13d8 <_sbrk+0x22>
|
|
13d2: c308 sw a0,0(a4)
|
|
13d4: 853e mv a0,a5
|
|
13d6: 8082 ret
|
|
13d8: 57fd li a5,-1
|
|
13da: bfed j 13d4 <_sbrk+0x1e>
|
|
|
|
000013dc <iprintf>:
|
|
13dc: 7139 addi sp,sp,-64
|
|
13de: da3e sw a5,52(sp)
|
|
13e0: d22e sw a1,36(sp)
|
|
13e2: d432 sw a2,40(sp)
|
|
13e4: d636 sw a3,44(sp)
|
|
13e6: d83a sw a4,48(sp)
|
|
13e8: dc42 sw a6,56(sp)
|
|
13ea: de46 sw a7,60(sp)
|
|
13ec: 80c18793 addi a5,gp,-2036 # 2000008c <_impure_ptr>
|
|
13f0: cc22 sw s0,24(sp)
|
|
13f2: 4380 lw s0,0(a5)
|
|
13f4: ca26 sw s1,20(sp)
|
|
13f6: ce06 sw ra,28(sp)
|
|
13f8: 84aa mv s1,a0
|
|
13fa: c409 beqz s0,1404 <iprintf+0x28>
|
|
13fc: 4c1c lw a5,24(s0)
|
|
13fe: e399 bnez a5,1404 <iprintf+0x28>
|
|
1400: 8522 mv a0,s0
|
|
1402: 20f9 jal 14d0 <__sinit>
|
|
1404: 440c lw a1,8(s0)
|
|
1406: 1054 addi a3,sp,36
|
|
1408: 8626 mv a2,s1
|
|
140a: 8522 mv a0,s0
|
|
140c: c636 sw a3,12(sp)
|
|
140e: 26a5 jal 1776 <_vfiprintf_r>
|
|
1410: 40f2 lw ra,28(sp)
|
|
1412: 4462 lw s0,24(sp)
|
|
1414: 44d2 lw s1,20(sp)
|
|
1416: 6121 addi sp,sp,64
|
|
1418: 8082 ret
|
|
|
|
0000141a <std>:
|
|
141a: 1141 addi sp,sp,-16
|
|
141c: c422 sw s0,8(sp)
|
|
141e: c606 sw ra,12(sp)
|
|
1420: 842a mv s0,a0
|
|
1422: a54e sh a1,12(a0)
|
|
1424: a572 sh a2,14(a0)
|
|
1426: 00052023 sw zero,0(a0)
|
|
142a: 00052223 sw zero,4(a0)
|
|
142e: 00052423 sw zero,8(a0)
|
|
1432: 06052223 sw zero,100(a0)
|
|
1436: 00052823 sw zero,16(a0)
|
|
143a: 00052a23 sw zero,20(a0)
|
|
143e: 00052c23 sw zero,24(a0)
|
|
1442: 4621 li a2,8
|
|
1444: 4581 li a1,0
|
|
1446: 05c50513 addi a0,a0,92
|
|
144a: d57fe0ef jal ra,1a0 <memset>
|
|
144e: 00001797 auipc a5,0x1
|
|
1452: 98678793 addi a5,a5,-1658 # 1dd4 <__sread>
|
|
1456: d05c sw a5,36(s0)
|
|
1458: 00001797 auipc a5,0x1
|
|
145c: 9a878793 addi a5,a5,-1624 # 1e00 <__swrite>
|
|
1460: d41c sw a5,40(s0)
|
|
1462: 00001797 auipc a5,0x1
|
|
1466: 9e678793 addi a5,a5,-1562 # 1e48 <__sseek>
|
|
146a: d45c sw a5,44(s0)
|
|
146c: 00001797 auipc a5,0x1
|
|
1470: a0c78793 addi a5,a5,-1524 # 1e78 <__sclose>
|
|
1474: d000 sw s0,32(s0)
|
|
1476: d81c sw a5,48(s0)
|
|
1478: 40b2 lw ra,12(sp)
|
|
147a: 4422 lw s0,8(sp)
|
|
147c: 0141 addi sp,sp,16
|
|
147e: 8082 ret
|
|
|
|
00001480 <_cleanup_r>:
|
|
1480: 00001597 auipc a1,0x1
|
|
1484: d4058593 addi a1,a1,-704 # 21c0 <_fflush_r>
|
|
1488: a2a9 j 15d2 <_fwalk_reent>
|
|
|
|
0000148a <__sfmoreglue>:
|
|
148a: 1141 addi sp,sp,-16
|
|
148c: c226 sw s1,4(sp)
|
|
148e: 06800613 li a2,104
|
|
1492: fff58493 addi s1,a1,-1
|
|
1496: 02c484b3 mul s1,s1,a2
|
|
149a: c04a sw s2,0(sp)
|
|
149c: 892e mv s2,a1
|
|
149e: c422 sw s0,8(sp)
|
|
14a0: c606 sw ra,12(sp)
|
|
14a2: 07448593 addi a1,s1,116
|
|
14a6: 2a59 jal 163c <_malloc_r>
|
|
14a8: 842a mv s0,a0
|
|
14aa: cd01 beqz a0,14c2 <__sfmoreglue+0x38>
|
|
14ac: 00052023 sw zero,0(a0)
|
|
14b0: 01252223 sw s2,4(a0)
|
|
14b4: 0531 addi a0,a0,12
|
|
14b6: c408 sw a0,8(s0)
|
|
14b8: 06848613 addi a2,s1,104
|
|
14bc: 4581 li a1,0
|
|
14be: ce3fe0ef jal ra,1a0 <memset>
|
|
14c2: 8522 mv a0,s0
|
|
14c4: 40b2 lw ra,12(sp)
|
|
14c6: 4422 lw s0,8(sp)
|
|
14c8: 4492 lw s1,4(sp)
|
|
14ca: 4902 lw s2,0(sp)
|
|
14cc: 0141 addi sp,sp,16
|
|
14ce: 8082 ret
|
|
|
|
000014d0 <__sinit>:
|
|
14d0: 4d1c lw a5,24(a0)
|
|
14d2: e3ad bnez a5,1534 <__sinit+0x64>
|
|
14d4: 1141 addi sp,sp,-16
|
|
14d6: c606 sw ra,12(sp)
|
|
14d8: c422 sw s0,8(sp)
|
|
14da: 00000797 auipc a5,0x0
|
|
14de: fa678793 addi a5,a5,-90 # 1480 <_cleanup_r>
|
|
14e2: d51c sw a5,40(a0)
|
|
14e4: 81018793 addi a5,gp,-2032 # 20000090 <_global_impure_ptr>
|
|
14e8: 439c lw a5,0(a5)
|
|
14ea: 04052423 sw zero,72(a0)
|
|
14ee: 04052623 sw zero,76(a0)
|
|
14f2: 04052823 sw zero,80(a0)
|
|
14f6: 00f51463 bne a0,a5,14fe <__sinit+0x2e>
|
|
14fa: 4785 li a5,1
|
|
14fc: cd1c sw a5,24(a0)
|
|
14fe: 842a mv s0,a0
|
|
1500: 281d jal 1536 <__sfp>
|
|
1502: c048 sw a0,4(s0)
|
|
1504: 8522 mv a0,s0
|
|
1506: 2805 jal 1536 <__sfp>
|
|
1508: c408 sw a0,8(s0)
|
|
150a: 8522 mv a0,s0
|
|
150c: 202d jal 1536 <__sfp>
|
|
150e: c448 sw a0,12(s0)
|
|
1510: 4048 lw a0,4(s0)
|
|
1512: 4601 li a2,0
|
|
1514: 4591 li a1,4
|
|
1516: 3711 jal 141a <std>
|
|
1518: 4408 lw a0,8(s0)
|
|
151a: 4605 li a2,1
|
|
151c: 45a5 li a1,9
|
|
151e: 3df5 jal 141a <std>
|
|
1520: 4448 lw a0,12(s0)
|
|
1522: 4609 li a2,2
|
|
1524: 45c9 li a1,18
|
|
1526: 3dd5 jal 141a <std>
|
|
1528: 4785 li a5,1
|
|
152a: cc1c sw a5,24(s0)
|
|
152c: 40b2 lw ra,12(sp)
|
|
152e: 4422 lw s0,8(sp)
|
|
1530: 0141 addi sp,sp,16
|
|
1532: 8082 ret
|
|
1534: 8082 ret
|
|
|
|
00001536 <__sfp>:
|
|
1536: 1141 addi sp,sp,-16
|
|
1538: 81018793 addi a5,gp,-2032 # 20000090 <_global_impure_ptr>
|
|
153c: c226 sw s1,4(sp)
|
|
153e: 4384 lw s1,0(a5)
|
|
1540: c04a sw s2,0(sp)
|
|
1542: c606 sw ra,12(sp)
|
|
1544: 4c9c lw a5,24(s1)
|
|
1546: c422 sw s0,8(sp)
|
|
1548: 892a mv s2,a0
|
|
154a: e399 bnez a5,1550 <__sfp+0x1a>
|
|
154c: 8526 mv a0,s1
|
|
154e: 3749 jal 14d0 <__sinit>
|
|
1550: 04848493 addi s1,s1,72
|
|
1554: 4480 lw s0,8(s1)
|
|
1556: 40dc lw a5,4(s1)
|
|
1558: 17fd addi a5,a5,-1
|
|
155a: 0007d663 bgez a5,1566 <__sfp+0x30>
|
|
155e: 409c lw a5,0(s1)
|
|
1560: cfb9 beqz a5,15be <__sfp+0x88>
|
|
1562: 4084 lw s1,0(s1)
|
|
1564: bfc5 j 1554 <__sfp+0x1e>
|
|
1566: 00c41703 lh a4,12(s0)
|
|
156a: e739 bnez a4,15b8 <__sfp+0x82>
|
|
156c: 77c1 lui a5,0xffff0
|
|
156e: 0785 addi a5,a5,1
|
|
1570: 06042223 sw zero,100(s0)
|
|
1574: 00042023 sw zero,0(s0)
|
|
1578: 00042223 sw zero,4(s0)
|
|
157c: 00042423 sw zero,8(s0)
|
|
1580: c45c sw a5,12(s0)
|
|
1582: 00042823 sw zero,16(s0)
|
|
1586: 00042a23 sw zero,20(s0)
|
|
158a: 00042c23 sw zero,24(s0)
|
|
158e: 4621 li a2,8
|
|
1590: 4581 li a1,0
|
|
1592: 05c40513 addi a0,s0,92
|
|
1596: c0bfe0ef jal ra,1a0 <memset>
|
|
159a: 02042a23 sw zero,52(s0)
|
|
159e: 02042c23 sw zero,56(s0)
|
|
15a2: 04042423 sw zero,72(s0)
|
|
15a6: 04042623 sw zero,76(s0)
|
|
15aa: 8522 mv a0,s0
|
|
15ac: 40b2 lw ra,12(sp)
|
|
15ae: 4422 lw s0,8(sp)
|
|
15b0: 4492 lw s1,4(sp)
|
|
15b2: 4902 lw s2,0(sp)
|
|
15b4: 0141 addi sp,sp,16
|
|
15b6: 8082 ret
|
|
15b8: 06840413 addi s0,s0,104
|
|
15bc: bf71 j 1558 <__sfp+0x22>
|
|
15be: 4591 li a1,4
|
|
15c0: 854a mv a0,s2
|
|
15c2: 35e1 jal 148a <__sfmoreglue>
|
|
15c4: c088 sw a0,0(s1)
|
|
15c6: fd51 bnez a0,1562 <__sfp+0x2c>
|
|
15c8: 47b1 li a5,12
|
|
15ca: 00f92023 sw a5,0(s2)
|
|
15ce: 4401 li s0,0
|
|
15d0: bfe9 j 15aa <__sfp+0x74>
|
|
|
|
000015d2 <_fwalk_reent>:
|
|
15d2: 7179 addi sp,sp,-48
|
|
15d4: d422 sw s0,40(sp)
|
|
15d6: d04a sw s2,32(sp)
|
|
15d8: cc52 sw s4,24(sp)
|
|
15da: ca56 sw s5,20(sp)
|
|
15dc: c85a sw s6,16(sp)
|
|
15de: c65e sw s7,12(sp)
|
|
15e0: d606 sw ra,44(sp)
|
|
15e2: d226 sw s1,36(sp)
|
|
15e4: ce4e sw s3,28(sp)
|
|
15e6: 8a2a mv s4,a0
|
|
15e8: 8aae mv s5,a1
|
|
15ea: 04850413 addi s0,a0,72
|
|
15ee: 4901 li s2,0
|
|
15f0: 4b05 li s6,1
|
|
15f2: 5bfd li s7,-1
|
|
15f4: ec09 bnez s0,160e <_fwalk_reent+0x3c>
|
|
15f6: 50b2 lw ra,44(sp)
|
|
15f8: 5422 lw s0,40(sp)
|
|
15fa: 854a mv a0,s2
|
|
15fc: 5492 lw s1,36(sp)
|
|
15fe: 5902 lw s2,32(sp)
|
|
1600: 49f2 lw s3,28(sp)
|
|
1602: 4a62 lw s4,24(sp)
|
|
1604: 4ad2 lw s5,20(sp)
|
|
1606: 4b42 lw s6,16(sp)
|
|
1608: 4bb2 lw s7,12(sp)
|
|
160a: 6145 addi sp,sp,48
|
|
160c: 8082 ret
|
|
160e: 4404 lw s1,8(s0)
|
|
1610: 00442983 lw s3,4(s0)
|
|
1614: 19fd addi s3,s3,-1
|
|
1616: 0009d463 bgez s3,161e <_fwalk_reent+0x4c>
|
|
161a: 4000 lw s0,0(s0)
|
|
161c: bfe1 j 15f4 <_fwalk_reent+0x22>
|
|
161e: 24de lhu a5,12(s1)
|
|
1620: 00fb7b63 bgeu s6,a5,1636 <_fwalk_reent+0x64>
|
|
1624: 00e49783 lh a5,14(s1)
|
|
1628: 01778763 beq a5,s7,1636 <_fwalk_reent+0x64>
|
|
162c: 85a6 mv a1,s1
|
|
162e: 8552 mv a0,s4
|
|
1630: 9a82 jalr s5
|
|
1632: 00a96933 or s2,s2,a0
|
|
1636: 06848493 addi s1,s1,104
|
|
163a: bfe9 j 1614 <_fwalk_reent+0x42>
|
|
|
|
0000163c <_malloc_r>:
|
|
163c: 1101 addi sp,sp,-32
|
|
163e: ca26 sw s1,20(sp)
|
|
1640: 00358493 addi s1,a1,3
|
|
1644: 98f1 andi s1,s1,-4
|
|
1646: ce06 sw ra,28(sp)
|
|
1648: cc22 sw s0,24(sp)
|
|
164a: c84a sw s2,16(sp)
|
|
164c: c64e sw s3,12(sp)
|
|
164e: 04a1 addi s1,s1,8
|
|
1650: 47b1 li a5,12
|
|
1652: 04f4f363 bgeu s1,a5,1698 <_malloc_r+0x5c>
|
|
1656: 44b1 li s1,12
|
|
1658: 04b4e263 bltu s1,a1,169c <_malloc_r+0x60>
|
|
165c: 892a mv s2,a0
|
|
165e: 4f3000ef jal ra,2350 <__malloc_lock>
|
|
1662: 83818793 addi a5,gp,-1992 # 200000b8 <__malloc_free_list>
|
|
1666: 4398 lw a4,0(a5)
|
|
1668: 843a mv s0,a4
|
|
166a: e039 bnez s0,16b0 <_malloc_r+0x74>
|
|
166c: 83c18793 addi a5,gp,-1988 # 200000bc <__malloc_sbrk_start>
|
|
1670: 439c lw a5,0(a5)
|
|
1672: e791 bnez a5,167e <_malloc_r+0x42>
|
|
1674: 4581 li a1,0
|
|
1676: 854a mv a0,s2
|
|
1678: 2f0d jal 1daa <_sbrk_r>
|
|
167a: 82a1ae23 sw a0,-1988(gp) # 200000bc <__malloc_sbrk_start>
|
|
167e: 85a6 mv a1,s1
|
|
1680: 854a mv a0,s2
|
|
1682: 2725 jal 1daa <_sbrk_r>
|
|
1684: 59fd li s3,-1
|
|
1686: 07351963 bne a0,s3,16f8 <_malloc_r+0xbc>
|
|
168a: 47b1 li a5,12
|
|
168c: 00f92023 sw a5,0(s2)
|
|
1690: 854a mv a0,s2
|
|
1692: 4c1000ef jal ra,2352 <__malloc_unlock>
|
|
1696: a029 j 16a0 <_malloc_r+0x64>
|
|
1698: fc04d0e3 bgez s1,1658 <_malloc_r+0x1c>
|
|
169c: 47b1 li a5,12
|
|
169e: c11c sw a5,0(a0)
|
|
16a0: 4501 li a0,0
|
|
16a2: 40f2 lw ra,28(sp)
|
|
16a4: 4462 lw s0,24(sp)
|
|
16a6: 44d2 lw s1,20(sp)
|
|
16a8: 4942 lw s2,16(sp)
|
|
16aa: 49b2 lw s3,12(sp)
|
|
16ac: 6105 addi sp,sp,32
|
|
16ae: 8082 ret
|
|
16b0: 401c lw a5,0(s0)
|
|
16b2: 8f85 sub a5,a5,s1
|
|
16b4: 0207cf63 bltz a5,16f2 <_malloc_r+0xb6>
|
|
16b8: 46ad li a3,11
|
|
16ba: 00f6f663 bgeu a3,a5,16c6 <_malloc_r+0x8a>
|
|
16be: c01c sw a5,0(s0)
|
|
16c0: 943e add s0,s0,a5
|
|
16c2: c004 sw s1,0(s0)
|
|
16c4: a031 j 16d0 <_malloc_r+0x94>
|
|
16c6: 405c lw a5,4(s0)
|
|
16c8: 02871363 bne a4,s0,16ee <_malloc_r+0xb2>
|
|
16cc: 82f1ac23 sw a5,-1992(gp) # 200000b8 <__malloc_free_list>
|
|
16d0: 854a mv a0,s2
|
|
16d2: 481000ef jal ra,2352 <__malloc_unlock>
|
|
16d6: 00b40513 addi a0,s0,11
|
|
16da: 00440793 addi a5,s0,4
|
|
16de: 9961 andi a0,a0,-8
|
|
16e0: 40f50733 sub a4,a0,a5
|
|
16e4: df5d beqz a4,16a2 <_malloc_r+0x66>
|
|
16e6: 943a add s0,s0,a4
|
|
16e8: 8f89 sub a5,a5,a0
|
|
16ea: c01c sw a5,0(s0)
|
|
16ec: bf5d j 16a2 <_malloc_r+0x66>
|
|
16ee: c35c sw a5,4(a4)
|
|
16f0: b7c5 j 16d0 <_malloc_r+0x94>
|
|
16f2: 8722 mv a4,s0
|
|
16f4: 4040 lw s0,4(s0)
|
|
16f6: bf95 j 166a <_malloc_r+0x2e>
|
|
16f8: 00350413 addi s0,a0,3
|
|
16fc: 9871 andi s0,s0,-4
|
|
16fe: fc8502e3 beq a0,s0,16c2 <_malloc_r+0x86>
|
|
1702: 40a405b3 sub a1,s0,a0
|
|
1706: 854a mv a0,s2
|
|
1708: 254d jal 1daa <_sbrk_r>
|
|
170a: fb351ce3 bne a0,s3,16c2 <_malloc_r+0x86>
|
|
170e: bfb5 j 168a <_malloc_r+0x4e>
|
|
|
|
00001710 <__sfputc_r>:
|
|
1710: 461c lw a5,8(a2)
|
|
1712: 17fd addi a5,a5,-1
|
|
1714: c61c sw a5,8(a2)
|
|
1716: 0007d963 bgez a5,1728 <__sfputc_r+0x18>
|
|
171a: 4e18 lw a4,24(a2)
|
|
171c: 00e7c563 blt a5,a4,1726 <__sfputc_r+0x16>
|
|
1720: 47a9 li a5,10
|
|
1722: 00f59363 bne a1,a5,1728 <__sfputc_r+0x18>
|
|
1726: afa1 j 1e7e <__swbuf_r>
|
|
1728: 421c lw a5,0(a2)
|
|
172a: 852e mv a0,a1
|
|
172c: 00178713 addi a4,a5,1 # ffff0001 <_eusrstack+0xdffeb001>
|
|
1730: c218 sw a4,0(a2)
|
|
1732: a38c sb a1,0(a5)
|
|
1734: 8082 ret
|
|
|
|
00001736 <__sfputs_r>:
|
|
1736: 1101 addi sp,sp,-32
|
|
1738: cc22 sw s0,24(sp)
|
|
173a: ca26 sw s1,20(sp)
|
|
173c: c84a sw s2,16(sp)
|
|
173e: c64e sw s3,12(sp)
|
|
1740: c452 sw s4,8(sp)
|
|
1742: ce06 sw ra,28(sp)
|
|
1744: 892a mv s2,a0
|
|
1746: 89ae mv s3,a1
|
|
1748: 8432 mv s0,a2
|
|
174a: 00d604b3 add s1,a2,a3
|
|
174e: 5a7d li s4,-1
|
|
1750: 00941463 bne s0,s1,1758 <__sfputs_r+0x22>
|
|
1754: 4501 li a0,0
|
|
1756: a801 j 1766 <__sfputs_r+0x30>
|
|
1758: 200c lbu a1,0(s0)
|
|
175a: 864e mv a2,s3
|
|
175c: 854a mv a0,s2
|
|
175e: 3f4d jal 1710 <__sfputc_r>
|
|
1760: 0405 addi s0,s0,1
|
|
1762: ff4517e3 bne a0,s4,1750 <__sfputs_r+0x1a>
|
|
1766: 40f2 lw ra,28(sp)
|
|
1768: 4462 lw s0,24(sp)
|
|
176a: 44d2 lw s1,20(sp)
|
|
176c: 4942 lw s2,16(sp)
|
|
176e: 49b2 lw s3,12(sp)
|
|
1770: 4a22 lw s4,8(sp)
|
|
1772: 6105 addi sp,sp,32
|
|
1774: 8082 ret
|
|
|
|
00001776 <_vfiprintf_r>:
|
|
1776: 7135 addi sp,sp,-160
|
|
1778: cd22 sw s0,152(sp)
|
|
177a: cb26 sw s1,148(sp)
|
|
177c: c94a sw s2,144(sp)
|
|
177e: c74e sw s3,140(sp)
|
|
1780: cf06 sw ra,156(sp)
|
|
1782: c552 sw s4,136(sp)
|
|
1784: c356 sw s5,132(sp)
|
|
1786: c15a sw s6,128(sp)
|
|
1788: dede sw s7,124(sp)
|
|
178a: dce2 sw s8,120(sp)
|
|
178c: dae6 sw s9,116(sp)
|
|
178e: 89aa mv s3,a0
|
|
1790: 84ae mv s1,a1
|
|
1792: 8932 mv s2,a2
|
|
1794: 8436 mv s0,a3
|
|
1796: c501 beqz a0,179e <_vfiprintf_r+0x28>
|
|
1798: 4d1c lw a5,24(a0)
|
|
179a: e391 bnez a5,179e <_vfiprintf_r+0x28>
|
|
179c: 3b15 jal 14d0 <__sinit>
|
|
179e: 00001797 auipc a5,0x1
|
|
17a2: d8a78793 addi a5,a5,-630 # 2528 <__sf_fake_stdin>
|
|
17a6: 0cf49863 bne s1,a5,1876 <_vfiprintf_r+0x100>
|
|
17aa: 0049a483 lw s1,4(s3)
|
|
17ae: 24de lhu a5,12(s1)
|
|
17b0: 8ba1 andi a5,a5,8
|
|
17b2: c7e5 beqz a5,189a <_vfiprintf_r+0x124>
|
|
17b4: 489c lw a5,16(s1)
|
|
17b6: c3f5 beqz a5,189a <_vfiprintf_r+0x124>
|
|
17b8: 02000793 li a5,32
|
|
17bc: 02f104a3 sb a5,41(sp)
|
|
17c0: 03000793 li a5,48
|
|
17c4: d202 sw zero,36(sp)
|
|
17c6: 02f10523 sb a5,42(sp)
|
|
17ca: c622 sw s0,12(sp)
|
|
17cc: 02500b93 li s7,37
|
|
17d0: 00001a97 auipc s5,0x1
|
|
17d4: d98a8a93 addi s5,s5,-616 # 2568 <__sf_fake_stdout+0x20>
|
|
17d8: 4c05 li s8,1
|
|
17da: 4b29 li s6,10
|
|
17dc: 844a mv s0,s2
|
|
17de: 201c lbu a5,0(s0)
|
|
17e0: c399 beqz a5,17e6 <_vfiprintf_r+0x70>
|
|
17e2: 0d779e63 bne a5,s7,18be <_vfiprintf_r+0x148>
|
|
17e6: 41240cb3 sub s9,s0,s2
|
|
17ea: 000c8d63 beqz s9,1804 <_vfiprintf_r+0x8e>
|
|
17ee: 86e6 mv a3,s9
|
|
17f0: 864a mv a2,s2
|
|
17f2: 85a6 mv a1,s1
|
|
17f4: 854e mv a0,s3
|
|
17f6: 3781 jal 1736 <__sfputs_r>
|
|
17f8: 57fd li a5,-1
|
|
17fa: 1ef50163 beq a0,a5,19dc <_vfiprintf_r+0x266>
|
|
17fe: 5692 lw a3,36(sp)
|
|
1800: 96e6 add a3,a3,s9
|
|
1802: d236 sw a3,36(sp)
|
|
1804: 201c lbu a5,0(s0)
|
|
1806: 1c078b63 beqz a5,19dc <_vfiprintf_r+0x266>
|
|
180a: 57fd li a5,-1
|
|
180c: 00140913 addi s2,s0,1
|
|
1810: c802 sw zero,16(sp)
|
|
1812: ce02 sw zero,28(sp)
|
|
1814: ca3e sw a5,20(sp)
|
|
1816: cc02 sw zero,24(sp)
|
|
1818: 040109a3 sb zero,83(sp)
|
|
181c: d482 sw zero,104(sp)
|
|
181e: 00094583 lbu a1,0(s2)
|
|
1822: 4615 li a2,5
|
|
1824: 8556 mv a0,s5
|
|
1826: 313000ef jal ra,2338 <memchr>
|
|
182a: 00190413 addi s0,s2,1
|
|
182e: 47c2 lw a5,16(sp)
|
|
1830: e949 bnez a0,18c2 <_vfiprintf_r+0x14c>
|
|
1832: 0107f713 andi a4,a5,16
|
|
1836: c709 beqz a4,1840 <_vfiprintf_r+0xca>
|
|
1838: 02000713 li a4,32
|
|
183c: 04e109a3 sb a4,83(sp)
|
|
1840: 0087f713 andi a4,a5,8
|
|
1844: c709 beqz a4,184e <_vfiprintf_r+0xd8>
|
|
1846: 02b00713 li a4,43
|
|
184a: 04e109a3 sb a4,83(sp)
|
|
184e: 00094683 lbu a3,0(s2)
|
|
1852: 02a00713 li a4,42
|
|
1856: 06e68e63 beq a3,a4,18d2 <_vfiprintf_r+0x15c>
|
|
185a: 47f2 lw a5,28(sp)
|
|
185c: 844a mv s0,s2
|
|
185e: 4681 li a3,0
|
|
1860: 4625 li a2,9
|
|
1862: 2018 lbu a4,0(s0)
|
|
1864: 00140593 addi a1,s0,1
|
|
1868: fd070713 addi a4,a4,-48
|
|
186c: 0ae67663 bgeu a2,a4,1918 <_vfiprintf_r+0x1a2>
|
|
1870: caad beqz a3,18e2 <_vfiprintf_r+0x16c>
|
|
1872: ce3e sw a5,28(sp)
|
|
1874: a0bd j 18e2 <_vfiprintf_r+0x16c>
|
|
1876: 00001797 auipc a5,0x1
|
|
187a: cd278793 addi a5,a5,-814 # 2548 <__sf_fake_stdout>
|
|
187e: 00f49563 bne s1,a5,1888 <_vfiprintf_r+0x112>
|
|
1882: 0089a483 lw s1,8(s3)
|
|
1886: b725 j 17ae <_vfiprintf_r+0x38>
|
|
1888: 00001797 auipc a5,0x1
|
|
188c: c8078793 addi a5,a5,-896 # 2508 <__sf_fake_stderr>
|
|
1890: f0f49fe3 bne s1,a5,17ae <_vfiprintf_r+0x38>
|
|
1894: 00c9a483 lw s1,12(s3)
|
|
1898: bf19 j 17ae <_vfiprintf_r+0x38>
|
|
189a: 85a6 mv a1,s1
|
|
189c: 854e mv a0,s3
|
|
189e: 25f1 jal 1f6a <__swsetup_r>
|
|
18a0: dd01 beqz a0,17b8 <_vfiprintf_r+0x42>
|
|
18a2: 557d li a0,-1
|
|
18a4: 40fa lw ra,156(sp)
|
|
18a6: 446a lw s0,152(sp)
|
|
18a8: 44da lw s1,148(sp)
|
|
18aa: 494a lw s2,144(sp)
|
|
18ac: 49ba lw s3,140(sp)
|
|
18ae: 4a2a lw s4,136(sp)
|
|
18b0: 4a9a lw s5,132(sp)
|
|
18b2: 4b0a lw s6,128(sp)
|
|
18b4: 5bf6 lw s7,124(sp)
|
|
18b6: 5c66 lw s8,120(sp)
|
|
18b8: 5cd6 lw s9,116(sp)
|
|
18ba: 610d addi sp,sp,160
|
|
18bc: 8082 ret
|
|
18be: 0405 addi s0,s0,1
|
|
18c0: bf39 j 17de <_vfiprintf_r+0x68>
|
|
18c2: 41550533 sub a0,a0,s5
|
|
18c6: 00ac1533 sll a0,s8,a0
|
|
18ca: 8fc9 or a5,a5,a0
|
|
18cc: c83e sw a5,16(sp)
|
|
18ce: 8922 mv s2,s0
|
|
18d0: b7b9 j 181e <_vfiprintf_r+0xa8>
|
|
18d2: 4732 lw a4,12(sp)
|
|
18d4: 00470693 addi a3,a4,4
|
|
18d8: 4318 lw a4,0(a4)
|
|
18da: c636 sw a3,12(sp)
|
|
18dc: 02074763 bltz a4,190a <_vfiprintf_r+0x194>
|
|
18e0: ce3a sw a4,28(sp)
|
|
18e2: 2018 lbu a4,0(s0)
|
|
18e4: 02e00793 li a5,46
|
|
18e8: 04f71d63 bne a4,a5,1942 <_vfiprintf_r+0x1cc>
|
|
18ec: 3018 lbu a4,1(s0)
|
|
18ee: 02a00793 li a5,42
|
|
18f2: 02f71b63 bne a4,a5,1928 <_vfiprintf_r+0x1b2>
|
|
18f6: 47b2 lw a5,12(sp)
|
|
18f8: 0409 addi s0,s0,2
|
|
18fa: 00478713 addi a4,a5,4
|
|
18fe: 439c lw a5,0(a5)
|
|
1900: c63a sw a4,12(sp)
|
|
1902: 0207c163 bltz a5,1924 <_vfiprintf_r+0x1ae>
|
|
1906: ca3e sw a5,20(sp)
|
|
1908: a82d j 1942 <_vfiprintf_r+0x1cc>
|
|
190a: 40e00733 neg a4,a4
|
|
190e: 0027e793 ori a5,a5,2
|
|
1912: ce3a sw a4,28(sp)
|
|
1914: c83e sw a5,16(sp)
|
|
1916: b7f1 j 18e2 <_vfiprintf_r+0x16c>
|
|
1918: 036787b3 mul a5,a5,s6
|
|
191c: 4685 li a3,1
|
|
191e: 842e mv s0,a1
|
|
1920: 97ba add a5,a5,a4
|
|
1922: b781 j 1862 <_vfiprintf_r+0xec>
|
|
1924: 57fd li a5,-1
|
|
1926: b7c5 j 1906 <_vfiprintf_r+0x190>
|
|
1928: 0405 addi s0,s0,1
|
|
192a: ca02 sw zero,20(sp)
|
|
192c: 4681 li a3,0
|
|
192e: 4781 li a5,0
|
|
1930: 4625 li a2,9
|
|
1932: 2018 lbu a4,0(s0)
|
|
1934: 00140593 addi a1,s0,1
|
|
1938: fd070713 addi a4,a4,-48
|
|
193c: 06e67663 bgeu a2,a4,19a8 <_vfiprintf_r+0x232>
|
|
1940: f2f9 bnez a3,1906 <_vfiprintf_r+0x190>
|
|
1942: 200c lbu a1,0(s0)
|
|
1944: 460d li a2,3
|
|
1946: 00001517 auipc a0,0x1
|
|
194a: c2a50513 addi a0,a0,-982 # 2570 <__sf_fake_stdout+0x28>
|
|
194e: 1eb000ef jal ra,2338 <memchr>
|
|
1952: cd11 beqz a0,196e <_vfiprintf_r+0x1f8>
|
|
1954: 00001797 auipc a5,0x1
|
|
1958: c1c78793 addi a5,a5,-996 # 2570 <__sf_fake_stdout+0x28>
|
|
195c: 8d1d sub a0,a0,a5
|
|
195e: 04000793 li a5,64
|
|
1962: 00a797b3 sll a5,a5,a0
|
|
1966: 4542 lw a0,16(sp)
|
|
1968: 0405 addi s0,s0,1
|
|
196a: 8d5d or a0,a0,a5
|
|
196c: c82a sw a0,16(sp)
|
|
196e: 200c lbu a1,0(s0)
|
|
1970: 4619 li a2,6
|
|
1972: 00001517 auipc a0,0x1
|
|
1976: c0250513 addi a0,a0,-1022 # 2574 <__sf_fake_stdout+0x2c>
|
|
197a: 00140913 addi s2,s0,1
|
|
197e: 02b10423 sb a1,40(sp)
|
|
1982: 1b7000ef jal ra,2338 <memchr>
|
|
1986: c135 beqz a0,19ea <_vfiprintf_r+0x274>
|
|
1988: ffffe797 auipc a5,0xffffe
|
|
198c: 67878793 addi a5,a5,1656 # 0 <_sinit>
|
|
1990: e795 bnez a5,19bc <_vfiprintf_r+0x246>
|
|
1992: 4742 lw a4,16(sp)
|
|
1994: 47b2 lw a5,12(sp)
|
|
1996: 10077713 andi a4,a4,256
|
|
199a: cf09 beqz a4,19b4 <_vfiprintf_r+0x23e>
|
|
199c: 0791 addi a5,a5,4
|
|
199e: c63e sw a5,12(sp)
|
|
19a0: 5792 lw a5,36(sp)
|
|
19a2: 97d2 add a5,a5,s4
|
|
19a4: d23e sw a5,36(sp)
|
|
19a6: bd1d j 17dc <_vfiprintf_r+0x66>
|
|
19a8: 036787b3 mul a5,a5,s6
|
|
19ac: 4685 li a3,1
|
|
19ae: 842e mv s0,a1
|
|
19b0: 97ba add a5,a5,a4
|
|
19b2: b741 j 1932 <_vfiprintf_r+0x1bc>
|
|
19b4: 079d addi a5,a5,7
|
|
19b6: 9be1 andi a5,a5,-8
|
|
19b8: 07a1 addi a5,a5,8
|
|
19ba: b7d5 j 199e <_vfiprintf_r+0x228>
|
|
19bc: 0078 addi a4,sp,12
|
|
19be: 00000697 auipc a3,0x0
|
|
19c2: d7868693 addi a3,a3,-648 # 1736 <__sfputs_r>
|
|
19c6: 8626 mv a2,s1
|
|
19c8: 080c addi a1,sp,16
|
|
19ca: 854e mv a0,s3
|
|
19cc: 00000097 auipc ra,0x0
|
|
19d0: 000000e7 jalr zero # 0 <_sinit>
|
|
19d4: 57fd li a5,-1
|
|
19d6: 8a2a mv s4,a0
|
|
19d8: fcf514e3 bne a0,a5,19a0 <_vfiprintf_r+0x22a>
|
|
19dc: 24de lhu a5,12(s1)
|
|
19de: 0407f793 andi a5,a5,64
|
|
19e2: ec0790e3 bnez a5,18a2 <_vfiprintf_r+0x12c>
|
|
19e6: 5512 lw a0,36(sp)
|
|
19e8: bd75 j 18a4 <_vfiprintf_r+0x12e>
|
|
19ea: 0078 addi a4,sp,12
|
|
19ec: 00000697 auipc a3,0x0
|
|
19f0: d4a68693 addi a3,a3,-694 # 1736 <__sfputs_r>
|
|
19f4: 8626 mv a2,s1
|
|
19f6: 080c addi a1,sp,16
|
|
19f8: 854e mv a0,s3
|
|
19fa: 2a01 jal 1b0a <_printf_i>
|
|
19fc: bfe1 j 19d4 <_vfiprintf_r+0x25e>
|
|
|
|
000019fe <_printf_common>:
|
|
19fe: 7179 addi sp,sp,-48
|
|
1a00: ca56 sw s5,20(sp)
|
|
1a02: 499c lw a5,16(a1)
|
|
1a04: 8aba mv s5,a4
|
|
1a06: 4598 lw a4,8(a1)
|
|
1a08: d422 sw s0,40(sp)
|
|
1a0a: d226 sw s1,36(sp)
|
|
1a0c: ce4e sw s3,28(sp)
|
|
1a0e: cc52 sw s4,24(sp)
|
|
1a10: d606 sw ra,44(sp)
|
|
1a12: d04a sw s2,32(sp)
|
|
1a14: c85a sw s6,16(sp)
|
|
1a16: c65e sw s7,12(sp)
|
|
1a18: 89aa mv s3,a0
|
|
1a1a: 842e mv s0,a1
|
|
1a1c: 84b2 mv s1,a2
|
|
1a1e: 8a36 mv s4,a3
|
|
1a20: 00e7d363 bge a5,a4,1a26 <_printf_common+0x28>
|
|
1a24: 87ba mv a5,a4
|
|
1a26: c09c sw a5,0(s1)
|
|
1a28: 04344703 lbu a4,67(s0)
|
|
1a2c: c319 beqz a4,1a32 <_printf_common+0x34>
|
|
1a2e: 0785 addi a5,a5,1
|
|
1a30: c09c sw a5,0(s1)
|
|
1a32: 401c lw a5,0(s0)
|
|
1a34: 0207f793 andi a5,a5,32
|
|
1a38: c781 beqz a5,1a40 <_printf_common+0x42>
|
|
1a3a: 409c lw a5,0(s1)
|
|
1a3c: 0789 addi a5,a5,2
|
|
1a3e: c09c sw a5,0(s1)
|
|
1a40: 00042903 lw s2,0(s0)
|
|
1a44: 00697913 andi s2,s2,6
|
|
1a48: 00091a63 bnez s2,1a5c <_printf_common+0x5e>
|
|
1a4c: 01940b13 addi s6,s0,25
|
|
1a50: 5bfd li s7,-1
|
|
1a52: 445c lw a5,12(s0)
|
|
1a54: 4098 lw a4,0(s1)
|
|
1a56: 8f99 sub a5,a5,a4
|
|
1a58: 04f94c63 blt s2,a5,1ab0 <_printf_common+0xb2>
|
|
1a5c: 401c lw a5,0(s0)
|
|
1a5e: 04344683 lbu a3,67(s0)
|
|
1a62: 0207f793 andi a5,a5,32
|
|
1a66: 00d036b3 snez a3,a3
|
|
1a6a: eba5 bnez a5,1ada <_printf_common+0xdc>
|
|
1a6c: 04340613 addi a2,s0,67
|
|
1a70: 85d2 mv a1,s4
|
|
1a72: 854e mv a0,s3
|
|
1a74: 9a82 jalr s5
|
|
1a76: 57fd li a5,-1
|
|
1a78: 04f50363 beq a0,a5,1abe <_printf_common+0xc0>
|
|
1a7c: 401c lw a5,0(s0)
|
|
1a7e: 4611 li a2,4
|
|
1a80: 4098 lw a4,0(s1)
|
|
1a82: 8b99 andi a5,a5,6
|
|
1a84: 4454 lw a3,12(s0)
|
|
1a86: 4481 li s1,0
|
|
1a88: 00c79763 bne a5,a2,1a96 <_printf_common+0x98>
|
|
1a8c: 40e684b3 sub s1,a3,a4
|
|
1a90: 0004d363 bgez s1,1a96 <_printf_common+0x98>
|
|
1a94: 4481 li s1,0
|
|
1a96: 441c lw a5,8(s0)
|
|
1a98: 4818 lw a4,16(s0)
|
|
1a9a: 00f75463 bge a4,a5,1aa2 <_printf_common+0xa4>
|
|
1a9e: 8f99 sub a5,a5,a4
|
|
1aa0: 94be add s1,s1,a5
|
|
1aa2: 4901 li s2,0
|
|
1aa4: 0469 addi s0,s0,26
|
|
1aa6: 5b7d li s6,-1
|
|
1aa8: 05249863 bne s1,s2,1af8 <_printf_common+0xfa>
|
|
1aac: 4501 li a0,0
|
|
1aae: a809 j 1ac0 <_printf_common+0xc2>
|
|
1ab0: 4685 li a3,1
|
|
1ab2: 865a mv a2,s6
|
|
1ab4: 85d2 mv a1,s4
|
|
1ab6: 854e mv a0,s3
|
|
1ab8: 9a82 jalr s5
|
|
1aba: 01751e63 bne a0,s7,1ad6 <_printf_common+0xd8>
|
|
1abe: 557d li a0,-1
|
|
1ac0: 50b2 lw ra,44(sp)
|
|
1ac2: 5422 lw s0,40(sp)
|
|
1ac4: 5492 lw s1,36(sp)
|
|
1ac6: 5902 lw s2,32(sp)
|
|
1ac8: 49f2 lw s3,28(sp)
|
|
1aca: 4a62 lw s4,24(sp)
|
|
1acc: 4ad2 lw s5,20(sp)
|
|
1ace: 4b42 lw s6,16(sp)
|
|
1ad0: 4bb2 lw s7,12(sp)
|
|
1ad2: 6145 addi sp,sp,48
|
|
1ad4: 8082 ret
|
|
1ad6: 0905 addi s2,s2,1
|
|
1ad8: bfad j 1a52 <_printf_common+0x54>
|
|
1ada: 00d40733 add a4,s0,a3
|
|
1ade: 03000613 li a2,48
|
|
1ae2: 04c701a3 sb a2,67(a4)
|
|
1ae6: 04544703 lbu a4,69(s0)
|
|
1aea: 00168793 addi a5,a3,1
|
|
1aee: 97a2 add a5,a5,s0
|
|
1af0: 0689 addi a3,a3,2
|
|
1af2: 04e781a3 sb a4,67(a5)
|
|
1af6: bf9d j 1a6c <_printf_common+0x6e>
|
|
1af8: 4685 li a3,1
|
|
1afa: 8622 mv a2,s0
|
|
1afc: 85d2 mv a1,s4
|
|
1afe: 854e mv a0,s3
|
|
1b00: 9a82 jalr s5
|
|
1b02: fb650ee3 beq a0,s6,1abe <_printf_common+0xc0>
|
|
1b06: 0905 addi s2,s2,1
|
|
1b08: b745 j 1aa8 <_printf_common+0xaa>
|
|
|
|
00001b0a <_printf_i>:
|
|
1b0a: 7179 addi sp,sp,-48
|
|
1b0c: d422 sw s0,40(sp)
|
|
1b0e: d226 sw s1,36(sp)
|
|
1b10: d04a sw s2,32(sp)
|
|
1b12: ce4e sw s3,28(sp)
|
|
1b14: d606 sw ra,44(sp)
|
|
1b16: cc52 sw s4,24(sp)
|
|
1b18: ca56 sw s5,20(sp)
|
|
1b1a: c85a sw s6,16(sp)
|
|
1b1c: 89b6 mv s3,a3
|
|
1b1e: 2d94 lbu a3,24(a1)
|
|
1b20: 06900793 li a5,105
|
|
1b24: 8932 mv s2,a2
|
|
1b26: 84aa mv s1,a0
|
|
1b28: 842e mv s0,a1
|
|
1b2a: 04358613 addi a2,a1,67
|
|
1b2e: 02f68d63 beq a3,a5,1b68 <_printf_i+0x5e>
|
|
1b32: 06d7e263 bltu a5,a3,1b96 <_printf_i+0x8c>
|
|
1b36: 05800793 li a5,88
|
|
1b3a: 18f68563 beq a3,a5,1cc4 <_printf_i+0x1ba>
|
|
1b3e: 00d7ed63 bltu a5,a3,1b58 <_printf_i+0x4e>
|
|
1b42: 20068d63 beqz a3,1d5c <_printf_i+0x252>
|
|
1b46: 04300793 li a5,67
|
|
1b4a: 0af68e63 beq a3,a5,1c06 <_printf_i+0xfc>
|
|
1b4e: 04240a93 addi s5,s0,66
|
|
1b52: 04d40123 sb a3,66(s0)
|
|
1b56: a0c9 j 1c18 <_printf_i+0x10e>
|
|
1b58: 06300793 li a5,99
|
|
1b5c: 0af68563 beq a3,a5,1c06 <_printf_i+0xfc>
|
|
1b60: 06400793 li a5,100
|
|
1b64: fef695e3 bne a3,a5,1b4e <_printf_i+0x44>
|
|
1b68: 401c lw a5,0(s0)
|
|
1b6a: 4308 lw a0,0(a4)
|
|
1b6c: 0807f693 andi a3,a5,128
|
|
1b70: 00450593 addi a1,a0,4
|
|
1b74: c6c5 beqz a3,1c1c <_printf_i+0x112>
|
|
1b76: 411c lw a5,0(a0)
|
|
1b78: c30c sw a1,0(a4)
|
|
1b7a: 0007d863 bgez a5,1b8a <_printf_i+0x80>
|
|
1b7e: 02d00713 li a4,45
|
|
1b82: 40f007b3 neg a5,a5
|
|
1b86: 04e401a3 sb a4,67(s0)
|
|
1b8a: 00001697 auipc a3,0x1
|
|
1b8e: 9f268693 addi a3,a3,-1550 # 257c <__sf_fake_stdout+0x34>
|
|
1b92: 4729 li a4,10
|
|
1b94: a865 j 1c4c <_printf_i+0x142>
|
|
1b96: 07000793 li a5,112
|
|
1b9a: 16f68163 beq a3,a5,1cfc <_printf_i+0x1f2>
|
|
1b9e: 02d7e563 bltu a5,a3,1bc8 <_printf_i+0xbe>
|
|
1ba2: 06e00793 li a5,110
|
|
1ba6: 18f68863 beq a3,a5,1d36 <_printf_i+0x22c>
|
|
1baa: 06f00793 li a5,111
|
|
1bae: faf690e3 bne a3,a5,1b4e <_printf_i+0x44>
|
|
1bb2: 400c lw a1,0(s0)
|
|
1bb4: 431c lw a5,0(a4)
|
|
1bb6: 0805f813 andi a6,a1,128
|
|
1bba: 00478513 addi a0,a5,4
|
|
1bbe: 06080763 beqz a6,1c2c <_printf_i+0x122>
|
|
1bc2: c308 sw a0,0(a4)
|
|
1bc4: 439c lw a5,0(a5)
|
|
1bc6: a885 j 1c36 <_printf_i+0x12c>
|
|
1bc8: 07500793 li a5,117
|
|
1bcc: fef683e3 beq a3,a5,1bb2 <_printf_i+0xa8>
|
|
1bd0: 07800793 li a5,120
|
|
1bd4: 12f68863 beq a3,a5,1d04 <_printf_i+0x1fa>
|
|
1bd8: 07300793 li a5,115
|
|
1bdc: f6f699e3 bne a3,a5,1b4e <_printf_i+0x44>
|
|
1be0: 431c lw a5,0(a4)
|
|
1be2: 41d0 lw a2,4(a1)
|
|
1be4: 4581 li a1,0
|
|
1be6: 00478693 addi a3,a5,4
|
|
1bea: c314 sw a3,0(a4)
|
|
1bec: 0007aa83 lw s5,0(a5)
|
|
1bf0: 8556 mv a0,s5
|
|
1bf2: 2799 jal 2338 <memchr>
|
|
1bf4: c501 beqz a0,1bfc <_printf_i+0xf2>
|
|
1bf6: 41550533 sub a0,a0,s5
|
|
1bfa: c048 sw a0,4(s0)
|
|
1bfc: 405c lw a5,4(s0)
|
|
1bfe: c81c sw a5,16(s0)
|
|
1c00: 040401a3 sb zero,67(s0)
|
|
1c04: a861 j 1c9c <_printf_i+0x192>
|
|
1c06: 431c lw a5,0(a4)
|
|
1c08: 04240a93 addi s5,s0,66
|
|
1c0c: 00478693 addi a3,a5,4
|
|
1c10: 439c lw a5,0(a5)
|
|
1c12: c314 sw a3,0(a4)
|
|
1c14: 04f40123 sb a5,66(s0)
|
|
1c18: 4785 li a5,1
|
|
1c1a: b7d5 j 1bfe <_printf_i+0xf4>
|
|
1c1c: 0407f693 andi a3,a5,64
|
|
1c20: 411c lw a5,0(a0)
|
|
1c22: c30c sw a1,0(a4)
|
|
1c24: dab9 beqz a3,1b7a <_printf_i+0x70>
|
|
1c26: 07c2 slli a5,a5,0x10
|
|
1c28: 87c1 srai a5,a5,0x10
|
|
1c2a: bf81 j 1b7a <_printf_i+0x70>
|
|
1c2c: 0405f593 andi a1,a1,64
|
|
1c30: c308 sw a0,0(a4)
|
|
1c32: d9c9 beqz a1,1bc4 <_printf_i+0xba>
|
|
1c34: 239e lhu a5,0(a5)
|
|
1c36: 06f00713 li a4,111
|
|
1c3a: 0ee68663 beq a3,a4,1d26 <_printf_i+0x21c>
|
|
1c3e: 00001697 auipc a3,0x1
|
|
1c42: 93e68693 addi a3,a3,-1730 # 257c <__sf_fake_stdout+0x34>
|
|
1c46: 4729 li a4,10
|
|
1c48: 040401a3 sb zero,67(s0)
|
|
1c4c: 404c lw a1,4(s0)
|
|
1c4e: c40c sw a1,8(s0)
|
|
1c50: 0005c563 bltz a1,1c5a <_printf_i+0x150>
|
|
1c54: 4008 lw a0,0(s0)
|
|
1c56: 996d andi a0,a0,-5
|
|
1c58: c008 sw a0,0(s0)
|
|
1c5a: e399 bnez a5,1c60 <_printf_i+0x156>
|
|
1c5c: 8ab2 mv s5,a2
|
|
1c5e: cd89 beqz a1,1c78 <_printf_i+0x16e>
|
|
1c60: 8ab2 mv s5,a2
|
|
1c62: 02e7f5b3 remu a1,a5,a4
|
|
1c66: 1afd addi s5,s5,-1
|
|
1c68: 95b6 add a1,a1,a3
|
|
1c6a: 218c lbu a1,0(a1)
|
|
1c6c: 00ba8023 sb a1,0(s5)
|
|
1c70: 02e7d5b3 divu a1,a5,a4
|
|
1c74: 0ae7ff63 bgeu a5,a4,1d32 <_printf_i+0x228>
|
|
1c78: 47a1 li a5,8
|
|
1c7a: 00f71e63 bne a4,a5,1c96 <_printf_i+0x18c>
|
|
1c7e: 401c lw a5,0(s0)
|
|
1c80: 8b85 andi a5,a5,1
|
|
1c82: cb91 beqz a5,1c96 <_printf_i+0x18c>
|
|
1c84: 4058 lw a4,4(s0)
|
|
1c86: 481c lw a5,16(s0)
|
|
1c88: 00e7c763 blt a5,a4,1c96 <_printf_i+0x18c>
|
|
1c8c: 03000793 li a5,48
|
|
1c90: fefa8fa3 sb a5,-1(s5)
|
|
1c94: 1afd addi s5,s5,-1
|
|
1c96: 41560633 sub a2,a2,s5
|
|
1c9a: c810 sw a2,16(s0)
|
|
1c9c: 874e mv a4,s3
|
|
1c9e: 86ca mv a3,s2
|
|
1ca0: 0070 addi a2,sp,12
|
|
1ca2: 85a2 mv a1,s0
|
|
1ca4: 8526 mv a0,s1
|
|
1ca6: 3ba1 jal 19fe <_printf_common>
|
|
1ca8: 5a7d li s4,-1
|
|
1caa: 0b451d63 bne a0,s4,1d64 <_printf_i+0x25a>
|
|
1cae: 557d li a0,-1
|
|
1cb0: 50b2 lw ra,44(sp)
|
|
1cb2: 5422 lw s0,40(sp)
|
|
1cb4: 5492 lw s1,36(sp)
|
|
1cb6: 5902 lw s2,32(sp)
|
|
1cb8: 49f2 lw s3,28(sp)
|
|
1cba: 4a62 lw s4,24(sp)
|
|
1cbc: 4ad2 lw s5,20(sp)
|
|
1cbe: 4b42 lw s6,16(sp)
|
|
1cc0: 6145 addi sp,sp,48
|
|
1cc2: 8082 ret
|
|
1cc4: 04d582a3 sb a3,69(a1)
|
|
1cc8: 00001697 auipc a3,0x1
|
|
1ccc: 8b468693 addi a3,a3,-1868 # 257c <__sf_fake_stdout+0x34>
|
|
1cd0: 400c lw a1,0(s0)
|
|
1cd2: 4308 lw a0,0(a4)
|
|
1cd4: 0805f813 andi a6,a1,128
|
|
1cd8: 411c lw a5,0(a0)
|
|
1cda: 0511 addi a0,a0,4
|
|
1cdc: 02080d63 beqz a6,1d16 <_printf_i+0x20c>
|
|
1ce0: c308 sw a0,0(a4)
|
|
1ce2: 0015f713 andi a4,a1,1
|
|
1ce6: c701 beqz a4,1cee <_printf_i+0x1e4>
|
|
1ce8: 0205e593 ori a1,a1,32
|
|
1cec: c00c sw a1,0(s0)
|
|
1cee: 4741 li a4,16
|
|
1cf0: ffa1 bnez a5,1c48 <_printf_i+0x13e>
|
|
1cf2: 400c lw a1,0(s0)
|
|
1cf4: fdf5f593 andi a1,a1,-33
|
|
1cf8: c00c sw a1,0(s0)
|
|
1cfa: b7b9 j 1c48 <_printf_i+0x13e>
|
|
1cfc: 419c lw a5,0(a1)
|
|
1cfe: 0207e793 ori a5,a5,32
|
|
1d02: c19c sw a5,0(a1)
|
|
1d04: 07800793 li a5,120
|
|
1d08: 04f402a3 sb a5,69(s0)
|
|
1d0c: 00001697 auipc a3,0x1
|
|
1d10: 88468693 addi a3,a3,-1916 # 2590 <__sf_fake_stdout+0x48>
|
|
1d14: bf75 j 1cd0 <_printf_i+0x1c6>
|
|
1d16: 0405f813 andi a6,a1,64
|
|
1d1a: c308 sw a0,0(a4)
|
|
1d1c: fc0803e3 beqz a6,1ce2 <_printf_i+0x1d8>
|
|
1d20: 07c2 slli a5,a5,0x10
|
|
1d22: 83c1 srli a5,a5,0x10
|
|
1d24: bf7d j 1ce2 <_printf_i+0x1d8>
|
|
1d26: 00001697 auipc a3,0x1
|
|
1d2a: 85668693 addi a3,a3,-1962 # 257c <__sf_fake_stdout+0x34>
|
|
1d2e: 4721 li a4,8
|
|
1d30: bf21 j 1c48 <_printf_i+0x13e>
|
|
1d32: 87ae mv a5,a1
|
|
1d34: b73d j 1c62 <_printf_i+0x158>
|
|
1d36: 4194 lw a3,0(a1)
|
|
1d38: 431c lw a5,0(a4)
|
|
1d3a: 49cc lw a1,20(a1)
|
|
1d3c: 0806f813 andi a6,a3,128
|
|
1d40: 00478513 addi a0,a5,4
|
|
1d44: 00080663 beqz a6,1d50 <_printf_i+0x246>
|
|
1d48: c308 sw a0,0(a4)
|
|
1d4a: 439c lw a5,0(a5)
|
|
1d4c: c38c sw a1,0(a5)
|
|
1d4e: a039 j 1d5c <_printf_i+0x252>
|
|
1d50: c308 sw a0,0(a4)
|
|
1d52: 0406f693 andi a3,a3,64
|
|
1d56: 439c lw a5,0(a5)
|
|
1d58: daf5 beqz a3,1d4c <_printf_i+0x242>
|
|
1d5a: a38e sh a1,0(a5)
|
|
1d5c: 00042823 sw zero,16(s0)
|
|
1d60: 8ab2 mv s5,a2
|
|
1d62: bf2d j 1c9c <_printf_i+0x192>
|
|
1d64: 4814 lw a3,16(s0)
|
|
1d66: 8656 mv a2,s5
|
|
1d68: 85ca mv a1,s2
|
|
1d6a: 8526 mv a0,s1
|
|
1d6c: 9982 jalr s3
|
|
1d6e: f54500e3 beq a0,s4,1cae <_printf_i+0x1a4>
|
|
1d72: 401c lw a5,0(s0)
|
|
1d74: 8b89 andi a5,a5,2
|
|
1d76: e78d bnez a5,1da0 <_printf_i+0x296>
|
|
1d78: 47b2 lw a5,12(sp)
|
|
1d7a: 4448 lw a0,12(s0)
|
|
1d7c: f2f55ae3 bge a0,a5,1cb0 <_printf_i+0x1a6>
|
|
1d80: 853e mv a0,a5
|
|
1d82: b73d j 1cb0 <_printf_i+0x1a6>
|
|
1d84: 4685 li a3,1
|
|
1d86: 8656 mv a2,s5
|
|
1d88: 85ca mv a1,s2
|
|
1d8a: 8526 mv a0,s1
|
|
1d8c: 9982 jalr s3
|
|
1d8e: f36500e3 beq a0,s6,1cae <_printf_i+0x1a4>
|
|
1d92: 0a05 addi s4,s4,1
|
|
1d94: 445c lw a5,12(s0)
|
|
1d96: 4732 lw a4,12(sp)
|
|
1d98: 8f99 sub a5,a5,a4
|
|
1d9a: fefa45e3 blt s4,a5,1d84 <_printf_i+0x27a>
|
|
1d9e: bfe9 j 1d78 <_printf_i+0x26e>
|
|
1da0: 4a01 li s4,0
|
|
1da2: 01940a93 addi s5,s0,25
|
|
1da6: 5b7d li s6,-1
|
|
1da8: b7f5 j 1d94 <_printf_i+0x28a>
|
|
|
|
00001daa <_sbrk_r>:
|
|
1daa: 1141 addi sp,sp,-16
|
|
1dac: c422 sw s0,8(sp)
|
|
1dae: 842a mv s0,a0
|
|
1db0: 852e mv a0,a1
|
|
1db2: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
1db6: c606 sw ra,12(sp)
|
|
1db8: dfeff0ef jal ra,13b6 <_sbrk>
|
|
1dbc: 57fd li a5,-1
|
|
1dbe: 00f51763 bne a0,a5,1dcc <_sbrk_r+0x22>
|
|
1dc2: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
1dc6: 439c lw a5,0(a5)
|
|
1dc8: c391 beqz a5,1dcc <_sbrk_r+0x22>
|
|
1dca: c01c sw a5,0(s0)
|
|
1dcc: 40b2 lw ra,12(sp)
|
|
1dce: 4422 lw s0,8(sp)
|
|
1dd0: 0141 addi sp,sp,16
|
|
1dd2: 8082 ret
|
|
|
|
00001dd4 <__sread>:
|
|
1dd4: 1141 addi sp,sp,-16
|
|
1dd6: c422 sw s0,8(sp)
|
|
1dd8: 842e mv s0,a1
|
|
1dda: 00e59583 lh a1,14(a1)
|
|
1dde: c606 sw ra,12(sp)
|
|
1de0: 2d21 jal 23f8 <_read_r>
|
|
1de2: 00054963 bltz a0,1df4 <__sread+0x20>
|
|
1de6: 487c lw a5,84(s0)
|
|
1de8: 97aa add a5,a5,a0
|
|
1dea: c87c sw a5,84(s0)
|
|
1dec: 40b2 lw ra,12(sp)
|
|
1dee: 4422 lw s0,8(sp)
|
|
1df0: 0141 addi sp,sp,16
|
|
1df2: 8082 ret
|
|
1df4: 245e lhu a5,12(s0)
|
|
1df6: 777d lui a4,0xfffff
|
|
1df8: 177d addi a4,a4,-1
|
|
1dfa: 8ff9 and a5,a5,a4
|
|
1dfc: a45e sh a5,12(s0)
|
|
1dfe: b7fd j 1dec <__sread+0x18>
|
|
|
|
00001e00 <__swrite>:
|
|
1e00: 25de lhu a5,12(a1)
|
|
1e02: 1101 addi sp,sp,-32
|
|
1e04: cc22 sw s0,24(sp)
|
|
1e06: ca26 sw s1,20(sp)
|
|
1e08: c84a sw s2,16(sp)
|
|
1e0a: c64e sw s3,12(sp)
|
|
1e0c: ce06 sw ra,28(sp)
|
|
1e0e: 1007f793 andi a5,a5,256
|
|
1e12: 84aa mv s1,a0
|
|
1e14: 842e mv s0,a1
|
|
1e16: 8932 mv s2,a2
|
|
1e18: 89b6 mv s3,a3
|
|
1e1a: c791 beqz a5,1e26 <__swrite+0x26>
|
|
1e1c: 00e59583 lh a1,14(a1)
|
|
1e20: 4689 li a3,2
|
|
1e22: 4601 li a2,0
|
|
1e24: 2109 jal 2226 <_lseek_r>
|
|
1e26: 245e lhu a5,12(s0)
|
|
1e28: 777d lui a4,0xfffff
|
|
1e2a: 177d addi a4,a4,-1
|
|
1e2c: 8ff9 and a5,a5,a4
|
|
1e2e: a45e sh a5,12(s0)
|
|
1e30: 00e41583 lh a1,14(s0)
|
|
1e34: 4462 lw s0,24(sp)
|
|
1e36: 40f2 lw ra,28(sp)
|
|
1e38: 86ce mv a3,s3
|
|
1e3a: 864a mv a2,s2
|
|
1e3c: 49b2 lw s3,12(sp)
|
|
1e3e: 4942 lw s2,16(sp)
|
|
1e40: 8526 mv a0,s1
|
|
1e42: 44d2 lw s1,20(sp)
|
|
1e44: 6105 addi sp,sp,32
|
|
1e46: a8dd j 1f3c <_write_r>
|
|
|
|
00001e48 <__sseek>:
|
|
1e48: 1141 addi sp,sp,-16
|
|
1e4a: c422 sw s0,8(sp)
|
|
1e4c: 842e mv s0,a1
|
|
1e4e: 00e59583 lh a1,14(a1)
|
|
1e52: c606 sw ra,12(sp)
|
|
1e54: 2ec9 jal 2226 <_lseek_r>
|
|
1e56: 57fd li a5,-1
|
|
1e58: 245a lhu a4,12(s0)
|
|
1e5a: 00f51a63 bne a0,a5,1e6e <__sseek+0x26>
|
|
1e5e: 77fd lui a5,0xfffff
|
|
1e60: 17fd addi a5,a5,-1
|
|
1e62: 8ff9 and a5,a5,a4
|
|
1e64: a45e sh a5,12(s0)
|
|
1e66: 40b2 lw ra,12(sp)
|
|
1e68: 4422 lw s0,8(sp)
|
|
1e6a: 0141 addi sp,sp,16
|
|
1e6c: 8082 ret
|
|
1e6e: 6785 lui a5,0x1
|
|
1e70: 8fd9 or a5,a5,a4
|
|
1e72: a45e sh a5,12(s0)
|
|
1e74: c868 sw a0,84(s0)
|
|
1e76: bfc5 j 1e66 <__sseek+0x1e>
|
|
|
|
00001e78 <__sclose>:
|
|
1e78: 00e59583 lh a1,14(a1)
|
|
1e7c: a2f5 j 2068 <_close_r>
|
|
|
|
00001e7e <__swbuf_r>:
|
|
1e7e: 1101 addi sp,sp,-32
|
|
1e80: cc22 sw s0,24(sp)
|
|
1e82: ca26 sw s1,20(sp)
|
|
1e84: c84a sw s2,16(sp)
|
|
1e86: ce06 sw ra,28(sp)
|
|
1e88: c64e sw s3,12(sp)
|
|
1e8a: 84aa mv s1,a0
|
|
1e8c: 892e mv s2,a1
|
|
1e8e: 8432 mv s0,a2
|
|
1e90: c509 beqz a0,1e9a <__swbuf_r+0x1c>
|
|
1e92: 4d1c lw a5,24(a0)
|
|
1e94: e399 bnez a5,1e9a <__swbuf_r+0x1c>
|
|
1e96: e3aff0ef jal ra,14d0 <__sinit>
|
|
1e9a: 00000797 auipc a5,0x0
|
|
1e9e: 68e78793 addi a5,a5,1678 # 2528 <__sf_fake_stdin>
|
|
1ea2: 06f41763 bne s0,a5,1f10 <__swbuf_r+0x92>
|
|
1ea6: 40c0 lw s0,4(s1)
|
|
1ea8: 4c1c lw a5,24(s0)
|
|
1eaa: c41c sw a5,8(s0)
|
|
1eac: 245e lhu a5,12(s0)
|
|
1eae: 8ba1 andi a5,a5,8
|
|
1eb0: c3c1 beqz a5,1f30 <__swbuf_r+0xb2>
|
|
1eb2: 481c lw a5,16(s0)
|
|
1eb4: cfb5 beqz a5,1f30 <__swbuf_r+0xb2>
|
|
1eb6: 481c lw a5,16(s0)
|
|
1eb8: 4008 lw a0,0(s0)
|
|
1eba: 0ff97993 andi s3,s2,255
|
|
1ebe: 0ff97913 andi s2,s2,255
|
|
1ec2: 8d1d sub a0,a0,a5
|
|
1ec4: 485c lw a5,20(s0)
|
|
1ec6: 00f54663 blt a0,a5,1ed2 <__swbuf_r+0x54>
|
|
1eca: 85a2 mv a1,s0
|
|
1ecc: 8526 mv a0,s1
|
|
1ece: 2ccd jal 21c0 <_fflush_r>
|
|
1ed0: e525 bnez a0,1f38 <__swbuf_r+0xba>
|
|
1ed2: 441c lw a5,8(s0)
|
|
1ed4: 0505 addi a0,a0,1
|
|
1ed6: 17fd addi a5,a5,-1
|
|
1ed8: c41c sw a5,8(s0)
|
|
1eda: 401c lw a5,0(s0)
|
|
1edc: 00178713 addi a4,a5,1
|
|
1ee0: c018 sw a4,0(s0)
|
|
1ee2: 01378023 sb s3,0(a5)
|
|
1ee6: 485c lw a5,20(s0)
|
|
1ee8: 00a78863 beq a5,a0,1ef8 <__swbuf_r+0x7a>
|
|
1eec: 245e lhu a5,12(s0)
|
|
1eee: 8b85 andi a5,a5,1
|
|
1ef0: cb81 beqz a5,1f00 <__swbuf_r+0x82>
|
|
1ef2: 47a9 li a5,10
|
|
1ef4: 00f91663 bne s2,a5,1f00 <__swbuf_r+0x82>
|
|
1ef8: 85a2 mv a1,s0
|
|
1efa: 8526 mv a0,s1
|
|
1efc: 24d1 jal 21c0 <_fflush_r>
|
|
1efe: ed0d bnez a0,1f38 <__swbuf_r+0xba>
|
|
1f00: 40f2 lw ra,28(sp)
|
|
1f02: 4462 lw s0,24(sp)
|
|
1f04: 854a mv a0,s2
|
|
1f06: 44d2 lw s1,20(sp)
|
|
1f08: 4942 lw s2,16(sp)
|
|
1f0a: 49b2 lw s3,12(sp)
|
|
1f0c: 6105 addi sp,sp,32
|
|
1f0e: 8082 ret
|
|
1f10: 00000797 auipc a5,0x0
|
|
1f14: 63878793 addi a5,a5,1592 # 2548 <__sf_fake_stdout>
|
|
1f18: 00f41463 bne s0,a5,1f20 <__swbuf_r+0xa2>
|
|
1f1c: 4480 lw s0,8(s1)
|
|
1f1e: b769 j 1ea8 <__swbuf_r+0x2a>
|
|
1f20: 00000797 auipc a5,0x0
|
|
1f24: 5e878793 addi a5,a5,1512 # 2508 <__sf_fake_stderr>
|
|
1f28: f8f410e3 bne s0,a5,1ea8 <__swbuf_r+0x2a>
|
|
1f2c: 44c0 lw s0,12(s1)
|
|
1f2e: bfad j 1ea8 <__swbuf_r+0x2a>
|
|
1f30: 85a2 mv a1,s0
|
|
1f32: 8526 mv a0,s1
|
|
1f34: 281d jal 1f6a <__swsetup_r>
|
|
1f36: d141 beqz a0,1eb6 <__swbuf_r+0x38>
|
|
1f38: 597d li s2,-1
|
|
1f3a: b7d9 j 1f00 <__swbuf_r+0x82>
|
|
|
|
00001f3c <_write_r>:
|
|
1f3c: 1141 addi sp,sp,-16
|
|
1f3e: c422 sw s0,8(sp)
|
|
1f40: 842a mv s0,a0
|
|
1f42: 852e mv a0,a1
|
|
1f44: 85b2 mv a1,a2
|
|
1f46: 8636 mv a2,a3
|
|
1f48: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
1f4c: c606 sw ra,12(sp)
|
|
1f4e: c2eff0ef jal ra,137c <_write>
|
|
1f52: 57fd li a5,-1
|
|
1f54: 00f51763 bne a0,a5,1f62 <_write_r+0x26>
|
|
1f58: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
1f5c: 439c lw a5,0(a5)
|
|
1f5e: c391 beqz a5,1f62 <_write_r+0x26>
|
|
1f60: c01c sw a5,0(s0)
|
|
1f62: 40b2 lw ra,12(sp)
|
|
1f64: 4422 lw s0,8(sp)
|
|
1f66: 0141 addi sp,sp,16
|
|
1f68: 8082 ret
|
|
|
|
00001f6a <__swsetup_r>:
|
|
1f6a: 1141 addi sp,sp,-16
|
|
1f6c: 80c18793 addi a5,gp,-2036 # 2000008c <_impure_ptr>
|
|
1f70: c226 sw s1,4(sp)
|
|
1f72: 4384 lw s1,0(a5)
|
|
1f74: c422 sw s0,8(sp)
|
|
1f76: c04a sw s2,0(sp)
|
|
1f78: c606 sw ra,12(sp)
|
|
1f7a: 892a mv s2,a0
|
|
1f7c: 842e mv s0,a1
|
|
1f7e: c491 beqz s1,1f8a <__swsetup_r+0x20>
|
|
1f80: 4c9c lw a5,24(s1)
|
|
1f82: e781 bnez a5,1f8a <__swsetup_r+0x20>
|
|
1f84: 8526 mv a0,s1
|
|
1f86: d4aff0ef jal ra,14d0 <__sinit>
|
|
1f8a: 00000797 auipc a5,0x0
|
|
1f8e: 59e78793 addi a5,a5,1438 # 2528 <__sf_fake_stdin>
|
|
1f92: 02f41b63 bne s0,a5,1fc8 <__swsetup_r+0x5e>
|
|
1f96: 40c0 lw s0,4(s1)
|
|
1f98: 00c41703 lh a4,12(s0)
|
|
1f9c: 01071793 slli a5,a4,0x10
|
|
1fa0: 83c1 srli a5,a5,0x10
|
|
1fa2: 0087f693 andi a3,a5,8
|
|
1fa6: eaad bnez a3,2018 <__swsetup_r+0xae>
|
|
1fa8: 0107f693 andi a3,a5,16
|
|
1fac: ee95 bnez a3,1fe8 <__swsetup_r+0x7e>
|
|
1fae: 47a5 li a5,9
|
|
1fb0: 00f92023 sw a5,0(s2)
|
|
1fb4: 04076713 ori a4,a4,64
|
|
1fb8: a45a sh a4,12(s0)
|
|
1fba: 557d li a0,-1
|
|
1fbc: 40b2 lw ra,12(sp)
|
|
1fbe: 4422 lw s0,8(sp)
|
|
1fc0: 4492 lw s1,4(sp)
|
|
1fc2: 4902 lw s2,0(sp)
|
|
1fc4: 0141 addi sp,sp,16
|
|
1fc6: 8082 ret
|
|
1fc8: 00000797 auipc a5,0x0
|
|
1fcc: 58078793 addi a5,a5,1408 # 2548 <__sf_fake_stdout>
|
|
1fd0: 00f41463 bne s0,a5,1fd8 <__swsetup_r+0x6e>
|
|
1fd4: 4480 lw s0,8(s1)
|
|
1fd6: b7c9 j 1f98 <__swsetup_r+0x2e>
|
|
1fd8: 00000797 auipc a5,0x0
|
|
1fdc: 53078793 addi a5,a5,1328 # 2508 <__sf_fake_stderr>
|
|
1fe0: faf41ce3 bne s0,a5,1f98 <__swsetup_r+0x2e>
|
|
1fe4: 44c0 lw s0,12(s1)
|
|
1fe6: bf4d j 1f98 <__swsetup_r+0x2e>
|
|
1fe8: 8b91 andi a5,a5,4
|
|
1fea: c39d beqz a5,2010 <__swsetup_r+0xa6>
|
|
1fec: 584c lw a1,52(s0)
|
|
1fee: c989 beqz a1,2000 <__swsetup_r+0x96>
|
|
1ff0: 04440793 addi a5,s0,68
|
|
1ff4: 00f58463 beq a1,a5,1ffc <__swsetup_r+0x92>
|
|
1ff8: 854a mv a0,s2
|
|
1ffa: 2ea9 jal 2354 <_free_r>
|
|
1ffc: 02042a23 sw zero,52(s0)
|
|
2000: 245e lhu a5,12(s0)
|
|
2002: 00042223 sw zero,4(s0)
|
|
2006: fdb7f793 andi a5,a5,-37
|
|
200a: a45e sh a5,12(s0)
|
|
200c: 481c lw a5,16(s0)
|
|
200e: c01c sw a5,0(s0)
|
|
2010: 245e lhu a5,12(s0)
|
|
2012: 0087e793 ori a5,a5,8
|
|
2016: a45e sh a5,12(s0)
|
|
2018: 481c lw a5,16(s0)
|
|
201a: eb99 bnez a5,2030 <__swsetup_r+0xc6>
|
|
201c: 245e lhu a5,12(s0)
|
|
201e: 20000713 li a4,512
|
|
2022: 2807f793 andi a5,a5,640
|
|
2026: 00e78563 beq a5,a4,2030 <__swsetup_r+0xc6>
|
|
202a: 85a2 mv a1,s0
|
|
202c: 854a mv a0,s2
|
|
202e: 2cad jal 22a8 <__smakebuf_r>
|
|
2030: 245e lhu a5,12(s0)
|
|
2032: 0017f713 andi a4,a5,1
|
|
2036: c31d beqz a4,205c <__swsetup_r+0xf2>
|
|
2038: 485c lw a5,20(s0)
|
|
203a: 00042423 sw zero,8(s0)
|
|
203e: 40f007b3 neg a5,a5
|
|
2042: cc1c sw a5,24(s0)
|
|
2044: 481c lw a5,16(s0)
|
|
2046: 4501 li a0,0
|
|
2048: fbb5 bnez a5,1fbc <__swsetup_r+0x52>
|
|
204a: 00c41783 lh a5,12(s0)
|
|
204e: 0807f713 andi a4,a5,128
|
|
2052: d72d beqz a4,1fbc <__swsetup_r+0x52>
|
|
2054: 0407e793 ori a5,a5,64
|
|
2058: a45e sh a5,12(s0)
|
|
205a: b785 j 1fba <__swsetup_r+0x50>
|
|
205c: 8b89 andi a5,a5,2
|
|
205e: 4701 li a4,0
|
|
2060: e391 bnez a5,2064 <__swsetup_r+0xfa>
|
|
2062: 4858 lw a4,20(s0)
|
|
2064: c418 sw a4,8(s0)
|
|
2066: bff9 j 2044 <__swsetup_r+0xda>
|
|
|
|
00002068 <_close_r>:
|
|
2068: 1141 addi sp,sp,-16
|
|
206a: c422 sw s0,8(sp)
|
|
206c: 842a mv s0,a0
|
|
206e: 852e mv a0,a1
|
|
2070: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
2074: c606 sw ra,12(sp)
|
|
2076: 2101 jal 2476 <_close>
|
|
2078: 57fd li a5,-1
|
|
207a: 00f51763 bne a0,a5,2088 <_close_r+0x20>
|
|
207e: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
2082: 439c lw a5,0(a5)
|
|
2084: c391 beqz a5,2088 <_close_r+0x20>
|
|
2086: c01c sw a5,0(s0)
|
|
2088: 40b2 lw ra,12(sp)
|
|
208a: 4422 lw s0,8(sp)
|
|
208c: 0141 addi sp,sp,16
|
|
208e: 8082 ret
|
|
|
|
00002090 <__sflush_r>:
|
|
2090: 25de lhu a5,12(a1)
|
|
2092: 1101 addi sp,sp,-32
|
|
2094: cc22 sw s0,24(sp)
|
|
2096: ca26 sw s1,20(sp)
|
|
2098: ce06 sw ra,28(sp)
|
|
209a: c84a sw s2,16(sp)
|
|
209c: c64e sw s3,12(sp)
|
|
209e: 0087f713 andi a4,a5,8
|
|
20a2: 84aa mv s1,a0
|
|
20a4: 842e mv s0,a1
|
|
20a6: eb79 bnez a4,217c <__sflush_r+0xec>
|
|
20a8: 41d8 lw a4,4(a1)
|
|
20aa: 00e04d63 bgtz a4,20c4 <__sflush_r+0x34>
|
|
20ae: 41b8 lw a4,64(a1)
|
|
20b0: 00e04a63 bgtz a4,20c4 <__sflush_r+0x34>
|
|
20b4: 4501 li a0,0
|
|
20b6: 40f2 lw ra,28(sp)
|
|
20b8: 4462 lw s0,24(sp)
|
|
20ba: 44d2 lw s1,20(sp)
|
|
20bc: 4942 lw s2,16(sp)
|
|
20be: 49b2 lw s3,12(sp)
|
|
20c0: 6105 addi sp,sp,32
|
|
20c2: 8082 ret
|
|
20c4: 5458 lw a4,44(s0)
|
|
20c6: d77d beqz a4,20b4 <__sflush_r+0x24>
|
|
20c8: 0004a903 lw s2,0(s1)
|
|
20cc: 01379693 slli a3,a5,0x13
|
|
20d0: 0004a023 sw zero,0(s1)
|
|
20d4: 0606db63 bgez a3,214a <__sflush_r+0xba>
|
|
20d8: 4870 lw a2,84(s0)
|
|
20da: 245e lhu a5,12(s0)
|
|
20dc: 8b91 andi a5,a5,4
|
|
20de: c799 beqz a5,20ec <__sflush_r+0x5c>
|
|
20e0: 405c lw a5,4(s0)
|
|
20e2: 8e1d sub a2,a2,a5
|
|
20e4: 585c lw a5,52(s0)
|
|
20e6: c399 beqz a5,20ec <__sflush_r+0x5c>
|
|
20e8: 403c lw a5,64(s0)
|
|
20ea: 8e1d sub a2,a2,a5
|
|
20ec: 545c lw a5,44(s0)
|
|
20ee: 500c lw a1,32(s0)
|
|
20f0: 4681 li a3,0
|
|
20f2: 8526 mv a0,s1
|
|
20f4: 9782 jalr a5
|
|
20f6: 57fd li a5,-1
|
|
20f8: 245a lhu a4,12(s0)
|
|
20fa: 00f51d63 bne a0,a5,2114 <__sflush_r+0x84>
|
|
20fe: 4094 lw a3,0(s1)
|
|
2100: 47f5 li a5,29
|
|
2102: 06d7e863 bltu a5,a3,2172 <__sflush_r+0xe2>
|
|
2106: 204007b7 lui a5,0x20400
|
|
210a: 0785 addi a5,a5,1
|
|
210c: 00d7d7b3 srl a5,a5,a3
|
|
2110: 8b85 andi a5,a5,1
|
|
2112: c3a5 beqz a5,2172 <__sflush_r+0xe2>
|
|
2114: 481c lw a5,16(s0)
|
|
2116: 00042223 sw zero,4(s0)
|
|
211a: c01c sw a5,0(s0)
|
|
211c: 01371793 slli a5,a4,0x13
|
|
2120: 0007d863 bgez a5,2130 <__sflush_r+0xa0>
|
|
2124: 57fd li a5,-1
|
|
2126: 00f51463 bne a0,a5,212e <__sflush_r+0x9e>
|
|
212a: 409c lw a5,0(s1)
|
|
212c: e391 bnez a5,2130 <__sflush_r+0xa0>
|
|
212e: c868 sw a0,84(s0)
|
|
2130: 584c lw a1,52(s0)
|
|
2132: 0124a023 sw s2,0(s1)
|
|
2136: ddbd beqz a1,20b4 <__sflush_r+0x24>
|
|
2138: 04440793 addi a5,s0,68
|
|
213c: 00f58463 beq a1,a5,2144 <__sflush_r+0xb4>
|
|
2140: 8526 mv a0,s1
|
|
2142: 2c09 jal 2354 <_free_r>
|
|
2144: 02042a23 sw zero,52(s0)
|
|
2148: b7b5 j 20b4 <__sflush_r+0x24>
|
|
214a: 500c lw a1,32(s0)
|
|
214c: 4601 li a2,0
|
|
214e: 4685 li a3,1
|
|
2150: 8526 mv a0,s1
|
|
2152: 9702 jalr a4
|
|
2154: 57fd li a5,-1
|
|
2156: 862a mv a2,a0
|
|
2158: f8f511e3 bne a0,a5,20da <__sflush_r+0x4a>
|
|
215c: 409c lw a5,0(s1)
|
|
215e: dfb5 beqz a5,20da <__sflush_r+0x4a>
|
|
2160: 4775 li a4,29
|
|
2162: 00e78563 beq a5,a4,216c <__sflush_r+0xdc>
|
|
2166: 4759 li a4,22
|
|
2168: 04e79363 bne a5,a4,21ae <__sflush_r+0x11e>
|
|
216c: 0124a023 sw s2,0(s1)
|
|
2170: b791 j 20b4 <__sflush_r+0x24>
|
|
2172: 04076713 ori a4,a4,64
|
|
2176: a45a sh a4,12(s0)
|
|
2178: 557d li a0,-1
|
|
217a: bf35 j 20b6 <__sflush_r+0x26>
|
|
217c: 0105a983 lw s3,16(a1)
|
|
2180: f2098ae3 beqz s3,20b4 <__sflush_r+0x24>
|
|
2184: 0005a903 lw s2,0(a1)
|
|
2188: 8b8d andi a5,a5,3
|
|
218a: 0135a023 sw s3,0(a1)
|
|
218e: 41390933 sub s2,s2,s3
|
|
2192: 4701 li a4,0
|
|
2194: e391 bnez a5,2198 <__sflush_r+0x108>
|
|
2196: 49d8 lw a4,20(a1)
|
|
2198: c418 sw a4,8(s0)
|
|
219a: f1205de3 blez s2,20b4 <__sflush_r+0x24>
|
|
219e: 541c lw a5,40(s0)
|
|
21a0: 500c lw a1,32(s0)
|
|
21a2: 86ca mv a3,s2
|
|
21a4: 864e mv a2,s3
|
|
21a6: 8526 mv a0,s1
|
|
21a8: 9782 jalr a5
|
|
21aa: 00a04763 bgtz a0,21b8 <__sflush_r+0x128>
|
|
21ae: 245e lhu a5,12(s0)
|
|
21b0: 0407e793 ori a5,a5,64
|
|
21b4: a45e sh a5,12(s0)
|
|
21b6: b7c9 j 2178 <__sflush_r+0xe8>
|
|
21b8: 99aa add s3,s3,a0
|
|
21ba: 40a90933 sub s2,s2,a0
|
|
21be: bff1 j 219a <__sflush_r+0x10a>
|
|
|
|
000021c0 <_fflush_r>:
|
|
21c0: 499c lw a5,16(a1)
|
|
21c2: c3a5 beqz a5,2222 <_fflush_r+0x62>
|
|
21c4: 1101 addi sp,sp,-32
|
|
21c6: cc22 sw s0,24(sp)
|
|
21c8: ce06 sw ra,28(sp)
|
|
21ca: 842a mv s0,a0
|
|
21cc: c519 beqz a0,21da <_fflush_r+0x1a>
|
|
21ce: 4d1c lw a5,24(a0)
|
|
21d0: e789 bnez a5,21da <_fflush_r+0x1a>
|
|
21d2: c62e sw a1,12(sp)
|
|
21d4: afcff0ef jal ra,14d0 <__sinit>
|
|
21d8: 45b2 lw a1,12(sp)
|
|
21da: 00000797 auipc a5,0x0
|
|
21de: 34e78793 addi a5,a5,846 # 2528 <__sf_fake_stdin>
|
|
21e2: 00f59b63 bne a1,a5,21f8 <_fflush_r+0x38>
|
|
21e6: 404c lw a1,4(s0)
|
|
21e8: 00c59783 lh a5,12(a1)
|
|
21ec: c795 beqz a5,2218 <_fflush_r+0x58>
|
|
21ee: 8522 mv a0,s0
|
|
21f0: 4462 lw s0,24(sp)
|
|
21f2: 40f2 lw ra,28(sp)
|
|
21f4: 6105 addi sp,sp,32
|
|
21f6: bd69 j 2090 <__sflush_r>
|
|
21f8: 00000797 auipc a5,0x0
|
|
21fc: 35078793 addi a5,a5,848 # 2548 <__sf_fake_stdout>
|
|
2200: 00f59463 bne a1,a5,2208 <_fflush_r+0x48>
|
|
2204: 440c lw a1,8(s0)
|
|
2206: b7cd j 21e8 <_fflush_r+0x28>
|
|
2208: 00000797 auipc a5,0x0
|
|
220c: 30078793 addi a5,a5,768 # 2508 <__sf_fake_stderr>
|
|
2210: fcf59ce3 bne a1,a5,21e8 <_fflush_r+0x28>
|
|
2214: 444c lw a1,12(s0)
|
|
2216: bfc9 j 21e8 <_fflush_r+0x28>
|
|
2218: 40f2 lw ra,28(sp)
|
|
221a: 4462 lw s0,24(sp)
|
|
221c: 4501 li a0,0
|
|
221e: 6105 addi sp,sp,32
|
|
2220: 8082 ret
|
|
2222: 4501 li a0,0
|
|
2224: 8082 ret
|
|
|
|
00002226 <_lseek_r>:
|
|
2226: 1141 addi sp,sp,-16
|
|
2228: c422 sw s0,8(sp)
|
|
222a: 842a mv s0,a0
|
|
222c: 852e mv a0,a1
|
|
222e: 85b2 mv a1,a2
|
|
2230: 8636 mv a2,a3
|
|
2232: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
2236: c606 sw ra,12(sp)
|
|
2238: 248d jal 249a <_lseek>
|
|
223a: 57fd li a5,-1
|
|
223c: 00f51763 bne a0,a5,224a <_lseek_r+0x24>
|
|
2240: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
2244: 439c lw a5,0(a5)
|
|
2246: c391 beqz a5,224a <_lseek_r+0x24>
|
|
2248: c01c sw a5,0(s0)
|
|
224a: 40b2 lw ra,12(sp)
|
|
224c: 4422 lw s0,8(sp)
|
|
224e: 0141 addi sp,sp,16
|
|
2250: 8082 ret
|
|
|
|
00002252 <__swhatbuf_r>:
|
|
2252: 7119 addi sp,sp,-128
|
|
2254: daa6 sw s1,116(sp)
|
|
2256: 84ae mv s1,a1
|
|
2258: 00e59583 lh a1,14(a1)
|
|
225c: dca2 sw s0,120(sp)
|
|
225e: de86 sw ra,124(sp)
|
|
2260: 8432 mv s0,a2
|
|
2262: 0005db63 bgez a1,2278 <__swhatbuf_r+0x26>
|
|
2266: 24de lhu a5,12(s1)
|
|
2268: 0006a023 sw zero,0(a3)
|
|
226c: 0807f793 andi a5,a5,128
|
|
2270: e39d bnez a5,2296 <__swhatbuf_r+0x44>
|
|
2272: 40000793 li a5,1024
|
|
2276: a015 j 229a <__swhatbuf_r+0x48>
|
|
2278: 0830 addi a2,sp,24
|
|
227a: c636 sw a3,12(sp)
|
|
227c: 2265 jal 2424 <_fstat_r>
|
|
227e: 46b2 lw a3,12(sp)
|
|
2280: fe0543e3 bltz a0,2266 <__swhatbuf_r+0x14>
|
|
2284: 4772 lw a4,28(sp)
|
|
2286: 67bd lui a5,0xf
|
|
2288: 8ff9 and a5,a5,a4
|
|
228a: 7779 lui a4,0xffffe
|
|
228c: 97ba add a5,a5,a4
|
|
228e: 0017b793 seqz a5,a5
|
|
2292: c29c sw a5,0(a3)
|
|
2294: bff9 j 2272 <__swhatbuf_r+0x20>
|
|
2296: 04000793 li a5,64
|
|
229a: c01c sw a5,0(s0)
|
|
229c: 50f6 lw ra,124(sp)
|
|
229e: 5466 lw s0,120(sp)
|
|
22a0: 54d6 lw s1,116(sp)
|
|
22a2: 4501 li a0,0
|
|
22a4: 6109 addi sp,sp,128
|
|
22a6: 8082 ret
|
|
|
|
000022a8 <__smakebuf_r>:
|
|
22a8: 25de lhu a5,12(a1)
|
|
22aa: 1101 addi sp,sp,-32
|
|
22ac: cc22 sw s0,24(sp)
|
|
22ae: ce06 sw ra,28(sp)
|
|
22b0: ca26 sw s1,20(sp)
|
|
22b2: c84a sw s2,16(sp)
|
|
22b4: 8b89 andi a5,a5,2
|
|
22b6: 842e mv s0,a1
|
|
22b8: cf89 beqz a5,22d2 <__smakebuf_r+0x2a>
|
|
22ba: 04740793 addi a5,s0,71
|
|
22be: c01c sw a5,0(s0)
|
|
22c0: c81c sw a5,16(s0)
|
|
22c2: 4785 li a5,1
|
|
22c4: c85c sw a5,20(s0)
|
|
22c6: 40f2 lw ra,28(sp)
|
|
22c8: 4462 lw s0,24(sp)
|
|
22ca: 44d2 lw s1,20(sp)
|
|
22cc: 4942 lw s2,16(sp)
|
|
22ce: 6105 addi sp,sp,32
|
|
22d0: 8082 ret
|
|
22d2: 0074 addi a3,sp,12
|
|
22d4: 0030 addi a2,sp,8
|
|
22d6: 84aa mv s1,a0
|
|
22d8: 3fad jal 2252 <__swhatbuf_r>
|
|
22da: 45a2 lw a1,8(sp)
|
|
22dc: 892a mv s2,a0
|
|
22de: 8526 mv a0,s1
|
|
22e0: b5cff0ef jal ra,163c <_malloc_r>
|
|
22e4: e919 bnez a0,22fa <__smakebuf_r+0x52>
|
|
22e6: 00c41783 lh a5,12(s0)
|
|
22ea: 2007f713 andi a4,a5,512
|
|
22ee: ff61 bnez a4,22c6 <__smakebuf_r+0x1e>
|
|
22f0: 9bf1 andi a5,a5,-4
|
|
22f2: 0027e793 ori a5,a5,2
|
|
22f6: a45e sh a5,12(s0)
|
|
22f8: b7c9 j 22ba <__smakebuf_r+0x12>
|
|
22fa: fffff797 auipc a5,0xfffff
|
|
22fe: 18678793 addi a5,a5,390 # 1480 <_cleanup_r>
|
|
2302: d49c sw a5,40(s1)
|
|
2304: 245e lhu a5,12(s0)
|
|
2306: c008 sw a0,0(s0)
|
|
2308: c808 sw a0,16(s0)
|
|
230a: 0807e793 ori a5,a5,128
|
|
230e: a45e sh a5,12(s0)
|
|
2310: 47a2 lw a5,8(sp)
|
|
2312: c85c sw a5,20(s0)
|
|
2314: 47b2 lw a5,12(sp)
|
|
2316: cb99 beqz a5,232c <__smakebuf_r+0x84>
|
|
2318: 00e41583 lh a1,14(s0)
|
|
231c: 8526 mv a0,s1
|
|
231e: 2a05 jal 244e <_isatty_r>
|
|
2320: c511 beqz a0,232c <__smakebuf_r+0x84>
|
|
2322: 245e lhu a5,12(s0)
|
|
2324: 9bf1 andi a5,a5,-4
|
|
2326: 0017e793 ori a5,a5,1
|
|
232a: a45e sh a5,12(s0)
|
|
232c: 245e lhu a5,12(s0)
|
|
232e: 00f96933 or s2,s2,a5
|
|
2332: 01241623 sh s2,12(s0)
|
|
2336: bf41 j 22c6 <__smakebuf_r+0x1e>
|
|
|
|
00002338 <memchr>:
|
|
2338: 0ff5f593 andi a1,a1,255
|
|
233c: 962a add a2,a2,a0
|
|
233e: 00c51463 bne a0,a2,2346 <memchr+0xe>
|
|
2342: 4501 li a0,0
|
|
2344: 8082 ret
|
|
2346: 211c lbu a5,0(a0)
|
|
2348: feb78ee3 beq a5,a1,2344 <memchr+0xc>
|
|
234c: 0505 addi a0,a0,1
|
|
234e: bfc5 j 233e <memchr+0x6>
|
|
|
|
00002350 <__malloc_lock>:
|
|
2350: 8082 ret
|
|
|
|
00002352 <__malloc_unlock>:
|
|
2352: 8082 ret
|
|
|
|
00002354 <_free_r>:
|
|
2354: c1cd beqz a1,23f6 <_free_r+0xa2>
|
|
2356: ffc5a783 lw a5,-4(a1)
|
|
235a: 1141 addi sp,sp,-16
|
|
235c: c422 sw s0,8(sp)
|
|
235e: c606 sw ra,12(sp)
|
|
2360: c226 sw s1,4(sp)
|
|
2362: ffc58413 addi s0,a1,-4
|
|
2366: 0007d363 bgez a5,236c <_free_r+0x18>
|
|
236a: 943e add s0,s0,a5
|
|
236c: 84aa mv s1,a0
|
|
236e: 37cd jal 2350 <__malloc_lock>
|
|
2370: 83818793 addi a5,gp,-1992 # 200000b8 <__malloc_free_list>
|
|
2374: 439c lw a5,0(a5)
|
|
2376: eb99 bnez a5,238c <_free_r+0x38>
|
|
2378: 00042223 sw zero,4(s0)
|
|
237c: 8281ac23 sw s0,-1992(gp) # 200000b8 <__malloc_free_list>
|
|
2380: 4422 lw s0,8(sp)
|
|
2382: 40b2 lw ra,12(sp)
|
|
2384: 8526 mv a0,s1
|
|
2386: 4492 lw s1,4(sp)
|
|
2388: 0141 addi sp,sp,16
|
|
238a: b7e1 j 2352 <__malloc_unlock>
|
|
238c: 00f47e63 bgeu s0,a5,23a8 <_free_r+0x54>
|
|
2390: 4014 lw a3,0(s0)
|
|
2392: 00d40733 add a4,s0,a3
|
|
2396: 00e79663 bne a5,a4,23a2 <_free_r+0x4e>
|
|
239a: 4398 lw a4,0(a5)
|
|
239c: 43dc lw a5,4(a5)
|
|
239e: 9736 add a4,a4,a3
|
|
23a0: c018 sw a4,0(s0)
|
|
23a2: c05c sw a5,4(s0)
|
|
23a4: bfe1 j 237c <_free_r+0x28>
|
|
23a6: 87ba mv a5,a4
|
|
23a8: 43d8 lw a4,4(a5)
|
|
23aa: c319 beqz a4,23b0 <_free_r+0x5c>
|
|
23ac: fee47de3 bgeu s0,a4,23a6 <_free_r+0x52>
|
|
23b0: 4394 lw a3,0(a5)
|
|
23b2: 00d78633 add a2,a5,a3
|
|
23b6: 00861f63 bne a2,s0,23d4 <_free_r+0x80>
|
|
23ba: 4010 lw a2,0(s0)
|
|
23bc: 96b2 add a3,a3,a2
|
|
23be: c394 sw a3,0(a5)
|
|
23c0: 00d78633 add a2,a5,a3
|
|
23c4: fac71ee3 bne a4,a2,2380 <_free_r+0x2c>
|
|
23c8: 4310 lw a2,0(a4)
|
|
23ca: 4358 lw a4,4(a4)
|
|
23cc: 96b2 add a3,a3,a2
|
|
23ce: c394 sw a3,0(a5)
|
|
23d0: c3d8 sw a4,4(a5)
|
|
23d2: b77d j 2380 <_free_r+0x2c>
|
|
23d4: 00c47563 bgeu s0,a2,23de <_free_r+0x8a>
|
|
23d8: 47b1 li a5,12
|
|
23da: c09c sw a5,0(s1)
|
|
23dc: b755 j 2380 <_free_r+0x2c>
|
|
23de: 4010 lw a2,0(s0)
|
|
23e0: 00c406b3 add a3,s0,a2
|
|
23e4: 00d71663 bne a4,a3,23f0 <_free_r+0x9c>
|
|
23e8: 4314 lw a3,0(a4)
|
|
23ea: 4358 lw a4,4(a4)
|
|
23ec: 96b2 add a3,a3,a2
|
|
23ee: c014 sw a3,0(s0)
|
|
23f0: c058 sw a4,4(s0)
|
|
23f2: c3c0 sw s0,4(a5)
|
|
23f4: b771 j 2380 <_free_r+0x2c>
|
|
23f6: 8082 ret
|
|
|
|
000023f8 <_read_r>:
|
|
23f8: 1141 addi sp,sp,-16
|
|
23fa: c422 sw s0,8(sp)
|
|
23fc: 842a mv s0,a0
|
|
23fe: 852e mv a0,a1
|
|
2400: 85b2 mv a1,a2
|
|
2402: 8636 mv a2,a3
|
|
2404: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
2408: c606 sw ra,12(sp)
|
|
240a: 2871 jal 24a6 <_read>
|
|
240c: 57fd li a5,-1
|
|
240e: 00f51763 bne a0,a5,241c <_read_r+0x24>
|
|
2412: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
2416: 439c lw a5,0(a5)
|
|
2418: c391 beqz a5,241c <_read_r+0x24>
|
|
241a: c01c sw a5,0(s0)
|
|
241c: 40b2 lw ra,12(sp)
|
|
241e: 4422 lw s0,8(sp)
|
|
2420: 0141 addi sp,sp,16
|
|
2422: 8082 ret
|
|
|
|
00002424 <_fstat_r>:
|
|
2424: 1141 addi sp,sp,-16
|
|
2426: c422 sw s0,8(sp)
|
|
2428: 842a mv s0,a0
|
|
242a: 852e mv a0,a1
|
|
242c: 85b2 mv a1,a2
|
|
242e: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
2432: c606 sw ra,12(sp)
|
|
2434: 20b9 jal 2482 <_fstat>
|
|
2436: 57fd li a5,-1
|
|
2438: 00f51763 bne a0,a5,2446 <_fstat_r+0x22>
|
|
243c: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
2440: 439c lw a5,0(a5)
|
|
2442: c391 beqz a5,2446 <_fstat_r+0x22>
|
|
2444: c01c sw a5,0(s0)
|
|
2446: 40b2 lw ra,12(sp)
|
|
2448: 4422 lw s0,8(sp)
|
|
244a: 0141 addi sp,sp,16
|
|
244c: 8082 ret
|
|
|
|
0000244e <_isatty_r>:
|
|
244e: 1141 addi sp,sp,-16
|
|
2450: c422 sw s0,8(sp)
|
|
2452: 842a mv s0,a0
|
|
2454: 852e mv a0,a1
|
|
2456: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
245a: c606 sw ra,12(sp)
|
|
245c: 280d jal 248e <_isatty>
|
|
245e: 57fd li a5,-1
|
|
2460: 00f51763 bne a0,a5,246e <_isatty_r+0x20>
|
|
2464: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
2468: 439c lw a5,0(a5)
|
|
246a: c391 beqz a5,246e <_isatty_r+0x20>
|
|
246c: c01c sw a5,0(s0)
|
|
246e: 40b2 lw ra,12(sp)
|
|
2470: 4422 lw s0,8(sp)
|
|
2472: 0141 addi sp,sp,16
|
|
2474: 8082 ret
|
|
|
|
00002476 <_close>:
|
|
2476: 05800793 li a5,88
|
|
247a: 84f1a623 sw a5,-1972(gp) # 200000cc <errno>
|
|
247e: 557d li a0,-1
|
|
2480: 8082 ret
|
|
|
|
00002482 <_fstat>:
|
|
2482: 05800793 li a5,88
|
|
2486: 84f1a623 sw a5,-1972(gp) # 200000cc <errno>
|
|
248a: 557d li a0,-1
|
|
248c: 8082 ret
|
|
|
|
0000248e <_isatty>:
|
|
248e: 05800793 li a5,88
|
|
2492: 84f1a623 sw a5,-1972(gp) # 200000cc <errno>
|
|
2496: 4501 li a0,0
|
|
2498: 8082 ret
|
|
|
|
0000249a <_lseek>:
|
|
249a: 05800793 li a5,88
|
|
249e: 84f1a623 sw a5,-1972(gp) # 200000cc <errno>
|
|
24a2: 557d li a0,-1
|
|
24a4: 8082 ret
|
|
|
|
000024a6 <_read>:
|
|
24a6: 05800793 li a5,88
|
|
24aa: 84f1a623 sw a5,-1972(gp) # 200000cc <errno>
|
|
24ae: 557d li a0,-1
|
|
24b0: 8082 ret
|
|
24b2: 0000 unimp
|
|
24b4: 74737953 0x74737953
|
|
24b8: 6d65 lui s10,0x19
|
|
24ba: 3a6b6c43 fmadd.d fs8,fs6,ft6,ft7,unknown
|
|
24be: 6425 lui s0,0x9
|
|
24c0: 0a0d addi s4,s4,3
|
|
24c2: 0000 unimp
|
|
24c4: 70696843 fmadd.s fa6,fs2,ft6,fa4,unknown
|
|
24c8: 4449 li s0,18
|
|
24ca: 253a lhu a4,10(a0)
|
|
24cc: 3830 lbu a2,19(s0)
|
|
24ce: 0d78 addi a4,sp,668
|
|
24d0: 000a c.slli zero,0x2
|
|
24d2: 0000 unimp
|
|
24d4: 0a0d addi s4,s4,3
|
|
24d6: 6554 flw fa3,12(a0)
|
|
24d8: 706d c.lui zero,0xffffb
|
|
24da: 3a31 jal 1df6 <__sread+0x22>
|
|
24dc: 6425 lui s0,0x9
|
|
24de: 0a0d addi s4,s4,3
|
|
24e0: 6554 flw fa3,12(a0)
|
|
24e2: 706d c.lui zero,0xffffb
|
|
24e4: 3a32 lhu a2,50(a2)
|
|
24e6: 6425 lui s0,0x9
|
|
24e8: 0a0d addi s4,s4,3
|
|
24ea: 6554 flw fa3,12(a0)
|
|
24ec: 706d c.lui zero,0xffffb
|
|
24ee: 64253a33 0x64253a33
|
|
24f2: 0a0d addi s4,s4,3
|
|
24f4: 5344 lw s1,36(a4)
|
|
24f6: 64253a47 0x64253a47
|
|
24fa: 0a0d addi s4,s4,3
|
|
24fc: 3a474843 fmadd.d fa6,fa4,ft4,ft7,rmm
|
|
2500: 6425 lui s0,0x9
|
|
2502: 0a0d addi s4,s4,3
|
|
2504: 0000 unimp
|
|
...
|
|
|
|
00002508 <__sf_fake_stderr>:
|
|
...
|
|
|
|
00002528 <__sf_fake_stdin>:
|
|
...
|
|
|
|
00002548 <__sf_fake_stdout>:
|
|
...
|
|
2568: 2d23 2b30 0020 0000 6c68 004c 6665 4567 #-0+ ...hlL.efgE
|
|
2578: 4746 0000 3130 3332 3534 3736 3938 4241 FG..0123456789AB
|
|
2588: 4443 4645 0000 0000 3130 3332 3534 3736 CDEF....01234567
|
|
2598: 3938 6261 6463 6665 0000 0000 89abcdef....
|