3532 lines
155 KiB
Plaintext
3532 lines
155 KiB
Plaintext
|
|
mppt_Nos_V0.4.elf: file format elf32-littleriscv
|
|
mppt_Nos_V0.4.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 0x00001f64 memsz 0x00001f64 flags r-x
|
|
LOAD off 0x00003000 vaddr 0x20000000 paddr 0x00001f64 align 2**12
|
|
filesz 0x00000098 memsz 0x000000d0 flags rw-
|
|
LOAD off 0x00003800 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 00001e24 00000140 00000140 00001140 2**2
|
|
CONTENTS, ALLOC, LOAD, READONLY, CODE
|
|
3 .fini 00000000 00001f64 00001f64 00003098 2**0
|
|
CONTENTS, ALLOC, LOAD, CODE
|
|
4 .dalign 00000000 20000000 20000000 00003098 2**0
|
|
CONTENTS
|
|
5 .dlalign 00000000 00001f64 00001f64 00003098 2**0
|
|
CONTENTS
|
|
6 .data 00000098 20000000 00001f64 00003000 2**2
|
|
CONTENTS, ALLOC, LOAD, DATA
|
|
7 .bss 00000038 20000098 00001ffc 00003098 2**2
|
|
ALLOC
|
|
8 .stack 00000800 20004800 20004800 00003800 2**0
|
|
ALLOC
|
|
9 .debug_info 00012475 00000000 00000000 00003098 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
10 .debug_abbrev 00003230 00000000 00000000 0001550d 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
11 .debug_aranges 00000978 00000000 00000000 00018740 2**3
|
|
CONTENTS, READONLY, DEBUGGING
|
|
12 .debug_ranges 000009d0 00000000 00000000 000190b8 2**3
|
|
CONTENTS, READONLY, DEBUGGING
|
|
13 .debug_line 0000b290 00000000 00000000 00019a88 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
14 .debug_str 00002fb6 00000000 00000000 00024d18 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
15 .comment 00000033 00000000 00000000 00027cce 2**0
|
|
CONTENTS, READONLY
|
|
16 .debug_frame 00001d20 00000000 00000000 00027d04 2**2
|
|
CONTENTS, READONLY, DEBUGGING
|
|
17 .debug_loc 00003e96 00000000 00000000 00029a24 2**0
|
|
CONTENTS, READONLY, DEBUGGING
|
|
18 .stab 00000084 00000000 00000000 0002d8bc 2**2
|
|
CONTENTS, READONLY, DEBUGGING
|
|
19 .stabstr 00000117 00000000 00000000 0002d940 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
|
|
00001f64 l d .fini 00000000 .fini
|
|
20000000 l d .dalign 00000000 .dalign
|
|
00001f64 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_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 .debug_loc 00000000 .debug_loc
|
|
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 ch32l103_it.c
|
|
00000000 l df *ABS* 00000000 main.c
|
|
00000000 l df *ABS* 00000000 system_ch32l103.c
|
|
00000000 l df *ABS* 00000000 ch32l103_dbgmcu.c
|
|
00000000 l df *ABS* 00000000 ch32l103_exti.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 gpio.c
|
|
00000000 l df *ABS* 00000000 rs485.c
|
|
00000000 l df *ABS* 00000000 tim.c
|
|
00000000 l df *ABS* 00000000 timeSliceOffset.c
|
|
200000b4 l O .bss 00000004 pTimeSliceList
|
|
00000000 l df *ABS* 00000000 ring_queue.c
|
|
00000000 l df *ABS* 00000000 debug.c
|
|
200000b8 l O .bss 00000002 p_ms
|
|
200000ba l O .bss 00000002 p_us
|
|
20000088 l O .data 00000004 curbrk.5007
|
|
00000000 l df *ABS* 00000000 printf.c
|
|
00000000 l df *ABS* 00000000 puts.c
|
|
00000000 l df *ABS* 00000000 wbuf.c
|
|
00000000 l df *ABS* 00000000 wsetup.c
|
|
00000000 l df *ABS* 00000000 fflush.c
|
|
00000000 l df *ABS* 00000000 findfp.c
|
|
0000114c l F .text 00000066 std
|
|
00000000 l df *ABS* 00000000 fwalk.c
|
|
00000000 l df *ABS* 00000000 makebuf.c
|
|
00000000 l df *ABS* 00000000 nano-mallocr.c
|
|
00000000 l df *ABS* 00000000 nano-mallocr.c
|
|
00000000 l df *ABS* 00000000 nano-vfprintf.c
|
|
000015d2 l F .text 00000028 __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 writer.c
|
|
00000000 l df *ABS* 00000000 closer.c
|
|
00000000 l df *ABS* 00000000 fstatr.c
|
|
00000000 l df *ABS* 00000000 isattyr.c
|
|
00000000 l df *ABS* 00000000 lseekr.c
|
|
00000000 l df *ABS* 00000000 memchr.c
|
|
00000000 l df *ABS* 00000000 mlock.c
|
|
00000000 l df *ABS* 00000000 readr.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 uart_dev.c
|
|
00000000 l df *ABS* 00000000 reent.c
|
|
00000aa8 g F .text 00000012 EXTI2_IRQHandler
|
|
00001dbe g F .text 00000028 _isatty_r
|
|
00000d22 g F .text 000000d4 _puts_r
|
|
00001de6 g F .text 0000002c _lseek_r
|
|
00000ce2 g F .text 00000040 printf
|
|
20000880 g .data 00000000 __global_pointer$
|
|
00000148 g F .text 00000028 .hidden __riscv_save_8
|
|
00000434 w .text 00000000 TIM1_CC_IRQHandler
|
|
00001d08 g F .text 00000030 __sseek
|
|
00001202 g F .text 00000066 __sinit
|
|
00000e00 g F .text 000000bc __swbuf_r
|
|
0000024a g F .text 00000002 HardFault_Handler
|
|
000011bc g F .text 00000046 __sfmoreglue
|
|
00001e2c g F .text 00000002 __malloc_unlock
|
|
00000be2 g F .text 0000002c InRingQueue
|
|
00000434 w .text 00000000 USBPD_IRQHandler
|
|
00000194 g F .text 0000000c .hidden __riscv_restore_3
|
|
00000b80 g F .text 0000000e SysTick_Handler
|
|
00000434 w .text 00000000 PVD_IRQHandler
|
|
00000180 g F .text 00000020 .hidden __riscv_restore_10
|
|
00000248 g F .text 00000002 NMI_Handler
|
|
00000434 w .text 00000000 EXTI3_IRQHandler
|
|
00000148 g F .text 00000028 .hidden __riscv_save_11
|
|
000004bc g F .text 00000006 DBGMCU_GetCHIPID
|
|
00000a62 g F .text 0000000a USART_GetFlagStatus
|
|
00001d94 g F .text 0000002a _fstat_r
|
|
200000cc g O .bss 00000004 errno
|
|
20000098 g .bss 00000000 _sbss
|
|
00000800 g *ABS* 00000000 __stack_size
|
|
00000c2e g F .text 00000054 USART_Printf_Init
|
|
00000434 w .text 00000000 USBFS_IRQHandler
|
|
00000194 g F .text 0000000c .hidden __riscv_restore_2
|
|
000011b2 g F .text 0000000a _cleanup_r
|
|
000005aa g F .text 0000012c GPIO_PinRemapConfig
|
|
00000434 w .text 00000000 EXTI0_IRQHandler
|
|
00000434 w .text 00000000 I2C2_EV_IRQHandler
|
|
00000434 w .text 00000000 LPTIM_IRQHandler
|
|
00000df6 g F .text 0000000a puts
|
|
20000080 g O .data 00000004 SystemCoreClock
|
|
00000a5a g F .text 00000008 USART_ReceiveData
|
|
00001e66 g F .text 0000000c _fstat
|
|
00000004 g .init 00000000 _einit
|
|
00000976 g F .text 0000000c TIM_ClearITPendingBit
|
|
00000140 g F .text 00000030 .hidden __riscv_save_12
|
|
000004ea g F .text 000000c0 GPIO_Init
|
|
00000434 w .text 00000000 Break_Point_Handler
|
|
00000180 g F .text 00000020 .hidden __riscv_restore_11
|
|
200000bc g O .bss 00000004 g_bat485_uart3_handle
|
|
200000a8 g O .bss 00000004 NVIC_Priority_Group
|
|
00000434 w .text 00000000 SPI1_IRQHandler
|
|
00000a3c g F .text 00000016 USART_Cmd
|
|
00001c6a g F .text 0000002a _sbrk_r
|
|
2000009c g O .bss 00000004 CHIPID
|
|
00000434 w .text 00000000 TAMPER_IRQHandler
|
|
00000170 g F .text 0000000c .hidden __riscv_save_1
|
|
00000194 g F .text 0000000c .hidden __riscv_restore_0
|
|
00001e2e g F .text 0000002c _read_r
|
|
00000156 g F .text 0000001a .hidden __riscv_save_7
|
|
00000434 w .text 00000000 Ecall_M_Mode_Handler
|
|
20004800 g .stack 00000000 _heap_end
|
|
00001e72 g F .text 0000000c _isatty
|
|
20000090 g O .data 00000004 _global_impure_ptr
|
|
0000018a g F .text 00000016 .hidden __riscv_restore_5
|
|
20000098 g O .bss 00000002 ADC_Trim
|
|
00000434 w .text 00000000 DMA1_Channel4_IRQHandler
|
|
00000cbc g F .text 00000026 _sbrk
|
|
0000018a g F .text 00000016 .hidden __riscv_restore_6
|
|
00000ac2 g F .text 00000042 USART3_IRQHandler
|
|
000004e0 g F .text 0000000a EXTI_ClearITPendingBit
|
|
00000434 w .text 00000000 RTC_IRQHandler
|
|
200000d0 g .bss 00000000 _ebss
|
|
00000a6c g F .text 0000003c USART_GetITStatus
|
|
00000434 w .text 00000000 DMA1_Channel7_IRQHandler
|
|
200000ac g O .bss 00000001 USART3_Rbuffer
|
|
00000434 w .text 00000000 CAN1_RX1_IRQHandler
|
|
00000c0e g F .text 00000020 Delay_Init
|
|
00000940 g F .text 0000001e RCC_PB2PeriphClockCmd
|
|
000006d6 g F .text 0000018e GPIO_IPD_Unused
|
|
00000434 w .text 00000000 USBPDWakeUp_IRQHandler
|
|
00000434 w .text 00000000 TIM4_IRQHandler
|
|
00000148 g F .text 00000028 .hidden __riscv_save_9
|
|
00001ec8 g O .text 00000020 __sf_fake_stderr
|
|
00000156 g F .text 0000001a .hidden __riscv_save_4
|
|
00000434 w .text 00000000 I2C1_EV_IRQHandler
|
|
00000b04 g F .text 00000042 USART4_IRQHandler
|
|
0000095e g F .text 00000018 TIM_GetITStatus
|
|
0000086a g F .text 000000d6 RCC_GetClocksFreq
|
|
00000434 w .text 00000000 DMA1_Channel6_IRQHandler
|
|
00000bba g F .text 00000028 TimeSliceOffset_Produce
|
|
000015fa g F .text 00000040 __sfputs_r
|
|
200000a4 g O .bss 00000004 TS_Val
|
|
00001e12 g F .text 00000018 memchr
|
|
00000982 g F .text 000000ba USART_Init
|
|
00001456 g F .text 000000a8 _free_r
|
|
00000b46 g F .text 00000022 TIM3_IRQHandler
|
|
00000434 w .text 00000000 RCC_IRQHandler
|
|
00000170 g F .text 0000000c .hidden __riscv_save_3
|
|
00000434 w .text 00000000 TIM1_TRG_COM_IRQHandler
|
|
00000434 w .text 00000000 DMA1_Channel1_IRQHandler
|
|
00000000 g .init 00000000 _start
|
|
00001e7e g F .text 0000000c _lseek
|
|
00000aba g F .text 00000008 EXTI15_10_IRQHandler
|
|
00000434 w .text 00000000 ADC_IRQHandler
|
|
200000a0 g O .bss 00000004 OPA_Trim
|
|
00000434 w .text 00000000 DMA1_Channel8_IRQHandler
|
|
00001d6c g F .text 00000028 _close_r
|
|
20000000 g .dalign 00000000 _data_vma
|
|
00000ebc g F .text 000000fc __swsetup_r
|
|
00000434 w .text 00000000 EXTI9_5_IRQHandler
|
|
00001268 g F .text 0000009c __sfp
|
|
00000148 g F .text 00000028 .hidden __riscv_save_10
|
|
00001c94 g F .text 0000002c __sread
|
|
00001e2a g F .text 00000002 __malloc_lock
|
|
0000018a g F .text 00000016 .hidden __riscv_restore_4
|
|
00000180 g F .text 00000020 .hidden __riscv_restore_8
|
|
000010e8 g F .text 00000064 _fflush_r
|
|
00000156 g F .text 0000001a .hidden __riscv_save_6
|
|
000004c2 g F .text 0000001e EXTI_GetITStatus
|
|
00000434 w .text 00000000 SPI2_IRQHandler
|
|
00001ee8 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
|
|
0000024c g F .text 00000040 main
|
|
00001d38 g F .text 00000006 __sclose
|
|
000014fe g F .text 000000d4 _malloc_r
|
|
00000434 w .text 00000000 DMA1_Channel5_IRQHandler
|
|
00000434 w .text 00000000 EXTI4_IRQHandler
|
|
00000434 w .text 00000000 USB_LP_CAN1_RX0_IRQHandler
|
|
0000028c g F .text 00000104 SystemInit
|
|
00000ce2 g F .text 00000040 iprintf
|
|
200000b0 g O .bss 00000001 USART4_Rbuffer
|
|
00000434 w .text 00000000 USB_HP_CAN1_TX_IRQHandler
|
|
00000000 g .init 00000000 _sinit
|
|
00000434 w .text 00000000 CMPWakeUp_IRQHandler
|
|
00001d3e g F .text 0000002e _write_r
|
|
00000434 w .text 00000000 DMA1_Channel3_IRQHandler
|
|
000018be g F .text 0000010c _printf_common
|
|
2000008c g O .data 00000004 _impure_ptr
|
|
00000b8e g F .text 0000002c TIM1_UP_IRQHandler
|
|
00000fb8 g F .text 00000130 __sflush_r
|
|
00000434 w .text 00000000 LPTIMWakeUp_IRQHandler
|
|
00000434 w .text 00000000 WWDG_IRQHandler
|
|
00000434 w .text 00000000 Ecall_U_Mode_Handler
|
|
00000b68 g F .text 00000018 TIM2_IRQHandler
|
|
20005000 g .stack 00000000 _eusrstack
|
|
00000170 g F .text 0000000c .hidden __riscv_save_2
|
|
00000434 w .text 00000000 SW_Handler
|
|
00000434 w .text 00000000 TIM1_BRK_IRQHandler
|
|
0000136e g F .text 00000058 __swhatbuf_r
|
|
00000a52 g F .text 00000008 USART_SendData
|
|
00000434 w .text 00000000 OPA_IRQHandler
|
|
00000434 w .text 00000000 EXTI1_IRQHandler
|
|
00000156 g F .text 0000001a .hidden __riscv_save_5
|
|
00000c82 g F .text 0000003a _write
|
|
20000098 g .data 00000000 _edata
|
|
200000d0 g .bss 00000000 _end
|
|
00000434 w .text 00000000 RTCAlarm_IRQHandler
|
|
00001f64 g .dlalign 00000000 _data_lma
|
|
00000434 w .text 00000000 USART2_IRQHandler
|
|
00001cc0 g F .text 00000048 __swrite
|
|
0000163a g F .text 00000284 _vfiprintf_r
|
|
00001304 g F .text 0000006a _fwalk_reent
|
|
00000390 g F .text 000000a4 SystemCoreClockUpdate
|
|
00000434 w .text 00000000 I2C2_ER_IRQHandler
|
|
00000434 w .text 00000000 DMA1_Channel2_IRQHandler
|
|
00001f08 g O .text 00000020 __sf_fake_stdout
|
|
20000000 g O .data 00000010 HBPrescTable
|
|
0000017c g F .text 00000024 .hidden __riscv_restore_12
|
|
00001e8a g F .text 0000000c _read
|
|
00000436 w .text 00000000 handle_reset
|
|
00000434 w .text 00000000 CAN1_SCE_IRQHandler
|
|
00000434 w .text 00000000 FLASH_IRQHandler
|
|
00000170 g F .text 0000000c .hidden __riscv_save_0
|
|
00000434 w .text 00000000 USBFSWakeUp_IRQHandler
|
|
00000434 w .text 00000000 USART1_IRQHandler
|
|
000013c6 g F .text 00000090 __smakebuf_r
|
|
000019ca g F .text 000002a0 _printf_i
|
|
200000c8 g O .bss 00000004 __malloc_sbrk_start
|
|
00000434 w .text 00000000 I2C1_ER_IRQHandler
|
|
00000864 g F .text 00000006 NVIC_PriorityGroupConfig
|
|
00000434 w .text 00000000 TKeyWakeUp_IRQHandler
|
|
200000c4 g O .bss 00000004 __malloc_free_list
|
|
00000194 g F .text 0000000c .hidden __riscv_restore_1
|
|
200000c0 g O .bss 00000004 g_gw485_uart4_handle
|
|
0000163a g F .text 00000284 _vfprintf_r
|
|
00001e5a g F .text 0000000c _close
|
|
|
|
|
|
|
|
Disassembly of section .init:
|
|
|
|
00000000 <_sinit>:
|
|
0: 4360006f j 436 <handle_reset>
|
|
|
|
Disassembly of section .vector:
|
|
|
|
00000004 <_vector_base>:
|
|
...
|
|
c: 0248 addi a0,sp,260
|
|
e: 0000 unimp
|
|
10: 024a slli tp,tp,0x12
|
|
12: 0000 unimp
|
|
14: 0000 unimp
|
|
16: 0000 unimp
|
|
18: 0434 addi a3,sp,520
|
|
...
|
|
22: 0000 unimp
|
|
24: 0434 addi a3,sp,520
|
|
26: 0000 unimp
|
|
28: 0434 addi a3,sp,520
|
|
...
|
|
32: 0000 unimp
|
|
34: 0b80 addi s0,sp,464
|
|
36: 0000 unimp
|
|
38: 0000 unimp
|
|
3a: 0000 unimp
|
|
3c: 0434 addi a3,sp,520
|
|
3e: 0000 unimp
|
|
40: 0000 unimp
|
|
42: 0000 unimp
|
|
44: 0434 addi a3,sp,520
|
|
46: 0000 unimp
|
|
48: 0434 addi a3,sp,520
|
|
4a: 0000 unimp
|
|
4c: 0434 addi a3,sp,520
|
|
4e: 0000 unimp
|
|
50: 0434 addi a3,sp,520
|
|
52: 0000 unimp
|
|
54: 0434 addi a3,sp,520
|
|
56: 0000 unimp
|
|
58: 0434 addi a3,sp,520
|
|
5a: 0000 unimp
|
|
5c: 0434 addi a3,sp,520
|
|
5e: 0000 unimp
|
|
60: 0434 addi a3,sp,520
|
|
62: 0000 unimp
|
|
64: 0aa8 addi a0,sp,344
|
|
66: 0000 unimp
|
|
68: 0434 addi a3,sp,520
|
|
6a: 0000 unimp
|
|
6c: 0434 addi a3,sp,520
|
|
6e: 0000 unimp
|
|
70: 0434 addi a3,sp,520
|
|
72: 0000 unimp
|
|
74: 0434 addi a3,sp,520
|
|
76: 0000 unimp
|
|
78: 0434 addi a3,sp,520
|
|
7a: 0000 unimp
|
|
7c: 0434 addi a3,sp,520
|
|
7e: 0000 unimp
|
|
80: 0434 addi a3,sp,520
|
|
82: 0000 unimp
|
|
84: 0434 addi a3,sp,520
|
|
86: 0000 unimp
|
|
88: 0434 addi a3,sp,520
|
|
8a: 0000 unimp
|
|
8c: 0434 addi a3,sp,520
|
|
8e: 0000 unimp
|
|
90: 0434 addi a3,sp,520
|
|
92: 0000 unimp
|
|
94: 0434 addi a3,sp,520
|
|
96: 0000 unimp
|
|
98: 0434 addi a3,sp,520
|
|
9a: 0000 unimp
|
|
9c: 0434 addi a3,sp,520
|
|
9e: 0000 unimp
|
|
a0: 0434 addi a3,sp,520
|
|
a2: 0000 unimp
|
|
a4: 0434 addi a3,sp,520
|
|
a6: 0000 unimp
|
|
a8: 0b8e slli s7,s7,0x3
|
|
aa: 0000 unimp
|
|
ac: 0434 addi a3,sp,520
|
|
ae: 0000 unimp
|
|
b0: 0434 addi a3,sp,520
|
|
b2: 0000 unimp
|
|
b4: 0b68 addi a0,sp,412
|
|
b6: 0000 unimp
|
|
b8: 0b46 slli s6,s6,0x11
|
|
ba: 0000 unimp
|
|
bc: 0434 addi a3,sp,520
|
|
be: 0000 unimp
|
|
c0: 0434 addi a3,sp,520
|
|
c2: 0000 unimp
|
|
c4: 0434 addi a3,sp,520
|
|
c6: 0000 unimp
|
|
c8: 0434 addi a3,sp,520
|
|
ca: 0000 unimp
|
|
cc: 0434 addi a3,sp,520
|
|
ce: 0000 unimp
|
|
d0: 0434 addi a3,sp,520
|
|
d2: 0000 unimp
|
|
d4: 0434 addi a3,sp,520
|
|
d6: 0000 unimp
|
|
d8: 0434 addi a3,sp,520
|
|
da: 0000 unimp
|
|
dc: 0434 addi a3,sp,520
|
|
de: 0000 unimp
|
|
e0: 0ac2 slli s5,s5,0x10
|
|
e2: 0000 unimp
|
|
e4: 0aba slli s5,s5,0xe
|
|
e6: 0000 unimp
|
|
e8: 0434 addi a3,sp,520
|
|
ea: 0000 unimp
|
|
ec: 0434 addi a3,sp,520
|
|
ee: 0000 unimp
|
|
f0: 0434 addi a3,sp,520
|
|
f2: 0000 unimp
|
|
f4: 0434 addi a3,sp,520
|
|
f6: 0000 unimp
|
|
f8: 0b04 addi s1,sp,400
|
|
fa: 0000 unimp
|
|
fc: 0434 addi a3,sp,520
|
|
fe: 0000 unimp
|
|
100: 0434 addi a3,sp,520
|
|
102: 0000 unimp
|
|
104: 0434 addi a3,sp,520
|
|
106: 0000 unimp
|
|
108: 0434 addi a3,sp,520
|
|
10a: 0000 unimp
|
|
10c: 0434 addi a3,sp,520
|
|
10e: 0000 unimp
|
|
110: 0434 addi a3,sp,520
|
|
112: 0000 unimp
|
|
114: 0434 addi a3,sp,520
|
|
...
|
|
|
|
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 <NMI_Handler>:
|
|
248: a001 j 248 <NMI_Handler>
|
|
|
|
0000024a <HardFault_Handler>:
|
|
24a: a001 j 24a <HardFault_Handler>
|
|
|
|
0000024c <main>:
|
|
24c: f25ff2ef jal t0,170 <__riscv_save_0>
|
|
250: 4505 li a0,1
|
|
252: 2d09 jal 864 <NVIC_PriorityGroupConfig>
|
|
254: 2a35 jal 390 <SystemCoreClockUpdate>
|
|
256: 1b9000ef jal ra,c0e <Delay_Init>
|
|
25a: 6571 lui a0,0x1c
|
|
25c: 20050513 addi a0,a0,512 # 1c200 <_data_lma+0x1a29c>
|
|
260: 1cf000ef jal ra,c2e <USART_Printf_Init>
|
|
264: 200007b7 lui a5,0x20000
|
|
268: 0807a583 lw a1,128(a5) # 20000080 <SystemCoreClock>
|
|
26c: 00002537 lui a0,0x2
|
|
270: e9850513 addi a0,a0,-360 # 1e98 <_read+0xe>
|
|
274: 26f000ef jal ra,ce2 <iprintf>
|
|
278: 2491 jal 4bc <DBGMCU_GetCHIPID>
|
|
27a: 85aa mv a1,a0
|
|
27c: 00002537 lui a0,0x2
|
|
280: ea850513 addi a0,a0,-344 # 1ea8 <_read+0x1e>
|
|
284: 25f000ef jal ra,ce2 <iprintf>
|
|
288: 4501 li a0,0
|
|
28a: b729 j 194 <__riscv_restore_0>
|
|
|
|
0000028c <SystemInit>:
|
|
28c: ee5ff2ef jal t0,170 <__riscv_save_0>
|
|
290: 40021437 lui s0,0x40021
|
|
294: 401c lw a5,0(s0)
|
|
296: 08ff0737 lui a4,0x8ff0
|
|
29a: 1141 addi sp,sp,-16
|
|
29c: 0017e793 ori a5,a5,1
|
|
2a0: c01c sw a5,0(s0)
|
|
2a2: 405c lw a5,4(s0)
|
|
2a4: 8ff9 and a5,a5,a4
|
|
2a6: c05c sw a5,4(s0)
|
|
2a8: 401c lw a5,0(s0)
|
|
2aa: fef70737 lui a4,0xfef70
|
|
2ae: 176d addi a4,a4,-5
|
|
2b0: 8ff9 and a5,a5,a4
|
|
2b2: c01c sw a5,0(s0)
|
|
2b4: 401c lw a5,0(s0)
|
|
2b6: fffc0737 lui a4,0xfffc0
|
|
2ba: 177d addi a4,a4,-1
|
|
2bc: 8ff9 and a5,a5,a4
|
|
2be: c01c sw a5,0(s0)
|
|
2c0: 405c lw a5,4(s0)
|
|
2c2: ff010737 lui a4,0xff010
|
|
2c6: 177d addi a4,a4,-1
|
|
2c8: 8ff9 and a5,a5,a4
|
|
2ca: c05c sw a5,4(s0)
|
|
2cc: 009f07b7 lui a5,0x9f0
|
|
2d0: c41c sw a5,8(s0)
|
|
2d2: 2111 jal 6d6 <GPIO_IPD_Unused>
|
|
2d4: c402 sw zero,8(sp)
|
|
2d6: c602 sw zero,12(sp)
|
|
2d8: 400227b7 lui a5,0x40022
|
|
2dc: 4705 li a4,1
|
|
2de: c398 sw a4,0(a5)
|
|
2e0: 401c lw a5,0(s0)
|
|
2e2: 6741 lui a4,0x10
|
|
2e4: 400216b7 lui a3,0x40021
|
|
2e8: 8fd9 or a5,a5,a4
|
|
2ea: c01c sw a5,0(s0)
|
|
2ec: 00020637 lui a2,0x20
|
|
2f0: 6705 lui a4,0x1
|
|
2f2: 429c lw a5,0(a3)
|
|
2f4: 8ff1 and a5,a5,a2
|
|
2f6: c63e sw a5,12(sp)
|
|
2f8: 47a2 lw a5,8(sp)
|
|
2fa: 0785 addi a5,a5,1
|
|
2fc: c43e sw a5,8(sp)
|
|
2fe: 47b2 lw a5,12(sp)
|
|
300: e781 bnez a5,308 <SystemInit+0x7c>
|
|
302: 47a2 lw a5,8(sp)
|
|
304: fee797e3 bne a5,a4,2f2 <SystemInit+0x66>
|
|
308: 400217b7 lui a5,0x40021
|
|
30c: 439c lw a5,0(a5)
|
|
30e: 00e79713 slli a4,a5,0xe
|
|
312: 06075763 bgez a4,380 <SystemInit+0xf4>
|
|
316: 4785 li a5,1
|
|
318: c63e sw a5,12(sp)
|
|
31a: 4732 lw a4,12(sp)
|
|
31c: 4785 li a5,1
|
|
31e: 06f71363 bne a4,a5,384 <SystemInit+0xf8>
|
|
322: 400217b7 lui a5,0x40021
|
|
326: 43d8 lw a4,4(a5)
|
|
328: ffc106b7 lui a3,0xffc10
|
|
32c: 16fd addi a3,a3,-1
|
|
32e: c3d8 sw a4,4(a5)
|
|
330: 43d8 lw a4,4(a5)
|
|
332: c3d8 sw a4,4(a5)
|
|
334: 43d8 lw a4,4(a5)
|
|
336: 40076713 ori a4,a4,1024
|
|
33a: c3d8 sw a4,4(a5)
|
|
33c: 43d8 lw a4,4(a5)
|
|
33e: 8f75 and a4,a4,a3
|
|
340: c3d8 sw a4,4(a5)
|
|
342: 43d8 lw a4,4(a5)
|
|
344: 001106b7 lui a3,0x110
|
|
348: 8f55 or a4,a4,a3
|
|
34a: c3d8 sw a4,4(a5)
|
|
34c: 4398 lw a4,0(a5)
|
|
34e: 010006b7 lui a3,0x1000
|
|
352: 8f55 or a4,a4,a3
|
|
354: c398 sw a4,0(a5)
|
|
356: 4398 lw a4,0(a5)
|
|
358: 00671693 slli a3,a4,0x6
|
|
35c: fe06dde3 bgez a3,356 <SystemInit+0xca>
|
|
360: 43d8 lw a4,4(a5)
|
|
362: 400216b7 lui a3,0x40021
|
|
366: 9b71 andi a4,a4,-4
|
|
368: c3d8 sw a4,4(a5)
|
|
36a: 43d8 lw a4,4(a5)
|
|
36c: 00276713 ori a4,a4,2
|
|
370: c3d8 sw a4,4(a5)
|
|
372: 4721 li a4,8
|
|
374: 42dc lw a5,4(a3)
|
|
376: 8bb1 andi a5,a5,12
|
|
378: fee79ee3 bne a5,a4,374 <SystemInit+0xe8>
|
|
37c: 0141 addi sp,sp,16
|
|
37e: bd19 j 194 <__riscv_restore_0>
|
|
380: c602 sw zero,12(sp)
|
|
382: bf61 j 31a <SystemInit+0x8e>
|
|
384: 40022737 lui a4,0x40022
|
|
388: 431c lw a5,0(a4)
|
|
38a: 9bf1 andi a5,a5,-4
|
|
38c: c31c sw a5,0(a4)
|
|
38e: b7fd j 37c <SystemInit+0xf0>
|
|
|
|
00000390 <SystemCoreClockUpdate>:
|
|
390: 400216b7 lui a3,0x40021
|
|
394: 42dc lw a5,4(a3)
|
|
396: 20000737 lui a4,0x20000
|
|
39a: 4611 li a2,4
|
|
39c: 8bb1 andi a5,a5,12
|
|
39e: 08070713 addi a4,a4,128 # 20000080 <SystemCoreClock>
|
|
3a2: 02c78f63 beq a5,a2,3e0 <SystemCoreClockUpdate+0x50>
|
|
3a6: 4621 li a2,8
|
|
3a8: 04c78163 beq a5,a2,3ea <SystemCoreClockUpdate+0x5a>
|
|
3ac: eb95 bnez a5,3e0 <SystemCoreClockUpdate+0x50>
|
|
3ae: 429c lw a5,0(a3)
|
|
3b0: 8b91 andi a5,a5,4
|
|
3b2: c79d beqz a5,3e0 <SystemCoreClockUpdate+0x50>
|
|
3b4: 000f47b7 lui a5,0xf4
|
|
3b8: 24078793 addi a5,a5,576 # f4240 <_data_lma+0xf22dc>
|
|
3bc: c31c sw a5,0(a4)
|
|
3be: 400217b7 lui a5,0x40021
|
|
3c2: 43dc lw a5,4(a5)
|
|
3c4: 8391 srli a5,a5,0x4
|
|
3c6: 00f7f693 andi a3,a5,15
|
|
3ca: 200007b7 lui a5,0x20000
|
|
3ce: 00078793 mv a5,a5
|
|
3d2: 97b6 add a5,a5,a3
|
|
3d4: 2394 lbu a3,0(a5)
|
|
3d6: 431c lw a5,0(a4)
|
|
3d8: 00d7d7b3 srl a5,a5,a3
|
|
3dc: c31c sw a5,0(a4)
|
|
3de: 8082 ret
|
|
3e0: 007a17b7 lui a5,0x7a1
|
|
3e4: 20078793 addi a5,a5,512 # 7a1200 <_data_lma+0x79f29c>
|
|
3e8: bfd1 j 3bc <SystemCoreClockUpdate+0x2c>
|
|
3ea: 42dc lw a5,4(a3)
|
|
3ec: 42d4 lw a3,4(a3)
|
|
3ee: 6641 lui a2,0x10
|
|
3f0: 83c9 srli a5,a5,0x12
|
|
3f2: 8bbd andi a5,a5,15
|
|
3f4: 8ef1 and a3,a3,a2
|
|
3f6: 0789 addi a5,a5,2
|
|
3f8: 4645 li a2,17
|
|
3fa: 00c79363 bne a5,a2,400 <SystemCoreClockUpdate+0x70>
|
|
3fe: 47c9 li a5,18
|
|
400: ee81 bnez a3,418 <SystemCoreClockUpdate+0x88>
|
|
402: 400246b7 lui a3,0x40024
|
|
406: 8006a683 lw a3,-2048(a3) # 40023800 <_eusrstack+0x2001e800>
|
|
40a: 8ac1 andi a3,a3,16
|
|
40c: ce89 beqz a3,426 <SystemCoreClockUpdate+0x96>
|
|
40e: 007a16b7 lui a3,0x7a1
|
|
412: 20068693 addi a3,a3,512 # 7a1200 <_data_lma+0x79f29c>
|
|
416: a821 j 42e <SystemCoreClockUpdate+0x9e>
|
|
418: 400216b7 lui a3,0x40021
|
|
41c: 42d4 lw a3,4(a3)
|
|
41e: 00e69613 slli a2,a3,0xe
|
|
422: fe0656e3 bgez a2,40e <SystemCoreClockUpdate+0x7e>
|
|
426: 003d16b7 lui a3,0x3d1
|
|
42a: 90068693 addi a3,a3,-1792 # 3d0900 <_data_lma+0x3ce99c>
|
|
42e: 02d787b3 mul a5,a5,a3
|
|
432: b769 j 3bc <SystemCoreClockUpdate+0x2c>
|
|
|
|
00000434 <ADC_IRQHandler>:
|
|
434: a001 j 434 <ADC_IRQHandler>
|
|
|
|
00000436 <handle_reset>:
|
|
436: 20000197 auipc gp,0x20000
|
|
43a: 44a18193 addi gp,gp,1098 # 20000880 <__global_pointer$>
|
|
43e: 20005117 auipc sp,0x20005
|
|
442: bc210113 addi sp,sp,-1086 # 20005000 <_eusrstack>
|
|
446: 00002517 auipc a0,0x2
|
|
44a: b1e50513 addi a0,a0,-1250 # 1f64 <_data_lma>
|
|
44e: 20000597 auipc a1,0x20000
|
|
452: bb258593 addi a1,a1,-1102 # 20000000 <_data_vma>
|
|
456: 81818613 addi a2,gp,-2024 # 20000098 <_edata>
|
|
45a: 00c5fa63 bgeu a1,a2,46e <handle_reset+0x38>
|
|
45e: 00052283 lw t0,0(a0)
|
|
462: 0055a023 sw t0,0(a1)
|
|
466: 0511 addi a0,a0,4
|
|
468: 0591 addi a1,a1,4
|
|
46a: fec5eae3 bltu a1,a2,45e <handle_reset+0x28>
|
|
46e: 81818513 addi a0,gp,-2024 # 20000098 <_edata>
|
|
472: 85018593 addi a1,gp,-1968 # 200000d0 <_ebss>
|
|
476: 00b57763 bgeu a0,a1,484 <handle_reset+0x4e>
|
|
47a: 00052023 sw zero,0(a0)
|
|
47e: 0511 addi a0,a0,4
|
|
480: feb56de3 bltu a0,a1,47a <handle_reset+0x44>
|
|
484: 42fd li t0,31
|
|
486: bc029073 csrw 0xbc0,t0
|
|
48a: 428d li t0,3
|
|
48c: 80429073 csrw 0x804,t0
|
|
490: 08800293 li t0,136
|
|
494: 30029073 csrw mstatus,t0
|
|
498: 00000297 auipc t0,0x0
|
|
49c: b6c28293 addi t0,t0,-1172 # 4 <_einit>
|
|
4a0: 0032e293 ori t0,t0,3
|
|
4a4: 30529073 csrw mtvec,t0
|
|
4a8: de5ff0ef jal ra,28c <SystemInit>
|
|
4ac: 00000297 auipc t0,0x0
|
|
4b0: da028293 addi t0,t0,-608 # 24c <main>
|
|
4b4: 34129073 csrw mepc,t0
|
|
4b8: 30200073 mret
|
|
|
|
000004bc <DBGMCU_GetCHIPID>:
|
|
4bc: 81c1a503 lw a0,-2020(gp) # 2000009c <CHIPID>
|
|
4c0: 8082 ret
|
|
|
|
000004c2 <EXTI_GetITStatus>:
|
|
4c2: 400107b7 lui a5,0x40010
|
|
4c6: 40078713 addi a4,a5,1024 # 40010400 <_eusrstack+0x2000b400>
|
|
4ca: 4007a783 lw a5,1024(a5)
|
|
4ce: 4b58 lw a4,20(a4)
|
|
4d0: 8f69 and a4,a4,a0
|
|
4d2: c709 beqz a4,4dc <EXTI_GetITStatus+0x1a>
|
|
4d4: 8d7d and a0,a0,a5
|
|
4d6: 00a03533 snez a0,a0
|
|
4da: 8082 ret
|
|
4dc: 4501 li a0,0
|
|
4de: 8082 ret
|
|
|
|
000004e0 <EXTI_ClearITPendingBit>:
|
|
4e0: 400107b7 lui a5,0x40010
|
|
4e4: 40a7aa23 sw a0,1044(a5) # 40010414 <_eusrstack+0x2000b414>
|
|
4e8: 8082 ret
|
|
|
|
000004ea <GPIO_Init>:
|
|
4ea: 459c lw a5,8(a1)
|
|
4ec: 0107f713 andi a4,a5,16
|
|
4f0: 00f7f813 andi a6,a5,15
|
|
4f4: c701 beqz a4,4fc <GPIO_Init+0x12>
|
|
4f6: 41d8 lw a4,4(a1)
|
|
4f8: 00e86833 or a6,a6,a4
|
|
4fc: 218e lhu a1,0(a1)
|
|
4fe: 0ff5f713 andi a4,a1,255
|
|
502: c339 beqz a4,548 <GPIO_Init+0x5e>
|
|
504: 4118 lw a4,0(a0)
|
|
506: 4681 li a3,0
|
|
508: 4e85 li t4,1
|
|
50a: 4f3d li t5,15
|
|
50c: 02800f93 li t6,40
|
|
510: 04800293 li t0,72
|
|
514: 4e21 li t3,8
|
|
516: 00de9633 sll a2,t4,a3
|
|
51a: 00c5f8b3 and a7,a1,a2
|
|
51e: 03161163 bne a2,a7,540 <GPIO_Init+0x56>
|
|
522: 00269893 slli a7,a3,0x2
|
|
526: 011f1333 sll t1,t5,a7
|
|
52a: fff34313 not t1,t1
|
|
52e: 00e37733 and a4,t1,a4
|
|
532: 011818b3 sll a7,a6,a7
|
|
536: 00e8e733 or a4,a7,a4
|
|
53a: 05f79f63 bne a5,t6,598 <GPIO_Init+0xae>
|
|
53e: c950 sw a2,20(a0)
|
|
540: 0685 addi a3,a3,1
|
|
542: fdc69ae3 bne a3,t3,516 <GPIO_Init+0x2c>
|
|
546: c118 sw a4,0(a0)
|
|
548: 0ff00713 li a4,255
|
|
54c: 04b77563 bgeu a4,a1,596 <GPIO_Init+0xac>
|
|
550: 4154 lw a3,4(a0)
|
|
552: 4621 li a2,8
|
|
554: 4e85 li t4,1
|
|
556: 4f3d li t5,15
|
|
558: 02800f93 li t6,40
|
|
55c: 04800293 li t0,72
|
|
560: 4e41 li t3,16
|
|
562: 00ce98b3 sll a7,t4,a2
|
|
566: 0115f733 and a4,a1,a7
|
|
56a: 02e89263 bne a7,a4,58e <GPIO_Init+0xa4>
|
|
56e: 00261713 slli a4,a2,0x2
|
|
572: 1701 addi a4,a4,-32
|
|
574: 00ef1333 sll t1,t5,a4
|
|
578: fff34313 not t1,t1
|
|
57c: 00d376b3 and a3,t1,a3
|
|
580: 00e81733 sll a4,a6,a4
|
|
584: 8ed9 or a3,a3,a4
|
|
586: 01f79d63 bne a5,t6,5a0 <GPIO_Init+0xb6>
|
|
58a: 01152a23 sw a7,20(a0)
|
|
58e: 0605 addi a2,a2,1
|
|
590: fdc619e3 bne a2,t3,562 <GPIO_Init+0x78>
|
|
594: c154 sw a3,4(a0)
|
|
596: 8082 ret
|
|
598: fa5794e3 bne a5,t0,540 <GPIO_Init+0x56>
|
|
59c: c910 sw a2,16(a0)
|
|
59e: b74d j 540 <GPIO_Init+0x56>
|
|
5a0: fe5797e3 bne a5,t0,58e <GPIO_Init+0xa4>
|
|
5a4: 01152823 sw a7,16(a0)
|
|
5a8: b7dd j 58e <GPIO_Init+0xa4>
|
|
|
|
000005aa <GPIO_PinRemapConfig>:
|
|
5aa: c0000737 lui a4,0xc0000
|
|
5ae: 00e577b3 and a5,a0,a4
|
|
5b2: 08e79563 bne a5,a4,63c <GPIO_PinRemapConfig+0x92>
|
|
5b6: 40010737 lui a4,0x40010
|
|
5ba: 435c lw a5,4(a4)
|
|
5bc: 01b55693 srli a3,a0,0x1b
|
|
5c0: 4f58 lw a4,28(a4)
|
|
5c2: 8a9d andi a3,a3,7
|
|
5c4: e69d bnez a3,5f2 <GPIO_PinRemapConfig+0x48>
|
|
5c6: 9bf9 andi a5,a5,-2
|
|
5c8: ff0006b7 lui a3,0xff000
|
|
5cc: 16fd addi a3,a3,-1
|
|
5ce: 8f75 and a4,a4,a3
|
|
5d0: c989 beqz a1,5e2 <GPIO_PinRemapConfig+0x38>
|
|
5d2: 01051693 slli a3,a0,0x10
|
|
5d6: 82c1 srli a3,a3,0x10
|
|
5d8: 8fd5 or a5,a5,a3
|
|
5da: 01ff06b7 lui a3,0x1ff0
|
|
5de: 8d75 and a0,a0,a3
|
|
5e0: 8f49 or a4,a4,a0
|
|
5e2: 070006b7 lui a3,0x7000
|
|
5e6: 8fd5 or a5,a5,a3
|
|
5e8: 400106b7 lui a3,0x40010
|
|
5ec: c2dc sw a5,4(a3)
|
|
5ee: ced8 sw a4,28(a3)
|
|
5f0: 8082 ret
|
|
5f2: 4605 li a2,1
|
|
5f4: 00c69663 bne a3,a2,600 <GPIO_PinRemapConfig+0x56>
|
|
5f8: 9bf5 andi a5,a5,-3
|
|
5fa: ff8006b7 lui a3,0xff800
|
|
5fe: b7f9 j 5cc <GPIO_PinRemapConfig+0x22>
|
|
600: 4609 li a2,2
|
|
602: 00c69663 bne a3,a2,60e <GPIO_PinRemapConfig+0x64>
|
|
606: 9bed andi a5,a5,-5
|
|
608: ffe806b7 lui a3,0xffe80
|
|
60c: b7c1 j 5cc <GPIO_PinRemapConfig+0x22>
|
|
60e: 460d li a2,3
|
|
610: 00c69663 bne a3,a2,61c <GPIO_PinRemapConfig+0x72>
|
|
614: 9bdd andi a5,a5,-9
|
|
616: fffc06b7 lui a3,0xfffc0
|
|
61a: bf4d j 5cc <GPIO_PinRemapConfig+0x22>
|
|
61c: 4611 li a2,4
|
|
61e: 00c69763 bne a3,a2,62c <GPIO_PinRemapConfig+0x82>
|
|
622: f3f7f793 andi a5,a5,-193
|
|
626: ffc006b7 lui a3,0xffc00
|
|
62a: b74d j 5cc <GPIO_PinRemapConfig+0x22>
|
|
62c: 4615 li a2,5
|
|
62e: fac691e3 bne a3,a2,5d0 <GPIO_PinRemapConfig+0x26>
|
|
632: cff7f793 andi a5,a5,-769
|
|
636: ffe006b7 lui a3,0xffe00
|
|
63a: bf49 j 5cc <GPIO_PinRemapConfig+0x22>
|
|
63c: 40000737 lui a4,0x40000
|
|
640: 02e79163 bne a5,a4,662 <GPIO_PinRemapConfig+0xb8>
|
|
644: 400107b7 lui a5,0x40010
|
|
648: 4fd8 lw a4,28(a5)
|
|
64a: 0542 slli a0,a0,0x10
|
|
64c: 00a767b3 or a5,a4,a0
|
|
650: e589 bnez a1,65a <GPIO_PinRemapConfig+0xb0>
|
|
652: fff54513 not a0,a0
|
|
656: 00e577b3 and a5,a0,a4
|
|
65a: 40010737 lui a4,0x40010
|
|
65e: cf5c sw a5,28(a4)
|
|
660: 8082 ret
|
|
662: e3a9 bnez a5,6a4 <GPIO_PinRemapConfig+0xfa>
|
|
664: 40010837 lui a6,0x40010
|
|
668: 003007b7 lui a5,0x300
|
|
66c: 00482603 lw a2,4(a6) # 40010004 <_eusrstack+0x2000b004>
|
|
670: 01051713 slli a4,a0,0x10
|
|
674: 00f576b3 and a3,a0,a5
|
|
678: 8341 srli a4,a4,0x10
|
|
67a: 02f69663 bne a3,a5,6a6 <GPIO_PinRemapConfig+0xfc>
|
|
67e: f90006b7 lui a3,0xf9000
|
|
682: 16fd addi a3,a3,-1
|
|
684: 00d677b3 and a5,a2,a3
|
|
688: 00482603 lw a2,4(a6)
|
|
68c: 8ef1 and a3,a3,a2
|
|
68e: 00d82223 sw a3,4(a6)
|
|
692: c591 beqz a1,69e <GPIO_PinRemapConfig+0xf4>
|
|
694: 8155 srli a0,a0,0x15
|
|
696: 0512 slli a0,a0,0x4
|
|
698: 00a71533 sll a0,a4,a0
|
|
69c: 8fc9 or a5,a5,a0
|
|
69e: 40010737 lui a4,0x40010
|
|
6a2: c35c sw a5,4(a4)
|
|
6a4: 8082 ret
|
|
6a6: 00b51793 slli a5,a0,0xb
|
|
6aa: 0207d063 bgez a5,6ca <GPIO_PinRemapConfig+0x120>
|
|
6ae: 01055793 srli a5,a0,0x10
|
|
6b2: 00f7f693 andi a3,a5,15
|
|
6b6: 478d li a5,3
|
|
6b8: 00d797b3 sll a5,a5,a3
|
|
6bc: fff7c793 not a5,a5
|
|
6c0: 8ff1 and a5,a5,a2
|
|
6c2: 070006b7 lui a3,0x7000
|
|
6c6: 8fd5 or a5,a5,a3
|
|
6c8: b7e9 j 692 <GPIO_PinRemapConfig+0xe8>
|
|
6ca: 01555793 srli a5,a0,0x15
|
|
6ce: 0792 slli a5,a5,0x4
|
|
6d0: 00f717b3 sll a5,a4,a5
|
|
6d4: b7e5 j 6bc <GPIO_PinRemapConfig+0x112>
|
|
|
|
000006d6 <GPIO_IPD_Unused>:
|
|
6d6: a9bff2ef jal t0,170 <__riscv_save_0>
|
|
6da: 1ffff437 lui s0,0x1ffff
|
|
6de: 72442703 lw a4,1828(s0) # 1ffff724 <_data_lma+0x1fffd7c0>
|
|
6e2: 3e000637 lui a2,0x3e000
|
|
6e6: 1141 addi sp,sp,-16
|
|
6e8: 01971793 slli a5,a4,0x19
|
|
6ec: fff74693 not a3,a4
|
|
6f0: 8ff1 and a5,a5,a2
|
|
6f2: 0706 slli a4,a4,0x1
|
|
6f4: 003e0637 lui a2,0x3e0
|
|
6f8: 8f71 and a4,a4,a2
|
|
6fa: 8fd9 or a5,a5,a4
|
|
6fc: 01000637 lui a2,0x1000
|
|
700: 00969713 slli a4,a3,0x9
|
|
704: 8f71 and a4,a4,a2
|
|
706: 8fd9 or a5,a5,a4
|
|
708: 82bd srli a3,a3,0xf
|
|
70a: 6741 lui a4,0x10
|
|
70c: 8ef9 and a3,a3,a4
|
|
70e: 8fd5 or a5,a5,a3
|
|
710: c202 sw zero,4(sp)
|
|
712: c402 sw zero,8(sp)
|
|
714: c602 sw zero,12(sp)
|
|
716: 82f1a023 sw a5,-2016(gp) # 200000a0 <OPA_Trim>
|
|
71a: 72845703 lhu a4,1832(s0)
|
|
71e: 4585 li a1,1
|
|
720: 80e19c23 sh a4,-2024(gp) # 20000098 <_edata>
|
|
724: 72042703 lw a4,1824(s0)
|
|
728: 03d00513 li a0,61
|
|
72c: 82e1a223 sw a4,-2012(gp) # 200000a4 <TS_Val>
|
|
730: 70442703 lw a4,1796(s0)
|
|
734: 80e1ae23 sw a4,-2020(gp) # 2000009c <CHIPID>
|
|
738: 2421 jal 940 <RCC_PB2PeriphClockCmd>
|
|
73a: 70442783 lw a5,1796(s0)
|
|
73e: 103a0737 lui a4,0x103a0
|
|
742: 70070713 addi a4,a4,1792 # 103a0700 <_data_lma+0x1039e79c>
|
|
746: f0f7f793 andi a5,a5,-241
|
|
74a: 0ee78f63 beq a5,a4,848 <__stack_size+0x48>
|
|
74e: 02f76063 bltu a4,a5,76e <GPIO_IPD_Unused+0x98>
|
|
752: 10320737 lui a4,0x10320
|
|
756: 70070713 addi a4,a4,1792 # 10320700 <_data_lma+0x1031e79c>
|
|
75a: 04e78f63 beq a5,a4,7b8 <GPIO_IPD_Unused+0xe2>
|
|
75e: 10370737 lui a4,0x10370
|
|
762: 70070713 addi a4,a4,1792 # 10370700 <_data_lma+0x1036e79c>
|
|
766: 08e78663 beq a5,a4,7f2 <GPIO_IPD_Unused+0x11c>
|
|
76a: 0141 addi sp,sp,16
|
|
76c: b425 j 194 <__riscv_restore_0>
|
|
76e: 103b0737 lui a4,0x103b0
|
|
772: 70070713 addi a4,a4,1792 # 103b0700 <_data_lma+0x103ae79c>
|
|
776: 0ae78b63 beq a5,a4,82c <__stack_size+0x2c>
|
|
77a: 103d0737 lui a4,0x103d0
|
|
77e: 70070713 addi a4,a4,1792 # 103d0700 <_data_lma+0x103ce79c>
|
|
782: fee794e3 bne a5,a4,76a <GPIO_IPD_Unused+0x94>
|
|
786: 4585 li a1,1
|
|
788: 6521 lui a0,0x8
|
|
78a: 3505 jal 5aa <GPIO_PinRemapConfig>
|
|
78c: 400114b7 lui s1,0x40011
|
|
790: 77e1 lui a5,0xffff8
|
|
792: 04800413 li s0,72
|
|
796: 004c addi a1,sp,4
|
|
798: 80048513 addi a0,s1,-2048 # 40010800 <_eusrstack+0x2000b800>
|
|
79c: 827c sh a5,4(sp)
|
|
79e: c622 sw s0,12(sp)
|
|
7a0: 33a9 jal 4ea <GPIO_Init>
|
|
7a2: 6785 lui a5,0x1
|
|
7a4: 33c78793 addi a5,a5,828 # 133c <_fwalk_reent+0x38>
|
|
7a8: 004c addi a1,sp,4
|
|
7aa: c0048513 addi a0,s1,-1024
|
|
7ae: 827c sh a5,4(sp)
|
|
7b0: c622 sw s0,12(sp)
|
|
7b2: 3b25 jal 4ea <GPIO_Init>
|
|
7b4: 77f9 lui a5,0xffffe
|
|
7b6: a00d j 7d8 <GPIO_IPD_Unused+0x102>
|
|
7b8: 4585 li a1,1
|
|
7ba: 6521 lui a0,0x8
|
|
7bc: 33fd jal 5aa <GPIO_PinRemapConfig>
|
|
7be: 400114b7 lui s1,0x40011
|
|
7c2: e0000793 li a5,-512
|
|
7c6: 04800413 li s0,72
|
|
7ca: 004c addi a1,sp,4
|
|
7cc: c0048513 addi a0,s1,-1024 # 40010c00 <_eusrstack+0x2000bc00>
|
|
7d0: 827c sh a5,4(sp)
|
|
7d2: c622 sw s0,12(sp)
|
|
7d4: 3b19 jal 4ea <GPIO_Init>
|
|
7d6: 6789 lui a5,0x2
|
|
7d8: 004c addi a1,sp,4
|
|
7da: 40011537 lui a0,0x40011
|
|
7de: 827c sh a5,4(sp)
|
|
7e0: c622 sw s0,12(sp)
|
|
7e2: 3321 jal 4ea <GPIO_Init>
|
|
7e4: 478d li a5,3
|
|
7e6: 827c sh a5,4(sp)
|
|
7e8: c622 sw s0,12(sp)
|
|
7ea: 004c addi a1,sp,4
|
|
7ec: 40048513 addi a0,s1,1024
|
|
7f0: a825 j 828 <__stack_size+0x28>
|
|
7f2: 400114b7 lui s1,0x40011
|
|
7f6: 77e1 lui a5,0xffff8
|
|
7f8: 70078793 addi a5,a5,1792 # ffff8700 <_eusrstack+0xdfff3700>
|
|
7fc: 04800413 li s0,72
|
|
800: 004c addi a1,sp,4
|
|
802: 80048513 addi a0,s1,-2048 # 40010800 <_eusrstack+0x2000b800>
|
|
806: 827c sh a5,4(sp)
|
|
808: c622 sw s0,12(sp)
|
|
80a: 31c5 jal 4ea <GPIO_Init>
|
|
80c: e3d00793 li a5,-451
|
|
810: 004c addi a1,sp,4
|
|
812: c0048513 addi a0,s1,-1024
|
|
816: 827c sh a5,4(sp)
|
|
818: c622 sw s0,12(sp)
|
|
81a: 39c1 jal 4ea <GPIO_Init>
|
|
81c: 77f9 lui a5,0xffffe
|
|
81e: 827c sh a5,4(sp)
|
|
820: c622 sw s0,12(sp)
|
|
822: 004c addi a1,sp,4
|
|
824: 40011537 lui a0,0x40011
|
|
828: 31c9 jal 4ea <GPIO_Init>
|
|
82a: b781 j 76a <GPIO_IPD_Unused+0x94>
|
|
82c: 400114b7 lui s1,0x40011
|
|
830: 77e1 lui a5,0xffff8
|
|
832: 04800413 li s0,72
|
|
836: 004c addi a1,sp,4
|
|
838: 80048513 addi a0,s1,-2048 # 40010800 <_eusrstack+0x2000b800>
|
|
83c: 827c sh a5,4(sp)
|
|
83e: c622 sw s0,12(sp)
|
|
840: 316d jal 4ea <GPIO_Init>
|
|
842: 20400793 li a5,516
|
|
846: b78d j 7a8 <GPIO_IPD_Unused+0xd2>
|
|
848: 400114b7 lui s1,0x40011
|
|
84c: 77e1 lui a5,0xffff8
|
|
84e: 04800413 li s0,72
|
|
852: 004c addi a1,sp,4
|
|
854: 80048513 addi a0,s1,-2048 # 40010800 <_eusrstack+0x2000b800>
|
|
858: 827c sh a5,4(sp)
|
|
85a: c622 sw s0,12(sp)
|
|
85c: 3179 jal 4ea <GPIO_Init>
|
|
85e: 6789 lui a5,0x2
|
|
860: 17f5 addi a5,a5,-3
|
|
862: b799 j 7a8 <GPIO_IPD_Unused+0xd2>
|
|
|
|
00000864 <NVIC_PriorityGroupConfig>:
|
|
864: 82a1a423 sw a0,-2008(gp) # 200000a8 <NVIC_Priority_Group>
|
|
868: 8082 ret
|
|
|
|
0000086a <RCC_GetClocksFreq>:
|
|
86a: 40021737 lui a4,0x40021
|
|
86e: 435c lw a5,4(a4)
|
|
870: 4691 li a3,4
|
|
872: 8bb1 andi a5,a5,12
|
|
874: 06d78c63 beq a5,a3,8ec <RCC_GetClocksFreq+0x82>
|
|
878: 46a1 li a3,8
|
|
87a: 06d78e63 beq a5,a3,8f6 <RCC_GetClocksFreq+0x8c>
|
|
87e: e7bd bnez a5,8ec <RCC_GetClocksFreq+0x82>
|
|
880: 431c lw a5,0(a4)
|
|
882: 8b91 andi a5,a5,4
|
|
884: c7a5 beqz a5,8ec <RCC_GetClocksFreq+0x82>
|
|
886: 000f47b7 lui a5,0xf4
|
|
88a: 24078793 addi a5,a5,576 # f4240 <_data_lma+0xf22dc>
|
|
88e: c11c sw a5,0(a0)
|
|
890: 40021637 lui a2,0x40021
|
|
894: 425c lw a5,4(a2)
|
|
896: 20000737 lui a4,0x20000
|
|
89a: 01070713 addi a4,a4,16 # 20000010 <PBHBPrescTable>
|
|
89e: 8391 srli a5,a5,0x4
|
|
8a0: 8bbd andi a5,a5,15
|
|
8a2: 97ba add a5,a5,a4
|
|
8a4: 2394 lbu a3,0(a5)
|
|
8a6: 411c lw a5,0(a0)
|
|
8a8: 00d7d7b3 srl a5,a5,a3
|
|
8ac: c15c sw a5,4(a0)
|
|
8ae: 4254 lw a3,4(a2)
|
|
8b0: 82a1 srli a3,a3,0x8
|
|
8b2: 8a9d andi a3,a3,7
|
|
8b4: 96ba add a3,a3,a4
|
|
8b6: 2294 lbu a3,0(a3)
|
|
8b8: 00d7d6b3 srl a3,a5,a3
|
|
8bc: c514 sw a3,8(a0)
|
|
8be: 4254 lw a3,4(a2)
|
|
8c0: 82ad srli a3,a3,0xb
|
|
8c2: 8a9d andi a3,a3,7
|
|
8c4: 9736 add a4,a4,a3
|
|
8c6: 2314 lbu a3,0(a4)
|
|
8c8: 00d7d6b3 srl a3,a5,a3
|
|
8cc: c554 sw a3,12(a0)
|
|
8ce: 4258 lw a4,4(a2)
|
|
8d0: 00074c63 bltz a4,8e8 <RCC_GetClocksFreq+0x7e>
|
|
8d4: 425c lw a5,4(a2)
|
|
8d6: 83b9 srli a5,a5,0xe
|
|
8d8: 0037f713 andi a4,a5,3
|
|
8dc: 80418793 addi a5,gp,-2044 # 20000084 <ADCPrescTable>
|
|
8e0: 97ba add a5,a5,a4
|
|
8e2: 239c lbu a5,0(a5)
|
|
8e4: 02f6d7b3 divu a5,a3,a5
|
|
8e8: c91c sw a5,16(a0)
|
|
8ea: 8082 ret
|
|
8ec: 007a17b7 lui a5,0x7a1
|
|
8f0: 20078793 addi a5,a5,512 # 7a1200 <_data_lma+0x79f29c>
|
|
8f4: bf69 j 88e <RCC_GetClocksFreq+0x24>
|
|
8f6: 435c lw a5,4(a4)
|
|
8f8: 4358 lw a4,4(a4)
|
|
8fa: 66c1 lui a3,0x10
|
|
8fc: 83c9 srli a5,a5,0x12
|
|
8fe: 8bbd andi a5,a5,15
|
|
900: 8f75 and a4,a4,a3
|
|
902: 0789 addi a5,a5,2
|
|
904: 46c5 li a3,17
|
|
906: 00d79363 bne a5,a3,90c <RCC_GetClocksFreq+0xa2>
|
|
90a: 47c9 li a5,18
|
|
90c: ef01 bnez a4,924 <RCC_GetClocksFreq+0xba>
|
|
90e: 40024737 lui a4,0x40024
|
|
912: 80072703 lw a4,-2048(a4) # 40023800 <_eusrstack+0x2001e800>
|
|
916: 8b41 andi a4,a4,16
|
|
918: cf09 beqz a4,932 <RCC_GetClocksFreq+0xc8>
|
|
91a: 007a1737 lui a4,0x7a1
|
|
91e: 20070713 addi a4,a4,512 # 7a1200 <_data_lma+0x79f29c>
|
|
922: a821 j 93a <RCC_GetClocksFreq+0xd0>
|
|
924: 40021737 lui a4,0x40021
|
|
928: 4358 lw a4,4(a4)
|
|
92a: 00e71693 slli a3,a4,0xe
|
|
92e: fe06d6e3 bgez a3,91a <RCC_GetClocksFreq+0xb0>
|
|
932: 003d1737 lui a4,0x3d1
|
|
936: 90070713 addi a4,a4,-1792 # 3d0900 <_data_lma+0x3ce99c>
|
|
93a: 02e787b3 mul a5,a5,a4
|
|
93e: bf81 j 88e <RCC_GetClocksFreq+0x24>
|
|
|
|
00000940 <RCC_PB2PeriphClockCmd>:
|
|
940: c599 beqz a1,94e <RCC_PB2PeriphClockCmd+0xe>
|
|
942: 40021737 lui a4,0x40021
|
|
946: 4f1c lw a5,24(a4)
|
|
948: 8d5d or a0,a0,a5
|
|
94a: cf08 sw a0,24(a4)
|
|
94c: 8082 ret
|
|
94e: 400217b7 lui a5,0x40021
|
|
952: 4f98 lw a4,24(a5)
|
|
954: fff54513 not a0,a0
|
|
958: 8d79 and a0,a0,a4
|
|
95a: cf88 sw a0,24(a5)
|
|
95c: 8082 ret
|
|
|
|
0000095e <TIM_GetITStatus>:
|
|
95e: 291e lhu a5,16(a0)
|
|
960: 254a lhu a0,12(a0)
|
|
962: 8fed and a5,a5,a1
|
|
964: 0542 slli a0,a0,0x10
|
|
966: 8141 srli a0,a0,0x10
|
|
968: c789 beqz a5,972 <TIM_GetITStatus+0x14>
|
|
96a: 8d6d and a0,a0,a1
|
|
96c: 00a03533 snez a0,a0
|
|
970: 8082 ret
|
|
972: 4501 li a0,0
|
|
974: 8082 ret
|
|
|
|
00000976 <TIM_ClearITPendingBit>:
|
|
976: fff5c593 not a1,a1
|
|
97a: 05c2 slli a1,a1,0x10
|
|
97c: 81c1 srli a1,a1,0x10
|
|
97e: a90e sh a1,16(a0)
|
|
980: 8082 ret
|
|
|
|
00000982 <USART_Init>:
|
|
982: feeff2ef jal t0,170 <__riscv_save_0>
|
|
986: 2916 lhu a3,16(a0)
|
|
988: 77f5 lui a5,0xffffd
|
|
98a: 17fd addi a5,a5,-1
|
|
98c: 8ff5 and a5,a5,a3
|
|
98e: 21f6 lhu a3,6(a1)
|
|
990: 25da lhu a4,12(a1)
|
|
992: 7179 addi sp,sp,-48
|
|
994: 8fd5 or a5,a5,a3
|
|
996: a91e sh a5,16(a0)
|
|
998: 2556 lhu a3,12(a0)
|
|
99a: 77fd lui a5,0xfffff
|
|
99c: 9f378793 addi a5,a5,-1549 # ffffe9f3 <_eusrstack+0xdfff99f3>
|
|
9a0: 8ff5 and a5,a5,a3
|
|
9a2: 21d6 lhu a3,4(a1)
|
|
9a4: 842a mv s0,a0
|
|
9a6: c62e sw a1,12(sp)
|
|
9a8: 8fd5 or a5,a5,a3
|
|
9aa: 2596 lhu a3,8(a1)
|
|
9ac: 8fd5 or a5,a5,a3
|
|
9ae: 25b6 lhu a3,10(a1)
|
|
9b0: 8fd5 or a5,a5,a3
|
|
9b2: a55e sh a5,12(a0)
|
|
9b4: 295e lhu a5,20(a0)
|
|
9b6: 07c2 slli a5,a5,0x10
|
|
9b8: 83c1 srli a5,a5,0x10
|
|
9ba: cff7f793 andi a5,a5,-769
|
|
9be: 8fd9 or a5,a5,a4
|
|
9c0: a95e sh a5,20(a0)
|
|
9c2: 0868 addi a0,sp,28
|
|
9c4: 355d jal 86a <RCC_GetClocksFreq>
|
|
9c6: 400147b7 lui a5,0x40014
|
|
9ca: 80078793 addi a5,a5,-2048 # 40013800 <_eusrstack+0x2000e800>
|
|
9ce: 45b2 lw a1,12(sp)
|
|
9d0: 04f41a63 bne s0,a5,a24 <USART_Init+0xa2>
|
|
9d4: 57a2 lw a5,40(sp)
|
|
9d6: 2456 lhu a3,12(s0)
|
|
9d8: 4765 li a4,25
|
|
9da: 02e787b3 mul a5,a5,a4
|
|
9de: 06c2 slli a3,a3,0x10
|
|
9e0: 86c1 srai a3,a3,0x10
|
|
9e2: 4198 lw a4,0(a1)
|
|
9e4: 0406d263 bgez a3,a28 <USART_Init+0xa6>
|
|
9e8: 0706 slli a4,a4,0x1
|
|
9ea: 2452 lhu a2,12(s0)
|
|
9ec: 0642 slli a2,a2,0x10
|
|
9ee: 02e7d7b3 divu a5,a5,a4
|
|
9f2: 06400713 li a4,100
|
|
9f6: 8641 srai a2,a2,0x10
|
|
9f8: 02e7d6b3 divu a3,a5,a4
|
|
9fc: 02e7f7b3 remu a5,a5,a4
|
|
a00: 0692 slli a3,a3,0x4
|
|
a02: 02065563 bgez a2,a2c <USART_Init+0xaa>
|
|
a06: 078e slli a5,a5,0x3
|
|
a08: 03278793 addi a5,a5,50
|
|
a0c: 02e7d7b3 divu a5,a5,a4
|
|
a10: 0077f713 andi a4,a5,7
|
|
a14: 00d767b3 or a5,a4,a3
|
|
a18: 07c2 slli a5,a5,0x10
|
|
a1a: 83c1 srli a5,a5,0x10
|
|
a1c: a41e sh a5,8(s0)
|
|
a1e: 6145 addi sp,sp,48
|
|
a20: f74ff06f j 194 <__riscv_restore_0>
|
|
a24: 5792 lw a5,36(sp)
|
|
a26: bf45 j 9d6 <USART_Init+0x54>
|
|
a28: 070a slli a4,a4,0x2
|
|
a2a: b7c1 j 9ea <USART_Init+0x68>
|
|
a2c: 0792 slli a5,a5,0x4
|
|
a2e: 03278793 addi a5,a5,50
|
|
a32: 02e7d7b3 divu a5,a5,a4
|
|
a36: 8bbd andi a5,a5,15
|
|
a38: 8fd5 or a5,a5,a3
|
|
a3a: bff9 j a18 <USART_Init+0x96>
|
|
|
|
00000a3c <USART_Cmd>:
|
|
a3c: c591 beqz a1,a48 <USART_Cmd+0xc>
|
|
a3e: 255e lhu a5,12(a0)
|
|
a40: 6709 lui a4,0x2
|
|
a42: 8fd9 or a5,a5,a4
|
|
a44: a55e sh a5,12(a0)
|
|
a46: 8082 ret
|
|
a48: 255a lhu a4,12(a0)
|
|
a4a: 77f9 lui a5,0xffffe
|
|
a4c: 17fd addi a5,a5,-1
|
|
a4e: 8ff9 and a5,a5,a4
|
|
a50: bfd5 j a44 <USART_Cmd+0x8>
|
|
|
|
00000a52 <USART_SendData>:
|
|
a52: 1ff5f593 andi a1,a1,511
|
|
a56: a14e sh a1,4(a0)
|
|
a58: 8082 ret
|
|
|
|
00000a5a <USART_ReceiveData>:
|
|
a5a: 214a lhu a0,4(a0)
|
|
a5c: 1ff57513 andi a0,a0,511
|
|
a60: 8082 ret
|
|
|
|
00000a62 <USART_GetFlagStatus>:
|
|
a62: 210a lhu a0,0(a0)
|
|
a64: 8d6d and a0,a0,a1
|
|
a66: 00a03533 snez a0,a0
|
|
a6a: 8082 ret
|
|
|
|
00000a6c <USART_GetITStatus>:
|
|
a6c: 0ff5f713 andi a4,a1,255
|
|
a70: 4685 li a3,1
|
|
a72: 8315 srli a4,a4,0x5
|
|
a74: 00b697b3 sll a5,a3,a1
|
|
a78: 02d71163 bne a4,a3,a9a <USART_GetITStatus+0x2e>
|
|
a7c: 255a lhu a4,12(a0)
|
|
a7e: 8ff9 and a5,a5,a4
|
|
a80: 211a lhu a4,0(a0)
|
|
a82: 4501 li a0,0
|
|
a84: 0742 slli a4,a4,0x10
|
|
a86: 8341 srli a4,a4,0x10
|
|
a88: cb81 beqz a5,a98 <USART_GetITStatus+0x2c>
|
|
a8a: 4505 li a0,1
|
|
a8c: 81a1 srli a1,a1,0x8
|
|
a8e: 00b515b3 sll a1,a0,a1
|
|
a92: 8f6d and a4,a4,a1
|
|
a94: 00e03533 snez a0,a4
|
|
a98: 8082 ret
|
|
a9a: 4689 li a3,2
|
|
a9c: 00d71463 bne a4,a3,aa4 <USART_GetITStatus+0x38>
|
|
aa0: 291a lhu a4,16(a0)
|
|
aa2: bff1 j a7e <USART_GetITStatus+0x12>
|
|
aa4: 295a lhu a4,20(a0)
|
|
aa6: bfe1 j a7e <USART_GetITStatus+0x12>
|
|
|
|
00000aa8 <EXTI2_IRQHandler>:
|
|
aa8: 4511 li a0,4
|
|
aaa: 3c21 jal 4c2 <EXTI_GetITStatus>
|
|
aac: 4785 li a5,1
|
|
aae: 00f51463 bne a0,a5,ab6 <EXTI2_IRQHandler+0xe>
|
|
ab2: 4511 li a0,4
|
|
ab4: 3435 jal 4e0 <EXTI_ClearITPendingBit>
|
|
ab6: 30200073 mret
|
|
|
|
00000aba <EXTI15_10_IRQHandler>:
|
|
aba: 6505 lui a0,0x1
|
|
abc: 3419 jal 4c2 <EXTI_GetITStatus>
|
|
abe: 30200073 mret
|
|
|
|
00000ac2 <USART3_IRQHandler>:
|
|
ac2: 1141 addi sp,sp,-16
|
|
ac4: c622 sw s0,12(sp)
|
|
ac6: 40005437 lui s0,0x40005
|
|
aca: 52500593 li a1,1317
|
|
ace: 80040513 addi a0,s0,-2048 # 40004800 <_eusrstack+0x1ffff800>
|
|
ad2: 3f69 jal a6c <USART_GetITStatus>
|
|
ad4: c505 beqz a0,afc <USART3_IRQHandler+0x3a>
|
|
ad6: 80040513 addi a0,s0,-2048
|
|
ada: 3741 jal a5a <USART_ReceiveData>
|
|
adc: 0ff57593 andi a1,a0,255
|
|
ae0: 82b18623 sb a1,-2004(gp) # 200000ac <USART3_Rbuffer>
|
|
ae4: 83c1a503 lw a0,-1988(gp) # 200000bc <g_bat485_uart3_handle>
|
|
ae8: 4d1c lw a5,24(a0)
|
|
aea: 4910 lw a2,16(a0)
|
|
aec: 4954 lw a3,20(a0)
|
|
aee: 0785 addi a5,a5,1
|
|
af0: 02c7e7b3 rem a5,a5,a2
|
|
af4: 00d78463 beq a5,a3,afc <USART3_IRQHandler+0x3a>
|
|
af8: 0531 addi a0,a0,12
|
|
afa: 20e5 jal be2 <InRingQueue>
|
|
afc: 4432 lw s0,12(sp)
|
|
afe: 0141 addi sp,sp,16
|
|
b00: 30200073 mret
|
|
|
|
00000b04 <USART4_IRQHandler>:
|
|
b04: 1141 addi sp,sp,-16
|
|
b06: c622 sw s0,12(sp)
|
|
b08: 40005437 lui s0,0x40005
|
|
b0c: 52500593 li a1,1317
|
|
b10: c0040513 addi a0,s0,-1024 # 40004c00 <_eusrstack+0x1ffffc00>
|
|
b14: 3fa1 jal a6c <USART_GetITStatus>
|
|
b16: c505 beqz a0,b3e <USART4_IRQHandler+0x3a>
|
|
b18: c0040513 addi a0,s0,-1024
|
|
b1c: 3f3d jal a5a <USART_ReceiveData>
|
|
b1e: 0ff57593 andi a1,a0,255
|
|
b22: 82b18823 sb a1,-2000(gp) # 200000b0 <USART4_Rbuffer>
|
|
b26: 8401a503 lw a0,-1984(gp) # 200000c0 <g_gw485_uart4_handle>
|
|
b2a: 4d1c lw a5,24(a0)
|
|
b2c: 4910 lw a2,16(a0)
|
|
b2e: 4954 lw a3,20(a0)
|
|
b30: 0785 addi a5,a5,1
|
|
b32: 02c7e7b3 rem a5,a5,a2
|
|
b36: 00d78463 beq a5,a3,b3e <USART4_IRQHandler+0x3a>
|
|
b3a: 0531 addi a0,a0,12
|
|
b3c: 205d jal be2 <InRingQueue>
|
|
b3e: 4432 lw s0,12(sp)
|
|
b40: 0141 addi sp,sp,16
|
|
b42: 30200073 mret
|
|
|
|
00000b46 <TIM3_IRQHandler>:
|
|
b46: 1141 addi sp,sp,-16
|
|
b48: c622 sw s0,12(sp)
|
|
b4a: 40000437 lui s0,0x40000
|
|
b4e: 4585 li a1,1
|
|
b50: 40040513 addi a0,s0,1024 # 40000400 <_eusrstack+0x1fffb400>
|
|
b54: 3529 jal 95e <TIM_GetITStatus>
|
|
b56: c509 beqz a0,b60 <TIM3_IRQHandler+0x1a>
|
|
b58: 4585 li a1,1
|
|
b5a: 40040513 addi a0,s0,1024
|
|
b5e: 3d21 jal 976 <TIM_ClearITPendingBit>
|
|
b60: 4432 lw s0,12(sp)
|
|
b62: 0141 addi sp,sp,16
|
|
b64: 30200073 mret
|
|
|
|
00000b68 <TIM2_IRQHandler>:
|
|
b68: 4585 li a1,1
|
|
b6a: 40000537 lui a0,0x40000
|
|
b6e: 3bc5 jal 95e <TIM_GetITStatus>
|
|
b70: c511 beqz a0,b7c <TIM2_IRQHandler+0x14>
|
|
b72: 4585 li a1,1
|
|
b74: 40000537 lui a0,0x40000
|
|
b78: 3bfd jal 976 <TIM_ClearITPendingBit>
|
|
b7a: 2081 jal bba <TimeSliceOffset_Produce>
|
|
b7c: 30200073 mret
|
|
|
|
00000b80 <SysTick_Handler>:
|
|
b80: e000f7b7 lui a5,0xe000f
|
|
b84: 0007a223 sw zero,4(a5) # e000f004 <_eusrstack+0xc000a004>
|
|
b88: 280d jal bba <TimeSliceOffset_Produce>
|
|
b8a: 30200073 mret
|
|
|
|
00000b8e <TIM1_UP_IRQHandler>:
|
|
b8e: 1141 addi sp,sp,-16
|
|
b90: c622 sw s0,12(sp)
|
|
b92: 40013437 lui s0,0x40013
|
|
b96: 4585 li a1,1
|
|
b98: c0040513 addi a0,s0,-1024 # 40012c00 <_eusrstack+0x2000dc00>
|
|
b9c: 33c9 jal 95e <TIM_GetITStatus>
|
|
b9e: c911 beqz a0,bb2 <TIM1_UP_IRQHandler+0x24>
|
|
ba0: c0040513 addi a0,s0,-1024
|
|
ba4: 4585 li a1,1
|
|
ba6: 3bc1 jal 976 <TIM_ClearITPendingBit>
|
|
ba8: 00002537 lui a0,0x2
|
|
bac: eb850513 addi a0,a0,-328 # 1eb8 <_read+0x2e>
|
|
bb0: 2499 jal df6 <puts>
|
|
bb2: 4432 lw s0,12(sp)
|
|
bb4: 0141 addi sp,sp,16
|
|
bb6: 30200073 mret
|
|
|
|
00000bba <TimeSliceOffset_Produce>:
|
|
bba: 8341a783 lw a5,-1996(gp) # 200000b4 <pTimeSliceList>
|
|
bbe: 4605 li a2,1
|
|
bc0: e391 bnez a5,bc4 <TimeSliceOffset_Produce+0xa>
|
|
bc2: 8082 ret
|
|
bc4: 23d6 lhu a3,4(a5)
|
|
bc6: ce81 beqz a3,bde <TimeSliceOffset_Produce+0x24>
|
|
bc8: 23ba lhu a4,2(a5)
|
|
bca: 177d addi a4,a4,-1
|
|
bcc: 0742 slli a4,a4,0x10
|
|
bce: 8341 srli a4,a4,0x10
|
|
bd0: a3ba sh a4,2(a5)
|
|
bd2: 23ba lhu a4,2(a5)
|
|
bd4: 0742 slli a4,a4,0x10
|
|
bd6: 8341 srli a4,a4,0x10
|
|
bd8: e319 bnez a4,bde <TimeSliceOffset_Produce+0x24>
|
|
bda: a390 sb a2,0(a5)
|
|
bdc: a3b6 sh a3,2(a5)
|
|
bde: 47dc lw a5,12(a5)
|
|
be0: b7c5 j bc0 <TimeSliceOffset_Produce+0x6>
|
|
|
|
00000be2 <InRingQueue>:
|
|
be2: 455c lw a5,12(a0)
|
|
be4: 4154 lw a3,4(a0)
|
|
be6: 4518 lw a4,8(a0)
|
|
be8: 0785 addi a5,a5,1
|
|
bea: 02d7e7b3 rem a5,a5,a3
|
|
bee: 00e78e63 beq a5,a4,c0a <InRingQueue+0x28>
|
|
bf2: 4558 lw a4,12(a0)
|
|
bf4: 411c lw a5,0(a0)
|
|
bf6: 97ba add a5,a5,a4
|
|
bf8: a38c sb a1,0(a5)
|
|
bfa: 455c lw a5,12(a0)
|
|
bfc: 4158 lw a4,4(a0)
|
|
bfe: 0785 addi a5,a5,1
|
|
c00: 02e7e7b3 rem a5,a5,a4
|
|
c04: c55c sw a5,12(a0)
|
|
c06: 4505 li a0,1
|
|
c08: 8082 ret
|
|
c0a: 5579 li a0,-2
|
|
c0c: 8082 ret
|
|
|
|
00000c0e <Delay_Init>:
|
|
c0e: 200007b7 lui a5,0x20000
|
|
c12: 0807a783 lw a5,128(a5) # 20000080 <SystemCoreClock>
|
|
c16: 6709 lui a4,0x2
|
|
c18: f4070713 addi a4,a4,-192 # 1f40 <__sf_fake_stdout+0x38>
|
|
c1c: 02e7d7b3 divu a5,a5,a4
|
|
c20: 07c2 slli a5,a5,0x10
|
|
c22: 83c1 srli a5,a5,0x10
|
|
c24: 82f19d23 sh a5,-1990(gp) # 200000ba <p_us>
|
|
c28: 82f19c23 sh a5,-1992(gp) # 200000b8 <p_ms>
|
|
c2c: 8082 ret
|
|
|
|
00000c2e <USART_Printf_Init>:
|
|
c2e: d42ff2ef jal t0,170 <__riscv_save_0>
|
|
c32: 842a mv s0,a0
|
|
c34: 6511 lui a0,0x4
|
|
c36: 1101 addi sp,sp,-32
|
|
c38: 4585 li a1,1
|
|
c3a: 0511 addi a0,a0,4
|
|
c3c: 3311 jal 940 <RCC_PB2PeriphClockCmd>
|
|
c3e: 20000793 li a5,512
|
|
c42: 827c sh a5,4(sp)
|
|
c44: 40011537 lui a0,0x40011
|
|
c48: 478d li a5,3
|
|
c4a: c43e sw a5,8(sp)
|
|
c4c: 004c addi a1,sp,4
|
|
c4e: 47e1 li a5,24
|
|
c50: 80050513 addi a0,a0,-2048 # 40010800 <_eusrstack+0x2000b800>
|
|
c54: c63e sw a5,12(sp)
|
|
c56: 895ff0ef jal ra,4ea <GPIO_Init>
|
|
c5a: c822 sw s0,16(sp)
|
|
c5c: 40014437 lui s0,0x40014
|
|
c60: 000807b7 lui a5,0x80
|
|
c64: 080c addi a1,sp,16
|
|
c66: 80040513 addi a0,s0,-2048 # 40013800 <_eusrstack+0x2000e800>
|
|
c6a: cc3e sw a5,24(sp)
|
|
c6c: ca02 sw zero,20(sp)
|
|
c6e: 00011e23 sh zero,28(sp)
|
|
c72: 3b01 jal 982 <USART_Init>
|
|
c74: 4585 li a1,1
|
|
c76: 80040513 addi a0,s0,-2048
|
|
c7a: 33c9 jal a3c <USART_Cmd>
|
|
c7c: 6105 addi sp,sp,32
|
|
c7e: d16ff06f j 194 <__riscv_restore_0>
|
|
|
|
00000c82 <_write>:
|
|
c82: cd4ff2ef jal t0,156 <__riscv_save_4>
|
|
c86: 400144b7 lui s1,0x40014
|
|
c8a: 89ae mv s3,a1
|
|
c8c: 8932 mv s2,a2
|
|
c8e: 4401 li s0,0
|
|
c90: 80048493 addi s1,s1,-2048 # 40013800 <_eusrstack+0x2000e800>
|
|
c94: 01244563 blt s0,s2,c9e <_write+0x1c>
|
|
c98: 854a mv a0,s2
|
|
c9a: cf0ff06f j 18a <__riscv_restore_4>
|
|
c9e: 04000593 li a1,64
|
|
ca2: 8526 mv a0,s1
|
|
ca4: 3b7d jal a62 <USART_GetFlagStatus>
|
|
ca6: dd65 beqz a0,c9e <_write+0x1c>
|
|
ca8: 008987b3 add a5,s3,s0
|
|
cac: 00078583 lb a1,0(a5) # 80000 <_data_lma+0x7e09c>
|
|
cb0: 8526 mv a0,s1
|
|
cb2: 0405 addi s0,s0,1
|
|
cb4: 05c2 slli a1,a1,0x10
|
|
cb6: 81c1 srli a1,a1,0x10
|
|
cb8: 3b69 jal a52 <USART_SendData>
|
|
cba: bfe9 j c94 <_write+0x12>
|
|
|
|
00000cbc <_sbrk>:
|
|
cbc: 80818713 addi a4,gp,-2040 # 20000088 <curbrk.5007>
|
|
cc0: 431c lw a5,0(a4)
|
|
cc2: 85018693 addi a3,gp,-1968 # 200000d0 <_ebss>
|
|
cc6: 953e add a0,a0,a5
|
|
cc8: 00d56b63 bltu a0,a3,cde <_sbrk+0x22>
|
|
ccc: 200056b7 lui a3,0x20005
|
|
cd0: 80068693 addi a3,a3,-2048 # 20004800 <_heap_end>
|
|
cd4: 00a6e563 bltu a3,a0,cde <_sbrk+0x22>
|
|
cd8: c308 sw a0,0(a4)
|
|
cda: 853e mv a0,a5
|
|
cdc: 8082 ret
|
|
cde: 57fd li a5,-1
|
|
ce0: bfed j cda <_sbrk+0x1e>
|
|
|
|
00000ce2 <iprintf>:
|
|
ce2: 7139 addi sp,sp,-64
|
|
ce4: da3e sw a5,52(sp)
|
|
ce6: d22e sw a1,36(sp)
|
|
ce8: d432 sw a2,40(sp)
|
|
cea: d636 sw a3,44(sp)
|
|
cec: d83a sw a4,48(sp)
|
|
cee: dc42 sw a6,56(sp)
|
|
cf0: de46 sw a7,60(sp)
|
|
cf2: 80c18793 addi a5,gp,-2036 # 2000008c <_impure_ptr>
|
|
cf6: cc22 sw s0,24(sp)
|
|
cf8: 4380 lw s0,0(a5)
|
|
cfa: ca26 sw s1,20(sp)
|
|
cfc: ce06 sw ra,28(sp)
|
|
cfe: 84aa mv s1,a0
|
|
d00: c409 beqz s0,d0a <iprintf+0x28>
|
|
d02: 4c1c lw a5,24(s0)
|
|
d04: e399 bnez a5,d0a <iprintf+0x28>
|
|
d06: 8522 mv a0,s0
|
|
d08: 29ed jal 1202 <__sinit>
|
|
d0a: 440c lw a1,8(s0)
|
|
d0c: 1054 addi a3,sp,36
|
|
d0e: 8626 mv a2,s1
|
|
d10: 8522 mv a0,s0
|
|
d12: c636 sw a3,12(sp)
|
|
d14: 127000ef jal ra,163a <_vfiprintf_r>
|
|
d18: 40f2 lw ra,28(sp)
|
|
d1a: 4462 lw s0,24(sp)
|
|
d1c: 44d2 lw s1,20(sp)
|
|
d1e: 6121 addi sp,sp,64
|
|
d20: 8082 ret
|
|
|
|
00000d22 <_puts_r>:
|
|
d22: 1101 addi sp,sp,-32
|
|
d24: ca26 sw s1,20(sp)
|
|
d26: c84a sw s2,16(sp)
|
|
d28: ce06 sw ra,28(sp)
|
|
d2a: cc22 sw s0,24(sp)
|
|
d2c: c64e sw s3,12(sp)
|
|
d2e: c452 sw s4,8(sp)
|
|
d30: 84aa mv s1,a0
|
|
d32: 892e mv s2,a1
|
|
d34: c501 beqz a0,d3c <_puts_r+0x1a>
|
|
d36: 4d1c lw a5,24(a0)
|
|
d38: e391 bnez a5,d3c <_puts_r+0x1a>
|
|
d3a: 21e1 jal 1202 <__sinit>
|
|
d3c: 4c9c lw a5,24(s1)
|
|
d3e: 4480 lw s0,8(s1)
|
|
d40: e399 bnez a5,d46 <_puts_r+0x24>
|
|
d42: 8526 mv a0,s1
|
|
d44: 297d jal 1202 <__sinit>
|
|
d46: 00001797 auipc a5,0x1
|
|
d4a: 1a278793 addi a5,a5,418 # 1ee8 <__sf_fake_stdin>
|
|
d4e: 02f41b63 bne s0,a5,d84 <_puts_r+0x62>
|
|
d52: 40c0 lw s0,4(s1)
|
|
d54: 245e lhu a5,12(s0)
|
|
d56: 8ba1 andi a5,a5,8
|
|
d58: c7b1 beqz a5,da4 <_puts_r+0x82>
|
|
d5a: 481c lw a5,16(s0)
|
|
d5c: c7a1 beqz a5,da4 <_puts_r+0x82>
|
|
d5e: 59fd li s3,-1
|
|
d60: 4a29 li s4,10
|
|
d62: 441c lw a5,8(s0)
|
|
d64: 00094583 lbu a1,0(s2)
|
|
d68: 17fd addi a5,a5,-1
|
|
d6a: e9b1 bnez a1,dbe <_puts_r+0x9c>
|
|
d6c: c41c sw a5,8(s0)
|
|
d6e: 0607dd63 bgez a5,de8 <_puts_r+0xc6>
|
|
d72: 8622 mv a2,s0
|
|
d74: 45a9 li a1,10
|
|
d76: 8526 mv a0,s1
|
|
d78: 2061 jal e00 <__swbuf_r>
|
|
d7a: 57fd li a5,-1
|
|
d7c: 02f50863 beq a0,a5,dac <_puts_r+0x8a>
|
|
d80: 4529 li a0,10
|
|
d82: a035 j dae <_puts_r+0x8c>
|
|
d84: 00001797 auipc a5,0x1
|
|
d88: 18478793 addi a5,a5,388 # 1f08 <__sf_fake_stdout>
|
|
d8c: 00f41463 bne s0,a5,d94 <_puts_r+0x72>
|
|
d90: 4480 lw s0,8(s1)
|
|
d92: b7c9 j d54 <_puts_r+0x32>
|
|
d94: 00001797 auipc a5,0x1
|
|
d98: 13478793 addi a5,a5,308 # 1ec8 <__sf_fake_stderr>
|
|
d9c: faf41ce3 bne s0,a5,d54 <_puts_r+0x32>
|
|
da0: 44c0 lw s0,12(s1)
|
|
da2: bf4d j d54 <_puts_r+0x32>
|
|
da4: 85a2 mv a1,s0
|
|
da6: 8526 mv a0,s1
|
|
da8: 2a11 jal ebc <__swsetup_r>
|
|
daa: d955 beqz a0,d5e <_puts_r+0x3c>
|
|
dac: 557d li a0,-1
|
|
dae: 40f2 lw ra,28(sp)
|
|
db0: 4462 lw s0,24(sp)
|
|
db2: 44d2 lw s1,20(sp)
|
|
db4: 4942 lw s2,16(sp)
|
|
db6: 49b2 lw s3,12(sp)
|
|
db8: 4a22 lw s4,8(sp)
|
|
dba: 6105 addi sp,sp,32
|
|
dbc: 8082 ret
|
|
dbe: c41c sw a5,8(s0)
|
|
dc0: 0905 addi s2,s2,1
|
|
dc2: 0007d763 bgez a5,dd0 <_puts_r+0xae>
|
|
dc6: 4c18 lw a4,24(s0)
|
|
dc8: 00e7ca63 blt a5,a4,ddc <_puts_r+0xba>
|
|
dcc: 01458863 beq a1,s4,ddc <_puts_r+0xba>
|
|
dd0: 401c lw a5,0(s0)
|
|
dd2: 00178713 addi a4,a5,1
|
|
dd6: c018 sw a4,0(s0)
|
|
dd8: a38c sb a1,0(a5)
|
|
dda: b761 j d62 <_puts_r+0x40>
|
|
ddc: 8622 mv a2,s0
|
|
dde: 8526 mv a0,s1
|
|
de0: 2005 jal e00 <__swbuf_r>
|
|
de2: f93510e3 bne a0,s3,d62 <_puts_r+0x40>
|
|
de6: b7d9 j dac <_puts_r+0x8a>
|
|
de8: 401c lw a5,0(s0)
|
|
dea: 00178713 addi a4,a5,1
|
|
dee: c018 sw a4,0(s0)
|
|
df0: 4729 li a4,10
|
|
df2: a398 sb a4,0(a5)
|
|
df4: b771 j d80 <_puts_r+0x5e>
|
|
|
|
00000df6 <puts>:
|
|
df6: 80c18793 addi a5,gp,-2036 # 2000008c <_impure_ptr>
|
|
dfa: 85aa mv a1,a0
|
|
dfc: 4388 lw a0,0(a5)
|
|
dfe: b715 j d22 <_puts_r>
|
|
|
|
00000e00 <__swbuf_r>:
|
|
e00: 1101 addi sp,sp,-32
|
|
e02: cc22 sw s0,24(sp)
|
|
e04: ca26 sw s1,20(sp)
|
|
e06: c84a sw s2,16(sp)
|
|
e08: ce06 sw ra,28(sp)
|
|
e0a: c64e sw s3,12(sp)
|
|
e0c: 84aa mv s1,a0
|
|
e0e: 892e mv s2,a1
|
|
e10: 8432 mv s0,a2
|
|
e12: c501 beqz a0,e1a <__swbuf_r+0x1a>
|
|
e14: 4d1c lw a5,24(a0)
|
|
e16: e391 bnez a5,e1a <__swbuf_r+0x1a>
|
|
e18: 26ed jal 1202 <__sinit>
|
|
e1a: 00001797 auipc a5,0x1
|
|
e1e: 0ce78793 addi a5,a5,206 # 1ee8 <__sf_fake_stdin>
|
|
e22: 06f41763 bne s0,a5,e90 <__swbuf_r+0x90>
|
|
e26: 40c0 lw s0,4(s1)
|
|
e28: 4c1c lw a5,24(s0)
|
|
e2a: c41c sw a5,8(s0)
|
|
e2c: 245e lhu a5,12(s0)
|
|
e2e: 8ba1 andi a5,a5,8
|
|
e30: c3c1 beqz a5,eb0 <__swbuf_r+0xb0>
|
|
e32: 481c lw a5,16(s0)
|
|
e34: cfb5 beqz a5,eb0 <__swbuf_r+0xb0>
|
|
e36: 481c lw a5,16(s0)
|
|
e38: 4008 lw a0,0(s0)
|
|
e3a: 0ff97993 andi s3,s2,255
|
|
e3e: 0ff97913 andi s2,s2,255
|
|
e42: 8d1d sub a0,a0,a5
|
|
e44: 485c lw a5,20(s0)
|
|
e46: 00f54663 blt a0,a5,e52 <__swbuf_r+0x52>
|
|
e4a: 85a2 mv a1,s0
|
|
e4c: 8526 mv a0,s1
|
|
e4e: 2c69 jal 10e8 <_fflush_r>
|
|
e50: e525 bnez a0,eb8 <__swbuf_r+0xb8>
|
|
e52: 441c lw a5,8(s0)
|
|
e54: 0505 addi a0,a0,1
|
|
e56: 17fd addi a5,a5,-1
|
|
e58: c41c sw a5,8(s0)
|
|
e5a: 401c lw a5,0(s0)
|
|
e5c: 00178713 addi a4,a5,1
|
|
e60: c018 sw a4,0(s0)
|
|
e62: 01378023 sb s3,0(a5)
|
|
e66: 485c lw a5,20(s0)
|
|
e68: 00a78863 beq a5,a0,e78 <__swbuf_r+0x78>
|
|
e6c: 245e lhu a5,12(s0)
|
|
e6e: 8b85 andi a5,a5,1
|
|
e70: cb81 beqz a5,e80 <__swbuf_r+0x80>
|
|
e72: 47a9 li a5,10
|
|
e74: 00f91663 bne s2,a5,e80 <__swbuf_r+0x80>
|
|
e78: 85a2 mv a1,s0
|
|
e7a: 8526 mv a0,s1
|
|
e7c: 24b5 jal 10e8 <_fflush_r>
|
|
e7e: ed0d bnez a0,eb8 <__swbuf_r+0xb8>
|
|
e80: 40f2 lw ra,28(sp)
|
|
e82: 4462 lw s0,24(sp)
|
|
e84: 854a mv a0,s2
|
|
e86: 44d2 lw s1,20(sp)
|
|
e88: 4942 lw s2,16(sp)
|
|
e8a: 49b2 lw s3,12(sp)
|
|
e8c: 6105 addi sp,sp,32
|
|
e8e: 8082 ret
|
|
e90: 00001797 auipc a5,0x1
|
|
e94: 07878793 addi a5,a5,120 # 1f08 <__sf_fake_stdout>
|
|
e98: 00f41463 bne s0,a5,ea0 <__swbuf_r+0xa0>
|
|
e9c: 4480 lw s0,8(s1)
|
|
e9e: b769 j e28 <__swbuf_r+0x28>
|
|
ea0: 00001797 auipc a5,0x1
|
|
ea4: 02878793 addi a5,a5,40 # 1ec8 <__sf_fake_stderr>
|
|
ea8: f8f410e3 bne s0,a5,e28 <__swbuf_r+0x28>
|
|
eac: 44c0 lw s0,12(s1)
|
|
eae: bfad j e28 <__swbuf_r+0x28>
|
|
eb0: 85a2 mv a1,s0
|
|
eb2: 8526 mv a0,s1
|
|
eb4: 2021 jal ebc <__swsetup_r>
|
|
eb6: d141 beqz a0,e36 <__swbuf_r+0x36>
|
|
eb8: 597d li s2,-1
|
|
eba: b7d9 j e80 <__swbuf_r+0x80>
|
|
|
|
00000ebc <__swsetup_r>:
|
|
ebc: 1141 addi sp,sp,-16
|
|
ebe: 80c18793 addi a5,gp,-2036 # 2000008c <_impure_ptr>
|
|
ec2: c226 sw s1,4(sp)
|
|
ec4: 4384 lw s1,0(a5)
|
|
ec6: c422 sw s0,8(sp)
|
|
ec8: c04a sw s2,0(sp)
|
|
eca: c606 sw ra,12(sp)
|
|
ecc: 892a mv s2,a0
|
|
ece: 842e mv s0,a1
|
|
ed0: c489 beqz s1,eda <__swsetup_r+0x1e>
|
|
ed2: 4c9c lw a5,24(s1)
|
|
ed4: e399 bnez a5,eda <__swsetup_r+0x1e>
|
|
ed6: 8526 mv a0,s1
|
|
ed8: 262d jal 1202 <__sinit>
|
|
eda: 00001797 auipc a5,0x1
|
|
ede: 00e78793 addi a5,a5,14 # 1ee8 <__sf_fake_stdin>
|
|
ee2: 02f41b63 bne s0,a5,f18 <__swsetup_r+0x5c>
|
|
ee6: 40c0 lw s0,4(s1)
|
|
ee8: 00c41703 lh a4,12(s0)
|
|
eec: 01071793 slli a5,a4,0x10
|
|
ef0: 83c1 srli a5,a5,0x10
|
|
ef2: 0087f693 andi a3,a5,8
|
|
ef6: eaad bnez a3,f68 <__swsetup_r+0xac>
|
|
ef8: 0107f693 andi a3,a5,16
|
|
efc: ee95 bnez a3,f38 <__swsetup_r+0x7c>
|
|
efe: 47a5 li a5,9
|
|
f00: 00f92023 sw a5,0(s2)
|
|
f04: 04076713 ori a4,a4,64
|
|
f08: a45a sh a4,12(s0)
|
|
f0a: 557d li a0,-1
|
|
f0c: 40b2 lw ra,12(sp)
|
|
f0e: 4422 lw s0,8(sp)
|
|
f10: 4492 lw s1,4(sp)
|
|
f12: 4902 lw s2,0(sp)
|
|
f14: 0141 addi sp,sp,16
|
|
f16: 8082 ret
|
|
f18: 00001797 auipc a5,0x1
|
|
f1c: ff078793 addi a5,a5,-16 # 1f08 <__sf_fake_stdout>
|
|
f20: 00f41463 bne s0,a5,f28 <__swsetup_r+0x6c>
|
|
f24: 4480 lw s0,8(s1)
|
|
f26: b7c9 j ee8 <__swsetup_r+0x2c>
|
|
f28: 00001797 auipc a5,0x1
|
|
f2c: fa078793 addi a5,a5,-96 # 1ec8 <__sf_fake_stderr>
|
|
f30: faf41ce3 bne s0,a5,ee8 <__swsetup_r+0x2c>
|
|
f34: 44c0 lw s0,12(s1)
|
|
f36: bf4d j ee8 <__swsetup_r+0x2c>
|
|
f38: 8b91 andi a5,a5,4
|
|
f3a: c39d beqz a5,f60 <__swsetup_r+0xa4>
|
|
f3c: 584c lw a1,52(s0)
|
|
f3e: c989 beqz a1,f50 <__swsetup_r+0x94>
|
|
f40: 04440793 addi a5,s0,68
|
|
f44: 00f58463 beq a1,a5,f4c <__swsetup_r+0x90>
|
|
f48: 854a mv a0,s2
|
|
f4a: 2331 jal 1456 <_free_r>
|
|
f4c: 02042a23 sw zero,52(s0)
|
|
f50: 245e lhu a5,12(s0)
|
|
f52: 00042223 sw zero,4(s0)
|
|
f56: fdb7f793 andi a5,a5,-37
|
|
f5a: a45e sh a5,12(s0)
|
|
f5c: 481c lw a5,16(s0)
|
|
f5e: c01c sw a5,0(s0)
|
|
f60: 245e lhu a5,12(s0)
|
|
f62: 0087e793 ori a5,a5,8
|
|
f66: a45e sh a5,12(s0)
|
|
f68: 481c lw a5,16(s0)
|
|
f6a: eb99 bnez a5,f80 <__swsetup_r+0xc4>
|
|
f6c: 245e lhu a5,12(s0)
|
|
f6e: 20000713 li a4,512
|
|
f72: 2807f793 andi a5,a5,640
|
|
f76: 00e78563 beq a5,a4,f80 <__swsetup_r+0xc4>
|
|
f7a: 85a2 mv a1,s0
|
|
f7c: 854a mv a0,s2
|
|
f7e: 21a1 jal 13c6 <__smakebuf_r>
|
|
f80: 245e lhu a5,12(s0)
|
|
f82: 0017f713 andi a4,a5,1
|
|
f86: c31d beqz a4,fac <__swsetup_r+0xf0>
|
|
f88: 485c lw a5,20(s0)
|
|
f8a: 00042423 sw zero,8(s0)
|
|
f8e: 40f007b3 neg a5,a5
|
|
f92: cc1c sw a5,24(s0)
|
|
f94: 481c lw a5,16(s0)
|
|
f96: 4501 li a0,0
|
|
f98: fbb5 bnez a5,f0c <__swsetup_r+0x50>
|
|
f9a: 00c41783 lh a5,12(s0)
|
|
f9e: 0807f713 andi a4,a5,128
|
|
fa2: d72d beqz a4,f0c <__swsetup_r+0x50>
|
|
fa4: 0407e793 ori a5,a5,64
|
|
fa8: a45e sh a5,12(s0)
|
|
faa: b785 j f0a <__swsetup_r+0x4e>
|
|
fac: 8b89 andi a5,a5,2
|
|
fae: 4701 li a4,0
|
|
fb0: e391 bnez a5,fb4 <__swsetup_r+0xf8>
|
|
fb2: 4858 lw a4,20(s0)
|
|
fb4: c418 sw a4,8(s0)
|
|
fb6: bff9 j f94 <__swsetup_r+0xd8>
|
|
|
|
00000fb8 <__sflush_r>:
|
|
fb8: 25de lhu a5,12(a1)
|
|
fba: 1101 addi sp,sp,-32
|
|
fbc: cc22 sw s0,24(sp)
|
|
fbe: ca26 sw s1,20(sp)
|
|
fc0: ce06 sw ra,28(sp)
|
|
fc2: c84a sw s2,16(sp)
|
|
fc4: c64e sw s3,12(sp)
|
|
fc6: 0087f713 andi a4,a5,8
|
|
fca: 84aa mv s1,a0
|
|
fcc: 842e mv s0,a1
|
|
fce: eb79 bnez a4,10a4 <__sflush_r+0xec>
|
|
fd0: 41d8 lw a4,4(a1)
|
|
fd2: 00e04d63 bgtz a4,fec <__sflush_r+0x34>
|
|
fd6: 41b8 lw a4,64(a1)
|
|
fd8: 00e04a63 bgtz a4,fec <__sflush_r+0x34>
|
|
fdc: 4501 li a0,0
|
|
fde: 40f2 lw ra,28(sp)
|
|
fe0: 4462 lw s0,24(sp)
|
|
fe2: 44d2 lw s1,20(sp)
|
|
fe4: 4942 lw s2,16(sp)
|
|
fe6: 49b2 lw s3,12(sp)
|
|
fe8: 6105 addi sp,sp,32
|
|
fea: 8082 ret
|
|
fec: 5458 lw a4,44(s0)
|
|
fee: d77d beqz a4,fdc <__sflush_r+0x24>
|
|
ff0: 0004a903 lw s2,0(s1)
|
|
ff4: 01379693 slli a3,a5,0x13
|
|
ff8: 0004a023 sw zero,0(s1)
|
|
ffc: 0606db63 bgez a3,1072 <__sflush_r+0xba>
|
|
1000: 4870 lw a2,84(s0)
|
|
1002: 245e lhu a5,12(s0)
|
|
1004: 8b91 andi a5,a5,4
|
|
1006: c799 beqz a5,1014 <__sflush_r+0x5c>
|
|
1008: 405c lw a5,4(s0)
|
|
100a: 8e1d sub a2,a2,a5
|
|
100c: 585c lw a5,52(s0)
|
|
100e: c399 beqz a5,1014 <__sflush_r+0x5c>
|
|
1010: 403c lw a5,64(s0)
|
|
1012: 8e1d sub a2,a2,a5
|
|
1014: 545c lw a5,44(s0)
|
|
1016: 500c lw a1,32(s0)
|
|
1018: 4681 li a3,0
|
|
101a: 8526 mv a0,s1
|
|
101c: 9782 jalr a5
|
|
101e: 57fd li a5,-1
|
|
1020: 245a lhu a4,12(s0)
|
|
1022: 00f51d63 bne a0,a5,103c <__sflush_r+0x84>
|
|
1026: 4094 lw a3,0(s1)
|
|
1028: 47f5 li a5,29
|
|
102a: 06d7e863 bltu a5,a3,109a <__sflush_r+0xe2>
|
|
102e: 204007b7 lui a5,0x20400
|
|
1032: 0785 addi a5,a5,1
|
|
1034: 00d7d7b3 srl a5,a5,a3
|
|
1038: 8b85 andi a5,a5,1
|
|
103a: c3a5 beqz a5,109a <__sflush_r+0xe2>
|
|
103c: 481c lw a5,16(s0)
|
|
103e: 00042223 sw zero,4(s0)
|
|
1042: c01c sw a5,0(s0)
|
|
1044: 01371793 slli a5,a4,0x13
|
|
1048: 0007d863 bgez a5,1058 <__sflush_r+0xa0>
|
|
104c: 57fd li a5,-1
|
|
104e: 00f51463 bne a0,a5,1056 <__sflush_r+0x9e>
|
|
1052: 409c lw a5,0(s1)
|
|
1054: e391 bnez a5,1058 <__sflush_r+0xa0>
|
|
1056: c868 sw a0,84(s0)
|
|
1058: 584c lw a1,52(s0)
|
|
105a: 0124a023 sw s2,0(s1)
|
|
105e: ddbd beqz a1,fdc <__sflush_r+0x24>
|
|
1060: 04440793 addi a5,s0,68
|
|
1064: 00f58463 beq a1,a5,106c <__sflush_r+0xb4>
|
|
1068: 8526 mv a0,s1
|
|
106a: 26f5 jal 1456 <_free_r>
|
|
106c: 02042a23 sw zero,52(s0)
|
|
1070: b7b5 j fdc <__sflush_r+0x24>
|
|
1072: 500c lw a1,32(s0)
|
|
1074: 4601 li a2,0
|
|
1076: 4685 li a3,1
|
|
1078: 8526 mv a0,s1
|
|
107a: 9702 jalr a4
|
|
107c: 57fd li a5,-1
|
|
107e: 862a mv a2,a0
|
|
1080: f8f511e3 bne a0,a5,1002 <__sflush_r+0x4a>
|
|
1084: 409c lw a5,0(s1)
|
|
1086: dfb5 beqz a5,1002 <__sflush_r+0x4a>
|
|
1088: 4775 li a4,29
|
|
108a: 00e78563 beq a5,a4,1094 <__sflush_r+0xdc>
|
|
108e: 4759 li a4,22
|
|
1090: 04e79363 bne a5,a4,10d6 <__sflush_r+0x11e>
|
|
1094: 0124a023 sw s2,0(s1)
|
|
1098: b791 j fdc <__sflush_r+0x24>
|
|
109a: 04076713 ori a4,a4,64
|
|
109e: a45a sh a4,12(s0)
|
|
10a0: 557d li a0,-1
|
|
10a2: bf35 j fde <__sflush_r+0x26>
|
|
10a4: 0105a983 lw s3,16(a1)
|
|
10a8: f2098ae3 beqz s3,fdc <__sflush_r+0x24>
|
|
10ac: 0005a903 lw s2,0(a1)
|
|
10b0: 8b8d andi a5,a5,3
|
|
10b2: 0135a023 sw s3,0(a1)
|
|
10b6: 41390933 sub s2,s2,s3
|
|
10ba: 4701 li a4,0
|
|
10bc: e391 bnez a5,10c0 <__sflush_r+0x108>
|
|
10be: 49d8 lw a4,20(a1)
|
|
10c0: c418 sw a4,8(s0)
|
|
10c2: f1205de3 blez s2,fdc <__sflush_r+0x24>
|
|
10c6: 541c lw a5,40(s0)
|
|
10c8: 500c lw a1,32(s0)
|
|
10ca: 86ca mv a3,s2
|
|
10cc: 864e mv a2,s3
|
|
10ce: 8526 mv a0,s1
|
|
10d0: 9782 jalr a5
|
|
10d2: 00a04763 bgtz a0,10e0 <__sflush_r+0x128>
|
|
10d6: 245e lhu a5,12(s0)
|
|
10d8: 0407e793 ori a5,a5,64
|
|
10dc: a45e sh a5,12(s0)
|
|
10de: b7c9 j 10a0 <__sflush_r+0xe8>
|
|
10e0: 99aa add s3,s3,a0
|
|
10e2: 40a90933 sub s2,s2,a0
|
|
10e6: bff1 j 10c2 <__sflush_r+0x10a>
|
|
|
|
000010e8 <_fflush_r>:
|
|
10e8: 499c lw a5,16(a1)
|
|
10ea: cfb9 beqz a5,1148 <_fflush_r+0x60>
|
|
10ec: 1101 addi sp,sp,-32
|
|
10ee: cc22 sw s0,24(sp)
|
|
10f0: ce06 sw ra,28(sp)
|
|
10f2: 842a mv s0,a0
|
|
10f4: c511 beqz a0,1100 <_fflush_r+0x18>
|
|
10f6: 4d1c lw a5,24(a0)
|
|
10f8: e781 bnez a5,1100 <_fflush_r+0x18>
|
|
10fa: c62e sw a1,12(sp)
|
|
10fc: 2219 jal 1202 <__sinit>
|
|
10fe: 45b2 lw a1,12(sp)
|
|
1100: 00001797 auipc a5,0x1
|
|
1104: de878793 addi a5,a5,-536 # 1ee8 <__sf_fake_stdin>
|
|
1108: 00f59b63 bne a1,a5,111e <_fflush_r+0x36>
|
|
110c: 404c lw a1,4(s0)
|
|
110e: 00c59783 lh a5,12(a1)
|
|
1112: c795 beqz a5,113e <_fflush_r+0x56>
|
|
1114: 8522 mv a0,s0
|
|
1116: 4462 lw s0,24(sp)
|
|
1118: 40f2 lw ra,28(sp)
|
|
111a: 6105 addi sp,sp,32
|
|
111c: bd71 j fb8 <__sflush_r>
|
|
111e: 00001797 auipc a5,0x1
|
|
1122: dea78793 addi a5,a5,-534 # 1f08 <__sf_fake_stdout>
|
|
1126: 00f59463 bne a1,a5,112e <_fflush_r+0x46>
|
|
112a: 440c lw a1,8(s0)
|
|
112c: b7cd j 110e <_fflush_r+0x26>
|
|
112e: 00001797 auipc a5,0x1
|
|
1132: d9a78793 addi a5,a5,-614 # 1ec8 <__sf_fake_stderr>
|
|
1136: fcf59ce3 bne a1,a5,110e <_fflush_r+0x26>
|
|
113a: 444c lw a1,12(s0)
|
|
113c: bfc9 j 110e <_fflush_r+0x26>
|
|
113e: 40f2 lw ra,28(sp)
|
|
1140: 4462 lw s0,24(sp)
|
|
1142: 4501 li a0,0
|
|
1144: 6105 addi sp,sp,32
|
|
1146: 8082 ret
|
|
1148: 4501 li a0,0
|
|
114a: 8082 ret
|
|
|
|
0000114c <std>:
|
|
114c: 1141 addi sp,sp,-16
|
|
114e: c422 sw s0,8(sp)
|
|
1150: c606 sw ra,12(sp)
|
|
1152: 842a mv s0,a0
|
|
1154: a54e sh a1,12(a0)
|
|
1156: a572 sh a2,14(a0)
|
|
1158: 00052023 sw zero,0(a0)
|
|
115c: 00052223 sw zero,4(a0)
|
|
1160: 00052423 sw zero,8(a0)
|
|
1164: 06052223 sw zero,100(a0)
|
|
1168: 00052823 sw zero,16(a0)
|
|
116c: 00052a23 sw zero,20(a0)
|
|
1170: 00052c23 sw zero,24(a0)
|
|
1174: 4621 li a2,8
|
|
1176: 4581 li a1,0
|
|
1178: 05c50513 addi a0,a0,92
|
|
117c: 824ff0ef jal ra,1a0 <memset>
|
|
1180: 00001797 auipc a5,0x1
|
|
1184: b1478793 addi a5,a5,-1260 # 1c94 <__sread>
|
|
1188: d05c sw a5,36(s0)
|
|
118a: 00001797 auipc a5,0x1
|
|
118e: b3678793 addi a5,a5,-1226 # 1cc0 <__swrite>
|
|
1192: d41c sw a5,40(s0)
|
|
1194: 00001797 auipc a5,0x1
|
|
1198: b7478793 addi a5,a5,-1164 # 1d08 <__sseek>
|
|
119c: d45c sw a5,44(s0)
|
|
119e: 00001797 auipc a5,0x1
|
|
11a2: b9a78793 addi a5,a5,-1126 # 1d38 <__sclose>
|
|
11a6: d000 sw s0,32(s0)
|
|
11a8: d81c sw a5,48(s0)
|
|
11aa: 40b2 lw ra,12(sp)
|
|
11ac: 4422 lw s0,8(sp)
|
|
11ae: 0141 addi sp,sp,16
|
|
11b0: 8082 ret
|
|
|
|
000011b2 <_cleanup_r>:
|
|
11b2: 00000597 auipc a1,0x0
|
|
11b6: f3658593 addi a1,a1,-202 # 10e8 <_fflush_r>
|
|
11ba: a2a9 j 1304 <_fwalk_reent>
|
|
|
|
000011bc <__sfmoreglue>:
|
|
11bc: 1141 addi sp,sp,-16
|
|
11be: c226 sw s1,4(sp)
|
|
11c0: 06800613 li a2,104
|
|
11c4: fff58493 addi s1,a1,-1
|
|
11c8: 02c484b3 mul s1,s1,a2
|
|
11cc: c04a sw s2,0(sp)
|
|
11ce: 892e mv s2,a1
|
|
11d0: c422 sw s0,8(sp)
|
|
11d2: c606 sw ra,12(sp)
|
|
11d4: 07448593 addi a1,s1,116
|
|
11d8: 261d jal 14fe <_malloc_r>
|
|
11da: 842a mv s0,a0
|
|
11dc: cd01 beqz a0,11f4 <__sfmoreglue+0x38>
|
|
11de: 00052023 sw zero,0(a0)
|
|
11e2: 01252223 sw s2,4(a0)
|
|
11e6: 0531 addi a0,a0,12
|
|
11e8: c408 sw a0,8(s0)
|
|
11ea: 06848613 addi a2,s1,104
|
|
11ee: 4581 li a1,0
|
|
11f0: fb1fe0ef jal ra,1a0 <memset>
|
|
11f4: 8522 mv a0,s0
|
|
11f6: 40b2 lw ra,12(sp)
|
|
11f8: 4422 lw s0,8(sp)
|
|
11fa: 4492 lw s1,4(sp)
|
|
11fc: 4902 lw s2,0(sp)
|
|
11fe: 0141 addi sp,sp,16
|
|
1200: 8082 ret
|
|
|
|
00001202 <__sinit>:
|
|
1202: 4d1c lw a5,24(a0)
|
|
1204: e3ad bnez a5,1266 <__sinit+0x64>
|
|
1206: 1141 addi sp,sp,-16
|
|
1208: c606 sw ra,12(sp)
|
|
120a: c422 sw s0,8(sp)
|
|
120c: 00000797 auipc a5,0x0
|
|
1210: fa678793 addi a5,a5,-90 # 11b2 <_cleanup_r>
|
|
1214: d51c sw a5,40(a0)
|
|
1216: 81018793 addi a5,gp,-2032 # 20000090 <_global_impure_ptr>
|
|
121a: 439c lw a5,0(a5)
|
|
121c: 04052423 sw zero,72(a0)
|
|
1220: 04052623 sw zero,76(a0)
|
|
1224: 04052823 sw zero,80(a0)
|
|
1228: 00f51463 bne a0,a5,1230 <__sinit+0x2e>
|
|
122c: 4785 li a5,1
|
|
122e: cd1c sw a5,24(a0)
|
|
1230: 842a mv s0,a0
|
|
1232: 281d jal 1268 <__sfp>
|
|
1234: c048 sw a0,4(s0)
|
|
1236: 8522 mv a0,s0
|
|
1238: 2805 jal 1268 <__sfp>
|
|
123a: c408 sw a0,8(s0)
|
|
123c: 8522 mv a0,s0
|
|
123e: 202d jal 1268 <__sfp>
|
|
1240: c448 sw a0,12(s0)
|
|
1242: 4048 lw a0,4(s0)
|
|
1244: 4601 li a2,0
|
|
1246: 4591 li a1,4
|
|
1248: 3711 jal 114c <std>
|
|
124a: 4408 lw a0,8(s0)
|
|
124c: 4605 li a2,1
|
|
124e: 45a5 li a1,9
|
|
1250: 3df5 jal 114c <std>
|
|
1252: 4448 lw a0,12(s0)
|
|
1254: 4609 li a2,2
|
|
1256: 45c9 li a1,18
|
|
1258: 3dd5 jal 114c <std>
|
|
125a: 4785 li a5,1
|
|
125c: cc1c sw a5,24(s0)
|
|
125e: 40b2 lw ra,12(sp)
|
|
1260: 4422 lw s0,8(sp)
|
|
1262: 0141 addi sp,sp,16
|
|
1264: 8082 ret
|
|
1266: 8082 ret
|
|
|
|
00001268 <__sfp>:
|
|
1268: 1141 addi sp,sp,-16
|
|
126a: 81018793 addi a5,gp,-2032 # 20000090 <_global_impure_ptr>
|
|
126e: c226 sw s1,4(sp)
|
|
1270: 4384 lw s1,0(a5)
|
|
1272: c04a sw s2,0(sp)
|
|
1274: c606 sw ra,12(sp)
|
|
1276: 4c9c lw a5,24(s1)
|
|
1278: c422 sw s0,8(sp)
|
|
127a: 892a mv s2,a0
|
|
127c: e399 bnez a5,1282 <__sfp+0x1a>
|
|
127e: 8526 mv a0,s1
|
|
1280: 3749 jal 1202 <__sinit>
|
|
1282: 04848493 addi s1,s1,72
|
|
1286: 4480 lw s0,8(s1)
|
|
1288: 40dc lw a5,4(s1)
|
|
128a: 17fd addi a5,a5,-1
|
|
128c: 0007d663 bgez a5,1298 <__sfp+0x30>
|
|
1290: 409c lw a5,0(s1)
|
|
1292: cfb9 beqz a5,12f0 <__sfp+0x88>
|
|
1294: 4084 lw s1,0(s1)
|
|
1296: bfc5 j 1286 <__sfp+0x1e>
|
|
1298: 00c41703 lh a4,12(s0)
|
|
129c: e739 bnez a4,12ea <__sfp+0x82>
|
|
129e: 77c1 lui a5,0xffff0
|
|
12a0: 0785 addi a5,a5,1
|
|
12a2: 06042223 sw zero,100(s0)
|
|
12a6: 00042023 sw zero,0(s0)
|
|
12aa: 00042223 sw zero,4(s0)
|
|
12ae: 00042423 sw zero,8(s0)
|
|
12b2: c45c sw a5,12(s0)
|
|
12b4: 00042823 sw zero,16(s0)
|
|
12b8: 00042a23 sw zero,20(s0)
|
|
12bc: 00042c23 sw zero,24(s0)
|
|
12c0: 4621 li a2,8
|
|
12c2: 4581 li a1,0
|
|
12c4: 05c40513 addi a0,s0,92
|
|
12c8: ed9fe0ef jal ra,1a0 <memset>
|
|
12cc: 02042a23 sw zero,52(s0)
|
|
12d0: 02042c23 sw zero,56(s0)
|
|
12d4: 04042423 sw zero,72(s0)
|
|
12d8: 04042623 sw zero,76(s0)
|
|
12dc: 8522 mv a0,s0
|
|
12de: 40b2 lw ra,12(sp)
|
|
12e0: 4422 lw s0,8(sp)
|
|
12e2: 4492 lw s1,4(sp)
|
|
12e4: 4902 lw s2,0(sp)
|
|
12e6: 0141 addi sp,sp,16
|
|
12e8: 8082 ret
|
|
12ea: 06840413 addi s0,s0,104
|
|
12ee: bf71 j 128a <__sfp+0x22>
|
|
12f0: 4591 li a1,4
|
|
12f2: 854a mv a0,s2
|
|
12f4: 35e1 jal 11bc <__sfmoreglue>
|
|
12f6: c088 sw a0,0(s1)
|
|
12f8: fd51 bnez a0,1294 <__sfp+0x2c>
|
|
12fa: 47b1 li a5,12
|
|
12fc: 00f92023 sw a5,0(s2)
|
|
1300: 4401 li s0,0
|
|
1302: bfe9 j 12dc <__sfp+0x74>
|
|
|
|
00001304 <_fwalk_reent>:
|
|
1304: 7179 addi sp,sp,-48
|
|
1306: d422 sw s0,40(sp)
|
|
1308: d04a sw s2,32(sp)
|
|
130a: cc52 sw s4,24(sp)
|
|
130c: ca56 sw s5,20(sp)
|
|
130e: c85a sw s6,16(sp)
|
|
1310: c65e sw s7,12(sp)
|
|
1312: d606 sw ra,44(sp)
|
|
1314: d226 sw s1,36(sp)
|
|
1316: ce4e sw s3,28(sp)
|
|
1318: 8a2a mv s4,a0
|
|
131a: 8aae mv s5,a1
|
|
131c: 04850413 addi s0,a0,72
|
|
1320: 4901 li s2,0
|
|
1322: 4b05 li s6,1
|
|
1324: 5bfd li s7,-1
|
|
1326: ec09 bnez s0,1340 <_fwalk_reent+0x3c>
|
|
1328: 50b2 lw ra,44(sp)
|
|
132a: 5422 lw s0,40(sp)
|
|
132c: 854a mv a0,s2
|
|
132e: 5492 lw s1,36(sp)
|
|
1330: 5902 lw s2,32(sp)
|
|
1332: 49f2 lw s3,28(sp)
|
|
1334: 4a62 lw s4,24(sp)
|
|
1336: 4ad2 lw s5,20(sp)
|
|
1338: 4b42 lw s6,16(sp)
|
|
133a: 4bb2 lw s7,12(sp)
|
|
133c: 6145 addi sp,sp,48
|
|
133e: 8082 ret
|
|
1340: 4404 lw s1,8(s0)
|
|
1342: 00442983 lw s3,4(s0)
|
|
1346: 19fd addi s3,s3,-1
|
|
1348: 0009d463 bgez s3,1350 <_fwalk_reent+0x4c>
|
|
134c: 4000 lw s0,0(s0)
|
|
134e: bfe1 j 1326 <_fwalk_reent+0x22>
|
|
1350: 24de lhu a5,12(s1)
|
|
1352: 00fb7b63 bgeu s6,a5,1368 <_fwalk_reent+0x64>
|
|
1356: 00e49783 lh a5,14(s1)
|
|
135a: 01778763 beq a5,s7,1368 <_fwalk_reent+0x64>
|
|
135e: 85a6 mv a1,s1
|
|
1360: 8552 mv a0,s4
|
|
1362: 9a82 jalr s5
|
|
1364: 00a96933 or s2,s2,a0
|
|
1368: 06848493 addi s1,s1,104
|
|
136c: bfe9 j 1346 <_fwalk_reent+0x42>
|
|
|
|
0000136e <__swhatbuf_r>:
|
|
136e: 7119 addi sp,sp,-128
|
|
1370: daa6 sw s1,116(sp)
|
|
1372: 84ae mv s1,a1
|
|
1374: 00e59583 lh a1,14(a1)
|
|
1378: dca2 sw s0,120(sp)
|
|
137a: de86 sw ra,124(sp)
|
|
137c: 8432 mv s0,a2
|
|
137e: 0005db63 bgez a1,1394 <__swhatbuf_r+0x26>
|
|
1382: 24de lhu a5,12(s1)
|
|
1384: 0006a023 sw zero,0(a3)
|
|
1388: 0807f793 andi a5,a5,128
|
|
138c: e785 bnez a5,13b4 <__swhatbuf_r+0x46>
|
|
138e: 40000793 li a5,1024
|
|
1392: a01d j 13b8 <__swhatbuf_r+0x4a>
|
|
1394: 0830 addi a2,sp,24
|
|
1396: c636 sw a3,12(sp)
|
|
1398: 1fd000ef jal ra,1d94 <_fstat_r>
|
|
139c: 46b2 lw a3,12(sp)
|
|
139e: fe0542e3 bltz a0,1382 <__swhatbuf_r+0x14>
|
|
13a2: 4772 lw a4,28(sp)
|
|
13a4: 67bd lui a5,0xf
|
|
13a6: 8ff9 and a5,a5,a4
|
|
13a8: 7779 lui a4,0xffffe
|
|
13aa: 97ba add a5,a5,a4
|
|
13ac: 0017b793 seqz a5,a5
|
|
13b0: c29c sw a5,0(a3)
|
|
13b2: bff1 j 138e <__swhatbuf_r+0x20>
|
|
13b4: 04000793 li a5,64
|
|
13b8: c01c sw a5,0(s0)
|
|
13ba: 50f6 lw ra,124(sp)
|
|
13bc: 5466 lw s0,120(sp)
|
|
13be: 54d6 lw s1,116(sp)
|
|
13c0: 4501 li a0,0
|
|
13c2: 6109 addi sp,sp,128
|
|
13c4: 8082 ret
|
|
|
|
000013c6 <__smakebuf_r>:
|
|
13c6: 25de lhu a5,12(a1)
|
|
13c8: 1101 addi sp,sp,-32
|
|
13ca: cc22 sw s0,24(sp)
|
|
13cc: ce06 sw ra,28(sp)
|
|
13ce: ca26 sw s1,20(sp)
|
|
13d0: c84a sw s2,16(sp)
|
|
13d2: 8b89 andi a5,a5,2
|
|
13d4: 842e mv s0,a1
|
|
13d6: cf89 beqz a5,13f0 <__smakebuf_r+0x2a>
|
|
13d8: 04740793 addi a5,s0,71
|
|
13dc: c01c sw a5,0(s0)
|
|
13de: c81c sw a5,16(s0)
|
|
13e0: 4785 li a5,1
|
|
13e2: c85c sw a5,20(s0)
|
|
13e4: 40f2 lw ra,28(sp)
|
|
13e6: 4462 lw s0,24(sp)
|
|
13e8: 44d2 lw s1,20(sp)
|
|
13ea: 4942 lw s2,16(sp)
|
|
13ec: 6105 addi sp,sp,32
|
|
13ee: 8082 ret
|
|
13f0: 0074 addi a3,sp,12
|
|
13f2: 0030 addi a2,sp,8
|
|
13f4: 84aa mv s1,a0
|
|
13f6: 3fa5 jal 136e <__swhatbuf_r>
|
|
13f8: 45a2 lw a1,8(sp)
|
|
13fa: 892a mv s2,a0
|
|
13fc: 8526 mv a0,s1
|
|
13fe: 2201 jal 14fe <_malloc_r>
|
|
1400: e919 bnez a0,1416 <__smakebuf_r+0x50>
|
|
1402: 00c41783 lh a5,12(s0)
|
|
1406: 2007f713 andi a4,a5,512
|
|
140a: ff69 bnez a4,13e4 <__smakebuf_r+0x1e>
|
|
140c: 9bf1 andi a5,a5,-4
|
|
140e: 0027e793 ori a5,a5,2
|
|
1412: a45e sh a5,12(s0)
|
|
1414: b7d1 j 13d8 <__smakebuf_r+0x12>
|
|
1416: 00000797 auipc a5,0x0
|
|
141a: d9c78793 addi a5,a5,-612 # 11b2 <_cleanup_r>
|
|
141e: d49c sw a5,40(s1)
|
|
1420: 245e lhu a5,12(s0)
|
|
1422: c008 sw a0,0(s0)
|
|
1424: c808 sw a0,16(s0)
|
|
1426: 0807e793 ori a5,a5,128
|
|
142a: a45e sh a5,12(s0)
|
|
142c: 47a2 lw a5,8(sp)
|
|
142e: c85c sw a5,20(s0)
|
|
1430: 47b2 lw a5,12(sp)
|
|
1432: cf81 beqz a5,144a <__smakebuf_r+0x84>
|
|
1434: 00e41583 lh a1,14(s0)
|
|
1438: 8526 mv a0,s1
|
|
143a: 185000ef jal ra,1dbe <_isatty_r>
|
|
143e: c511 beqz a0,144a <__smakebuf_r+0x84>
|
|
1440: 245e lhu a5,12(s0)
|
|
1442: 9bf1 andi a5,a5,-4
|
|
1444: 0017e793 ori a5,a5,1
|
|
1448: a45e sh a5,12(s0)
|
|
144a: 245e lhu a5,12(s0)
|
|
144c: 00f96933 or s2,s2,a5
|
|
1450: 01241623 sh s2,12(s0)
|
|
1454: bf41 j 13e4 <__smakebuf_r+0x1e>
|
|
|
|
00001456 <_free_r>:
|
|
1456: c1dd beqz a1,14fc <_free_r+0xa6>
|
|
1458: ffc5a783 lw a5,-4(a1)
|
|
145c: 1141 addi sp,sp,-16
|
|
145e: c422 sw s0,8(sp)
|
|
1460: c606 sw ra,12(sp)
|
|
1462: c226 sw s1,4(sp)
|
|
1464: ffc58413 addi s0,a1,-4
|
|
1468: 0007d363 bgez a5,146e <_free_r+0x18>
|
|
146c: 943e add s0,s0,a5
|
|
146e: 84aa mv s1,a0
|
|
1470: 1bb000ef jal ra,1e2a <__malloc_lock>
|
|
1474: 84418793 addi a5,gp,-1980 # 200000c4 <__malloc_free_list>
|
|
1478: 439c lw a5,0(a5)
|
|
147a: ef81 bnez a5,1492 <_free_r+0x3c>
|
|
147c: 00042223 sw zero,4(s0)
|
|
1480: 8481a223 sw s0,-1980(gp) # 200000c4 <__malloc_free_list>
|
|
1484: 4422 lw s0,8(sp)
|
|
1486: 40b2 lw ra,12(sp)
|
|
1488: 8526 mv a0,s1
|
|
148a: 4492 lw s1,4(sp)
|
|
148c: 0141 addi sp,sp,16
|
|
148e: 19f0006f j 1e2c <__malloc_unlock>
|
|
1492: 00f47e63 bgeu s0,a5,14ae <_free_r+0x58>
|
|
1496: 4014 lw a3,0(s0)
|
|
1498: 00d40733 add a4,s0,a3
|
|
149c: 00e79663 bne a5,a4,14a8 <_free_r+0x52>
|
|
14a0: 4398 lw a4,0(a5)
|
|
14a2: 43dc lw a5,4(a5)
|
|
14a4: 9736 add a4,a4,a3
|
|
14a6: c018 sw a4,0(s0)
|
|
14a8: c05c sw a5,4(s0)
|
|
14aa: bfd9 j 1480 <_free_r+0x2a>
|
|
14ac: 87ba mv a5,a4
|
|
14ae: 43d8 lw a4,4(a5)
|
|
14b0: c319 beqz a4,14b6 <_free_r+0x60>
|
|
14b2: fee47de3 bgeu s0,a4,14ac <_free_r+0x56>
|
|
14b6: 4394 lw a3,0(a5)
|
|
14b8: 00d78633 add a2,a5,a3
|
|
14bc: 00861f63 bne a2,s0,14da <_free_r+0x84>
|
|
14c0: 4010 lw a2,0(s0)
|
|
14c2: 96b2 add a3,a3,a2
|
|
14c4: c394 sw a3,0(a5)
|
|
14c6: 00d78633 add a2,a5,a3
|
|
14ca: fac71de3 bne a4,a2,1484 <_free_r+0x2e>
|
|
14ce: 4310 lw a2,0(a4)
|
|
14d0: 4358 lw a4,4(a4)
|
|
14d2: 96b2 add a3,a3,a2
|
|
14d4: c394 sw a3,0(a5)
|
|
14d6: c3d8 sw a4,4(a5)
|
|
14d8: b775 j 1484 <_free_r+0x2e>
|
|
14da: 00c47563 bgeu s0,a2,14e4 <_free_r+0x8e>
|
|
14de: 47b1 li a5,12
|
|
14e0: c09c sw a5,0(s1)
|
|
14e2: b74d j 1484 <_free_r+0x2e>
|
|
14e4: 4010 lw a2,0(s0)
|
|
14e6: 00c406b3 add a3,s0,a2
|
|
14ea: 00d71663 bne a4,a3,14f6 <_free_r+0xa0>
|
|
14ee: 4314 lw a3,0(a4)
|
|
14f0: 4358 lw a4,4(a4)
|
|
14f2: 96b2 add a3,a3,a2
|
|
14f4: c014 sw a3,0(s0)
|
|
14f6: c058 sw a4,4(s0)
|
|
14f8: c3c0 sw s0,4(a5)
|
|
14fa: b769 j 1484 <_free_r+0x2e>
|
|
14fc: 8082 ret
|
|
|
|
000014fe <_malloc_r>:
|
|
14fe: 1101 addi sp,sp,-32
|
|
1500: ca26 sw s1,20(sp)
|
|
1502: 00358493 addi s1,a1,3
|
|
1506: 98f1 andi s1,s1,-4
|
|
1508: ce06 sw ra,28(sp)
|
|
150a: cc22 sw s0,24(sp)
|
|
150c: c84a sw s2,16(sp)
|
|
150e: c64e sw s3,12(sp)
|
|
1510: 04a1 addi s1,s1,8
|
|
1512: 47b1 li a5,12
|
|
1514: 04f4f363 bgeu s1,a5,155a <_malloc_r+0x5c>
|
|
1518: 44b1 li s1,12
|
|
151a: 04b4e263 bltu s1,a1,155e <_malloc_r+0x60>
|
|
151e: 892a mv s2,a0
|
|
1520: 10b000ef jal ra,1e2a <__malloc_lock>
|
|
1524: 84418793 addi a5,gp,-1980 # 200000c4 <__malloc_free_list>
|
|
1528: 4398 lw a4,0(a5)
|
|
152a: 843a mv s0,a4
|
|
152c: e039 bnez s0,1572 <_malloc_r+0x74>
|
|
152e: 84818793 addi a5,gp,-1976 # 200000c8 <__malloc_sbrk_start>
|
|
1532: 439c lw a5,0(a5)
|
|
1534: e791 bnez a5,1540 <_malloc_r+0x42>
|
|
1536: 4581 li a1,0
|
|
1538: 854a mv a0,s2
|
|
153a: 2f05 jal 1c6a <_sbrk_r>
|
|
153c: 84a1a423 sw a0,-1976(gp) # 200000c8 <__malloc_sbrk_start>
|
|
1540: 85a6 mv a1,s1
|
|
1542: 854a mv a0,s2
|
|
1544: 271d jal 1c6a <_sbrk_r>
|
|
1546: 59fd li s3,-1
|
|
1548: 07351963 bne a0,s3,15ba <_malloc_r+0xbc>
|
|
154c: 47b1 li a5,12
|
|
154e: 00f92023 sw a5,0(s2)
|
|
1552: 854a mv a0,s2
|
|
1554: 0d9000ef jal ra,1e2c <__malloc_unlock>
|
|
1558: a029 j 1562 <_malloc_r+0x64>
|
|
155a: fc04d0e3 bgez s1,151a <_malloc_r+0x1c>
|
|
155e: 47b1 li a5,12
|
|
1560: c11c sw a5,0(a0)
|
|
1562: 4501 li a0,0
|
|
1564: 40f2 lw ra,28(sp)
|
|
1566: 4462 lw s0,24(sp)
|
|
1568: 44d2 lw s1,20(sp)
|
|
156a: 4942 lw s2,16(sp)
|
|
156c: 49b2 lw s3,12(sp)
|
|
156e: 6105 addi sp,sp,32
|
|
1570: 8082 ret
|
|
1572: 401c lw a5,0(s0)
|
|
1574: 8f85 sub a5,a5,s1
|
|
1576: 0207cf63 bltz a5,15b4 <_malloc_r+0xb6>
|
|
157a: 46ad li a3,11
|
|
157c: 00f6f663 bgeu a3,a5,1588 <_malloc_r+0x8a>
|
|
1580: c01c sw a5,0(s0)
|
|
1582: 943e add s0,s0,a5
|
|
1584: c004 sw s1,0(s0)
|
|
1586: a031 j 1592 <_malloc_r+0x94>
|
|
1588: 405c lw a5,4(s0)
|
|
158a: 02871363 bne a4,s0,15b0 <_malloc_r+0xb2>
|
|
158e: 84f1a223 sw a5,-1980(gp) # 200000c4 <__malloc_free_list>
|
|
1592: 854a mv a0,s2
|
|
1594: 099000ef jal ra,1e2c <__malloc_unlock>
|
|
1598: 00b40513 addi a0,s0,11
|
|
159c: 00440793 addi a5,s0,4
|
|
15a0: 9961 andi a0,a0,-8
|
|
15a2: 40f50733 sub a4,a0,a5
|
|
15a6: df5d beqz a4,1564 <_malloc_r+0x66>
|
|
15a8: 943a add s0,s0,a4
|
|
15aa: 8f89 sub a5,a5,a0
|
|
15ac: c01c sw a5,0(s0)
|
|
15ae: bf5d j 1564 <_malloc_r+0x66>
|
|
15b0: c35c sw a5,4(a4)
|
|
15b2: b7c5 j 1592 <_malloc_r+0x94>
|
|
15b4: 8722 mv a4,s0
|
|
15b6: 4040 lw s0,4(s0)
|
|
15b8: bf95 j 152c <_malloc_r+0x2e>
|
|
15ba: 00350413 addi s0,a0,3
|
|
15be: 9871 andi s0,s0,-4
|
|
15c0: fc8502e3 beq a0,s0,1584 <_malloc_r+0x86>
|
|
15c4: 40a405b3 sub a1,s0,a0
|
|
15c8: 854a mv a0,s2
|
|
15ca: 2545 jal 1c6a <_sbrk_r>
|
|
15cc: fb351ce3 bne a0,s3,1584 <_malloc_r+0x86>
|
|
15d0: bfb5 j 154c <_malloc_r+0x4e>
|
|
|
|
000015d2 <__sfputc_r>:
|
|
15d2: 461c lw a5,8(a2)
|
|
15d4: 17fd addi a5,a5,-1
|
|
15d6: c61c sw a5,8(a2)
|
|
15d8: 0007da63 bgez a5,15ec <__sfputc_r+0x1a>
|
|
15dc: 4e18 lw a4,24(a2)
|
|
15de: 00e7c563 blt a5,a4,15e8 <__sfputc_r+0x16>
|
|
15e2: 47a9 li a5,10
|
|
15e4: 00f59463 bne a1,a5,15ec <__sfputc_r+0x1a>
|
|
15e8: 819ff06f j e00 <__swbuf_r>
|
|
15ec: 421c lw a5,0(a2)
|
|
15ee: 852e mv a0,a1
|
|
15f0: 00178713 addi a4,a5,1
|
|
15f4: c218 sw a4,0(a2)
|
|
15f6: a38c sb a1,0(a5)
|
|
15f8: 8082 ret
|
|
|
|
000015fa <__sfputs_r>:
|
|
15fa: 1101 addi sp,sp,-32
|
|
15fc: cc22 sw s0,24(sp)
|
|
15fe: ca26 sw s1,20(sp)
|
|
1600: c84a sw s2,16(sp)
|
|
1602: c64e sw s3,12(sp)
|
|
1604: c452 sw s4,8(sp)
|
|
1606: ce06 sw ra,28(sp)
|
|
1608: 892a mv s2,a0
|
|
160a: 89ae mv s3,a1
|
|
160c: 8432 mv s0,a2
|
|
160e: 00d604b3 add s1,a2,a3
|
|
1612: 5a7d li s4,-1
|
|
1614: 00941463 bne s0,s1,161c <__sfputs_r+0x22>
|
|
1618: 4501 li a0,0
|
|
161a: a801 j 162a <__sfputs_r+0x30>
|
|
161c: 200c lbu a1,0(s0)
|
|
161e: 864e mv a2,s3
|
|
1620: 854a mv a0,s2
|
|
1622: 3f45 jal 15d2 <__sfputc_r>
|
|
1624: 0405 addi s0,s0,1
|
|
1626: ff4517e3 bne a0,s4,1614 <__sfputs_r+0x1a>
|
|
162a: 40f2 lw ra,28(sp)
|
|
162c: 4462 lw s0,24(sp)
|
|
162e: 44d2 lw s1,20(sp)
|
|
1630: 4942 lw s2,16(sp)
|
|
1632: 49b2 lw s3,12(sp)
|
|
1634: 4a22 lw s4,8(sp)
|
|
1636: 6105 addi sp,sp,32
|
|
1638: 8082 ret
|
|
|
|
0000163a <_vfiprintf_r>:
|
|
163a: 7135 addi sp,sp,-160
|
|
163c: cd22 sw s0,152(sp)
|
|
163e: cb26 sw s1,148(sp)
|
|
1640: c94a sw s2,144(sp)
|
|
1642: c74e sw s3,140(sp)
|
|
1644: cf06 sw ra,156(sp)
|
|
1646: c552 sw s4,136(sp)
|
|
1648: c356 sw s5,132(sp)
|
|
164a: c15a sw s6,128(sp)
|
|
164c: dede sw s7,124(sp)
|
|
164e: dce2 sw s8,120(sp)
|
|
1650: dae6 sw s9,116(sp)
|
|
1652: 89aa mv s3,a0
|
|
1654: 84ae mv s1,a1
|
|
1656: 8932 mv s2,a2
|
|
1658: 8436 mv s0,a3
|
|
165a: c501 beqz a0,1662 <_vfiprintf_r+0x28>
|
|
165c: 4d1c lw a5,24(a0)
|
|
165e: e391 bnez a5,1662 <_vfiprintf_r+0x28>
|
|
1660: 364d jal 1202 <__sinit>
|
|
1662: 00001797 auipc a5,0x1
|
|
1666: 88678793 addi a5,a5,-1914 # 1ee8 <__sf_fake_stdin>
|
|
166a: 0cf49763 bne s1,a5,1738 <_vfiprintf_r+0xfe>
|
|
166e: 0049a483 lw s1,4(s3)
|
|
1672: 24de lhu a5,12(s1)
|
|
1674: 8ba1 andi a5,a5,8
|
|
1676: c3fd beqz a5,175c <_vfiprintf_r+0x122>
|
|
1678: 489c lw a5,16(s1)
|
|
167a: c3ed beqz a5,175c <_vfiprintf_r+0x122>
|
|
167c: 02000793 li a5,32
|
|
1680: 02f104a3 sb a5,41(sp)
|
|
1684: 03000793 li a5,48
|
|
1688: d202 sw zero,36(sp)
|
|
168a: 02f10523 sb a5,42(sp)
|
|
168e: c622 sw s0,12(sp)
|
|
1690: 02500b93 li s7,37
|
|
1694: 00001a97 auipc s5,0x1
|
|
1698: 894a8a93 addi s5,s5,-1900 # 1f28 <__sf_fake_stdout+0x20>
|
|
169c: 4c05 li s8,1
|
|
169e: 4b29 li s6,10
|
|
16a0: 844a mv s0,s2
|
|
16a2: 201c lbu a5,0(s0)
|
|
16a4: c399 beqz a5,16aa <_vfiprintf_r+0x70>
|
|
16a6: 0d779e63 bne a5,s7,1782 <_vfiprintf_r+0x148>
|
|
16aa: 41240cb3 sub s9,s0,s2
|
|
16ae: 000c8d63 beqz s9,16c8 <_vfiprintf_r+0x8e>
|
|
16b2: 86e6 mv a3,s9
|
|
16b4: 864a mv a2,s2
|
|
16b6: 85a6 mv a1,s1
|
|
16b8: 854e mv a0,s3
|
|
16ba: 3781 jal 15fa <__sfputs_r>
|
|
16bc: 57fd li a5,-1
|
|
16be: 1cf50f63 beq a0,a5,189c <_vfiprintf_r+0x262>
|
|
16c2: 5692 lw a3,36(sp)
|
|
16c4: 96e6 add a3,a3,s9
|
|
16c6: d236 sw a3,36(sp)
|
|
16c8: 201c lbu a5,0(s0)
|
|
16ca: 1c078963 beqz a5,189c <_vfiprintf_r+0x262>
|
|
16ce: 57fd li a5,-1
|
|
16d0: 00140913 addi s2,s0,1
|
|
16d4: c802 sw zero,16(sp)
|
|
16d6: ce02 sw zero,28(sp)
|
|
16d8: ca3e sw a5,20(sp)
|
|
16da: cc02 sw zero,24(sp)
|
|
16dc: 040109a3 sb zero,83(sp)
|
|
16e0: d482 sw zero,104(sp)
|
|
16e2: 00094583 lbu a1,0(s2)
|
|
16e6: 4615 li a2,5
|
|
16e8: 8556 mv a0,s5
|
|
16ea: 2725 jal 1e12 <memchr>
|
|
16ec: 00190413 addi s0,s2,1
|
|
16f0: 47c2 lw a5,16(sp)
|
|
16f2: e951 bnez a0,1786 <_vfiprintf_r+0x14c>
|
|
16f4: 0107f713 andi a4,a5,16
|
|
16f8: c709 beqz a4,1702 <_vfiprintf_r+0xc8>
|
|
16fa: 02000713 li a4,32
|
|
16fe: 04e109a3 sb a4,83(sp)
|
|
1702: 0087f713 andi a4,a5,8
|
|
1706: c709 beqz a4,1710 <_vfiprintf_r+0xd6>
|
|
1708: 02b00713 li a4,43
|
|
170c: 04e109a3 sb a4,83(sp)
|
|
1710: 00094683 lbu a3,0(s2)
|
|
1714: 02a00713 li a4,42
|
|
1718: 06e68f63 beq a3,a4,1796 <_vfiprintf_r+0x15c>
|
|
171c: 47f2 lw a5,28(sp)
|
|
171e: 844a mv s0,s2
|
|
1720: 4681 li a3,0
|
|
1722: 4625 li a2,9
|
|
1724: 2018 lbu a4,0(s0)
|
|
1726: 00140593 addi a1,s0,1
|
|
172a: fd070713 addi a4,a4,-48 # ffffdfd0 <_eusrstack+0xdfff8fd0>
|
|
172e: 0ae67763 bgeu a2,a4,17dc <_vfiprintf_r+0x1a2>
|
|
1732: cab5 beqz a3,17a6 <_vfiprintf_r+0x16c>
|
|
1734: ce3e sw a5,28(sp)
|
|
1736: a885 j 17a6 <_vfiprintf_r+0x16c>
|
|
1738: 00000797 auipc a5,0x0
|
|
173c: 7d078793 addi a5,a5,2000 # 1f08 <__sf_fake_stdout>
|
|
1740: 00f49563 bne s1,a5,174a <_vfiprintf_r+0x110>
|
|
1744: 0089a483 lw s1,8(s3)
|
|
1748: b72d j 1672 <_vfiprintf_r+0x38>
|
|
174a: 00000797 auipc a5,0x0
|
|
174e: 77e78793 addi a5,a5,1918 # 1ec8 <__sf_fake_stderr>
|
|
1752: f2f490e3 bne s1,a5,1672 <_vfiprintf_r+0x38>
|
|
1756: 00c9a483 lw s1,12(s3)
|
|
175a: bf21 j 1672 <_vfiprintf_r+0x38>
|
|
175c: 85a6 mv a1,s1
|
|
175e: 854e mv a0,s3
|
|
1760: f5cff0ef jal ra,ebc <__swsetup_r>
|
|
1764: dd01 beqz a0,167c <_vfiprintf_r+0x42>
|
|
1766: 557d li a0,-1
|
|
1768: 40fa lw ra,156(sp)
|
|
176a: 446a lw s0,152(sp)
|
|
176c: 44da lw s1,148(sp)
|
|
176e: 494a lw s2,144(sp)
|
|
1770: 49ba lw s3,140(sp)
|
|
1772: 4a2a lw s4,136(sp)
|
|
1774: 4a9a lw s5,132(sp)
|
|
1776: 4b0a lw s6,128(sp)
|
|
1778: 5bf6 lw s7,124(sp)
|
|
177a: 5c66 lw s8,120(sp)
|
|
177c: 5cd6 lw s9,116(sp)
|
|
177e: 610d addi sp,sp,160
|
|
1780: 8082 ret
|
|
1782: 0405 addi s0,s0,1
|
|
1784: bf39 j 16a2 <_vfiprintf_r+0x68>
|
|
1786: 41550533 sub a0,a0,s5
|
|
178a: 00ac1533 sll a0,s8,a0
|
|
178e: 8fc9 or a5,a5,a0
|
|
1790: c83e sw a5,16(sp)
|
|
1792: 8922 mv s2,s0
|
|
1794: b7b9 j 16e2 <_vfiprintf_r+0xa8>
|
|
1796: 4732 lw a4,12(sp)
|
|
1798: 00470693 addi a3,a4,4
|
|
179c: 4318 lw a4,0(a4)
|
|
179e: c636 sw a3,12(sp)
|
|
17a0: 02074763 bltz a4,17ce <_vfiprintf_r+0x194>
|
|
17a4: ce3a sw a4,28(sp)
|
|
17a6: 2018 lbu a4,0(s0)
|
|
17a8: 02e00793 li a5,46
|
|
17ac: 04f71d63 bne a4,a5,1806 <_vfiprintf_r+0x1cc>
|
|
17b0: 3018 lbu a4,1(s0)
|
|
17b2: 02a00793 li a5,42
|
|
17b6: 02f71b63 bne a4,a5,17ec <_vfiprintf_r+0x1b2>
|
|
17ba: 47b2 lw a5,12(sp)
|
|
17bc: 0409 addi s0,s0,2
|
|
17be: 00478713 addi a4,a5,4
|
|
17c2: 439c lw a5,0(a5)
|
|
17c4: c63a sw a4,12(sp)
|
|
17c6: 0207c163 bltz a5,17e8 <_vfiprintf_r+0x1ae>
|
|
17ca: ca3e sw a5,20(sp)
|
|
17cc: a82d j 1806 <_vfiprintf_r+0x1cc>
|
|
17ce: 40e00733 neg a4,a4
|
|
17d2: 0027e793 ori a5,a5,2
|
|
17d6: ce3a sw a4,28(sp)
|
|
17d8: c83e sw a5,16(sp)
|
|
17da: b7f1 j 17a6 <_vfiprintf_r+0x16c>
|
|
17dc: 036787b3 mul a5,a5,s6
|
|
17e0: 4685 li a3,1
|
|
17e2: 842e mv s0,a1
|
|
17e4: 97ba add a5,a5,a4
|
|
17e6: bf3d j 1724 <_vfiprintf_r+0xea>
|
|
17e8: 57fd li a5,-1
|
|
17ea: b7c5 j 17ca <_vfiprintf_r+0x190>
|
|
17ec: 0405 addi s0,s0,1
|
|
17ee: ca02 sw zero,20(sp)
|
|
17f0: 4681 li a3,0
|
|
17f2: 4781 li a5,0
|
|
17f4: 4625 li a2,9
|
|
17f6: 2018 lbu a4,0(s0)
|
|
17f8: 00140593 addi a1,s0,1
|
|
17fc: fd070713 addi a4,a4,-48
|
|
1800: 06e67463 bgeu a2,a4,1868 <_vfiprintf_r+0x22e>
|
|
1804: f2f9 bnez a3,17ca <_vfiprintf_r+0x190>
|
|
1806: 200c lbu a1,0(s0)
|
|
1808: 460d li a2,3
|
|
180a: 00000517 auipc a0,0x0
|
|
180e: 72650513 addi a0,a0,1830 # 1f30 <__sf_fake_stdout+0x28>
|
|
1812: 2501 jal 1e12 <memchr>
|
|
1814: cd11 beqz a0,1830 <_vfiprintf_r+0x1f6>
|
|
1816: 00000797 auipc a5,0x0
|
|
181a: 71a78793 addi a5,a5,1818 # 1f30 <__sf_fake_stdout+0x28>
|
|
181e: 8d1d sub a0,a0,a5
|
|
1820: 04000793 li a5,64
|
|
1824: 00a797b3 sll a5,a5,a0
|
|
1828: 4542 lw a0,16(sp)
|
|
182a: 0405 addi s0,s0,1
|
|
182c: 8d5d or a0,a0,a5
|
|
182e: c82a sw a0,16(sp)
|
|
1830: 200c lbu a1,0(s0)
|
|
1832: 4619 li a2,6
|
|
1834: 00000517 auipc a0,0x0
|
|
1838: 70050513 addi a0,a0,1792 # 1f34 <__sf_fake_stdout+0x2c>
|
|
183c: 00140913 addi s2,s0,1
|
|
1840: 02b10423 sb a1,40(sp)
|
|
1844: 23f9 jal 1e12 <memchr>
|
|
1846: c135 beqz a0,18aa <_vfiprintf_r+0x270>
|
|
1848: ffffe797 auipc a5,0xffffe
|
|
184c: 7b878793 addi a5,a5,1976 # 0 <_sinit>
|
|
1850: e795 bnez a5,187c <_vfiprintf_r+0x242>
|
|
1852: 4742 lw a4,16(sp)
|
|
1854: 47b2 lw a5,12(sp)
|
|
1856: 10077713 andi a4,a4,256
|
|
185a: cf09 beqz a4,1874 <_vfiprintf_r+0x23a>
|
|
185c: 0791 addi a5,a5,4
|
|
185e: c63e sw a5,12(sp)
|
|
1860: 5792 lw a5,36(sp)
|
|
1862: 97d2 add a5,a5,s4
|
|
1864: d23e sw a5,36(sp)
|
|
1866: bd2d j 16a0 <_vfiprintf_r+0x66>
|
|
1868: 036787b3 mul a5,a5,s6
|
|
186c: 4685 li a3,1
|
|
186e: 842e mv s0,a1
|
|
1870: 97ba add a5,a5,a4
|
|
1872: b751 j 17f6 <_vfiprintf_r+0x1bc>
|
|
1874: 079d addi a5,a5,7
|
|
1876: 9be1 andi a5,a5,-8
|
|
1878: 07a1 addi a5,a5,8
|
|
187a: b7d5 j 185e <_vfiprintf_r+0x224>
|
|
187c: 0078 addi a4,sp,12
|
|
187e: 00000697 auipc a3,0x0
|
|
1882: d7c68693 addi a3,a3,-644 # 15fa <__sfputs_r>
|
|
1886: 8626 mv a2,s1
|
|
1888: 080c addi a1,sp,16
|
|
188a: 854e mv a0,s3
|
|
188c: 00000097 auipc ra,0x0
|
|
1890: 000000e7 jalr zero # 0 <_sinit>
|
|
1894: 57fd li a5,-1
|
|
1896: 8a2a mv s4,a0
|
|
1898: fcf514e3 bne a0,a5,1860 <_vfiprintf_r+0x226>
|
|
189c: 24de lhu a5,12(s1)
|
|
189e: 0407f793 andi a5,a5,64
|
|
18a2: ec0792e3 bnez a5,1766 <_vfiprintf_r+0x12c>
|
|
18a6: 5512 lw a0,36(sp)
|
|
18a8: b5c1 j 1768 <_vfiprintf_r+0x12e>
|
|
18aa: 0078 addi a4,sp,12
|
|
18ac: 00000697 auipc a3,0x0
|
|
18b0: d4e68693 addi a3,a3,-690 # 15fa <__sfputs_r>
|
|
18b4: 8626 mv a2,s1
|
|
18b6: 080c addi a1,sp,16
|
|
18b8: 854e mv a0,s3
|
|
18ba: 2a01 jal 19ca <_printf_i>
|
|
18bc: bfe1 j 1894 <_vfiprintf_r+0x25a>
|
|
|
|
000018be <_printf_common>:
|
|
18be: 7179 addi sp,sp,-48
|
|
18c0: ca56 sw s5,20(sp)
|
|
18c2: 499c lw a5,16(a1)
|
|
18c4: 8aba mv s5,a4
|
|
18c6: 4598 lw a4,8(a1)
|
|
18c8: d422 sw s0,40(sp)
|
|
18ca: d226 sw s1,36(sp)
|
|
18cc: ce4e sw s3,28(sp)
|
|
18ce: cc52 sw s4,24(sp)
|
|
18d0: d606 sw ra,44(sp)
|
|
18d2: d04a sw s2,32(sp)
|
|
18d4: c85a sw s6,16(sp)
|
|
18d6: c65e sw s7,12(sp)
|
|
18d8: 89aa mv s3,a0
|
|
18da: 842e mv s0,a1
|
|
18dc: 84b2 mv s1,a2
|
|
18de: 8a36 mv s4,a3
|
|
18e0: 00e7d363 bge a5,a4,18e6 <_printf_common+0x28>
|
|
18e4: 87ba mv a5,a4
|
|
18e6: c09c sw a5,0(s1)
|
|
18e8: 04344703 lbu a4,67(s0)
|
|
18ec: c319 beqz a4,18f2 <_printf_common+0x34>
|
|
18ee: 0785 addi a5,a5,1
|
|
18f0: c09c sw a5,0(s1)
|
|
18f2: 401c lw a5,0(s0)
|
|
18f4: 0207f793 andi a5,a5,32
|
|
18f8: c781 beqz a5,1900 <_printf_common+0x42>
|
|
18fa: 409c lw a5,0(s1)
|
|
18fc: 0789 addi a5,a5,2
|
|
18fe: c09c sw a5,0(s1)
|
|
1900: 00042903 lw s2,0(s0)
|
|
1904: 00697913 andi s2,s2,6
|
|
1908: 00091a63 bnez s2,191c <_printf_common+0x5e>
|
|
190c: 01940b13 addi s6,s0,25
|
|
1910: 5bfd li s7,-1
|
|
1912: 445c lw a5,12(s0)
|
|
1914: 4098 lw a4,0(s1)
|
|
1916: 8f99 sub a5,a5,a4
|
|
1918: 04f94c63 blt s2,a5,1970 <_printf_common+0xb2>
|
|
191c: 401c lw a5,0(s0)
|
|
191e: 04344683 lbu a3,67(s0)
|
|
1922: 0207f793 andi a5,a5,32
|
|
1926: 00d036b3 snez a3,a3
|
|
192a: eba5 bnez a5,199a <_printf_common+0xdc>
|
|
192c: 04340613 addi a2,s0,67
|
|
1930: 85d2 mv a1,s4
|
|
1932: 854e mv a0,s3
|
|
1934: 9a82 jalr s5
|
|
1936: 57fd li a5,-1
|
|
1938: 04f50363 beq a0,a5,197e <_printf_common+0xc0>
|
|
193c: 401c lw a5,0(s0)
|
|
193e: 4611 li a2,4
|
|
1940: 4098 lw a4,0(s1)
|
|
1942: 8b99 andi a5,a5,6
|
|
1944: 4454 lw a3,12(s0)
|
|
1946: 4481 li s1,0
|
|
1948: 00c79763 bne a5,a2,1956 <_printf_common+0x98>
|
|
194c: 40e684b3 sub s1,a3,a4
|
|
1950: 0004d363 bgez s1,1956 <_printf_common+0x98>
|
|
1954: 4481 li s1,0
|
|
1956: 441c lw a5,8(s0)
|
|
1958: 4818 lw a4,16(s0)
|
|
195a: 00f75463 bge a4,a5,1962 <_printf_common+0xa4>
|
|
195e: 8f99 sub a5,a5,a4
|
|
1960: 94be add s1,s1,a5
|
|
1962: 4901 li s2,0
|
|
1964: 0469 addi s0,s0,26
|
|
1966: 5b7d li s6,-1
|
|
1968: 05249863 bne s1,s2,19b8 <_printf_common+0xfa>
|
|
196c: 4501 li a0,0
|
|
196e: a809 j 1980 <_printf_common+0xc2>
|
|
1970: 4685 li a3,1
|
|
1972: 865a mv a2,s6
|
|
1974: 85d2 mv a1,s4
|
|
1976: 854e mv a0,s3
|
|
1978: 9a82 jalr s5
|
|
197a: 01751e63 bne a0,s7,1996 <_printf_common+0xd8>
|
|
197e: 557d li a0,-1
|
|
1980: 50b2 lw ra,44(sp)
|
|
1982: 5422 lw s0,40(sp)
|
|
1984: 5492 lw s1,36(sp)
|
|
1986: 5902 lw s2,32(sp)
|
|
1988: 49f2 lw s3,28(sp)
|
|
198a: 4a62 lw s4,24(sp)
|
|
198c: 4ad2 lw s5,20(sp)
|
|
198e: 4b42 lw s6,16(sp)
|
|
1990: 4bb2 lw s7,12(sp)
|
|
1992: 6145 addi sp,sp,48
|
|
1994: 8082 ret
|
|
1996: 0905 addi s2,s2,1
|
|
1998: bfad j 1912 <_printf_common+0x54>
|
|
199a: 00d40733 add a4,s0,a3
|
|
199e: 03000613 li a2,48
|
|
19a2: 04c701a3 sb a2,67(a4)
|
|
19a6: 04544703 lbu a4,69(s0)
|
|
19aa: 00168793 addi a5,a3,1
|
|
19ae: 97a2 add a5,a5,s0
|
|
19b0: 0689 addi a3,a3,2
|
|
19b2: 04e781a3 sb a4,67(a5)
|
|
19b6: bf9d j 192c <_printf_common+0x6e>
|
|
19b8: 4685 li a3,1
|
|
19ba: 8622 mv a2,s0
|
|
19bc: 85d2 mv a1,s4
|
|
19be: 854e mv a0,s3
|
|
19c0: 9a82 jalr s5
|
|
19c2: fb650ee3 beq a0,s6,197e <_printf_common+0xc0>
|
|
19c6: 0905 addi s2,s2,1
|
|
19c8: b745 j 1968 <_printf_common+0xaa>
|
|
|
|
000019ca <_printf_i>:
|
|
19ca: 7179 addi sp,sp,-48
|
|
19cc: d422 sw s0,40(sp)
|
|
19ce: d226 sw s1,36(sp)
|
|
19d0: d04a sw s2,32(sp)
|
|
19d2: ce4e sw s3,28(sp)
|
|
19d4: d606 sw ra,44(sp)
|
|
19d6: cc52 sw s4,24(sp)
|
|
19d8: ca56 sw s5,20(sp)
|
|
19da: c85a sw s6,16(sp)
|
|
19dc: 89b6 mv s3,a3
|
|
19de: 2d94 lbu a3,24(a1)
|
|
19e0: 06900793 li a5,105
|
|
19e4: 8932 mv s2,a2
|
|
19e6: 84aa mv s1,a0
|
|
19e8: 842e mv s0,a1
|
|
19ea: 04358613 addi a2,a1,67
|
|
19ee: 02f68d63 beq a3,a5,1a28 <_printf_i+0x5e>
|
|
19f2: 06d7e263 bltu a5,a3,1a56 <_printf_i+0x8c>
|
|
19f6: 05800793 li a5,88
|
|
19fa: 18f68563 beq a3,a5,1b84 <_printf_i+0x1ba>
|
|
19fe: 00d7ed63 bltu a5,a3,1a18 <_printf_i+0x4e>
|
|
1a02: 20068d63 beqz a3,1c1c <_printf_i+0x252>
|
|
1a06: 04300793 li a5,67
|
|
1a0a: 0af68e63 beq a3,a5,1ac6 <_printf_i+0xfc>
|
|
1a0e: 04240a93 addi s5,s0,66
|
|
1a12: 04d40123 sb a3,66(s0)
|
|
1a16: a0c9 j 1ad8 <_printf_i+0x10e>
|
|
1a18: 06300793 li a5,99
|
|
1a1c: 0af68563 beq a3,a5,1ac6 <_printf_i+0xfc>
|
|
1a20: 06400793 li a5,100
|
|
1a24: fef695e3 bne a3,a5,1a0e <_printf_i+0x44>
|
|
1a28: 401c lw a5,0(s0)
|
|
1a2a: 4308 lw a0,0(a4)
|
|
1a2c: 0807f693 andi a3,a5,128
|
|
1a30: 00450593 addi a1,a0,4
|
|
1a34: c6c5 beqz a3,1adc <_printf_i+0x112>
|
|
1a36: 411c lw a5,0(a0)
|
|
1a38: c30c sw a1,0(a4)
|
|
1a3a: 0007d863 bgez a5,1a4a <_printf_i+0x80>
|
|
1a3e: 02d00713 li a4,45
|
|
1a42: 40f007b3 neg a5,a5
|
|
1a46: 04e401a3 sb a4,67(s0)
|
|
1a4a: 00000697 auipc a3,0x0
|
|
1a4e: 4f268693 addi a3,a3,1266 # 1f3c <__sf_fake_stdout+0x34>
|
|
1a52: 4729 li a4,10
|
|
1a54: a865 j 1b0c <_printf_i+0x142>
|
|
1a56: 07000793 li a5,112
|
|
1a5a: 16f68163 beq a3,a5,1bbc <_printf_i+0x1f2>
|
|
1a5e: 02d7e563 bltu a5,a3,1a88 <_printf_i+0xbe>
|
|
1a62: 06e00793 li a5,110
|
|
1a66: 18f68863 beq a3,a5,1bf6 <_printf_i+0x22c>
|
|
1a6a: 06f00793 li a5,111
|
|
1a6e: faf690e3 bne a3,a5,1a0e <_printf_i+0x44>
|
|
1a72: 400c lw a1,0(s0)
|
|
1a74: 431c lw a5,0(a4)
|
|
1a76: 0805f813 andi a6,a1,128
|
|
1a7a: 00478513 addi a0,a5,4
|
|
1a7e: 06080763 beqz a6,1aec <_printf_i+0x122>
|
|
1a82: c308 sw a0,0(a4)
|
|
1a84: 439c lw a5,0(a5)
|
|
1a86: a885 j 1af6 <_printf_i+0x12c>
|
|
1a88: 07500793 li a5,117
|
|
1a8c: fef683e3 beq a3,a5,1a72 <_printf_i+0xa8>
|
|
1a90: 07800793 li a5,120
|
|
1a94: 12f68863 beq a3,a5,1bc4 <_printf_i+0x1fa>
|
|
1a98: 07300793 li a5,115
|
|
1a9c: f6f699e3 bne a3,a5,1a0e <_printf_i+0x44>
|
|
1aa0: 431c lw a5,0(a4)
|
|
1aa2: 41d0 lw a2,4(a1)
|
|
1aa4: 4581 li a1,0
|
|
1aa6: 00478693 addi a3,a5,4
|
|
1aaa: c314 sw a3,0(a4)
|
|
1aac: 0007aa83 lw s5,0(a5)
|
|
1ab0: 8556 mv a0,s5
|
|
1ab2: 2685 jal 1e12 <memchr>
|
|
1ab4: c501 beqz a0,1abc <_printf_i+0xf2>
|
|
1ab6: 41550533 sub a0,a0,s5
|
|
1aba: c048 sw a0,4(s0)
|
|
1abc: 405c lw a5,4(s0)
|
|
1abe: c81c sw a5,16(s0)
|
|
1ac0: 040401a3 sb zero,67(s0)
|
|
1ac4: a861 j 1b5c <_printf_i+0x192>
|
|
1ac6: 431c lw a5,0(a4)
|
|
1ac8: 04240a93 addi s5,s0,66
|
|
1acc: 00478693 addi a3,a5,4
|
|
1ad0: 439c lw a5,0(a5)
|
|
1ad2: c314 sw a3,0(a4)
|
|
1ad4: 04f40123 sb a5,66(s0)
|
|
1ad8: 4785 li a5,1
|
|
1ada: b7d5 j 1abe <_printf_i+0xf4>
|
|
1adc: 0407f693 andi a3,a5,64
|
|
1ae0: 411c lw a5,0(a0)
|
|
1ae2: c30c sw a1,0(a4)
|
|
1ae4: dab9 beqz a3,1a3a <_printf_i+0x70>
|
|
1ae6: 07c2 slli a5,a5,0x10
|
|
1ae8: 87c1 srai a5,a5,0x10
|
|
1aea: bf81 j 1a3a <_printf_i+0x70>
|
|
1aec: 0405f593 andi a1,a1,64
|
|
1af0: c308 sw a0,0(a4)
|
|
1af2: d9c9 beqz a1,1a84 <_printf_i+0xba>
|
|
1af4: 239e lhu a5,0(a5)
|
|
1af6: 06f00713 li a4,111
|
|
1afa: 0ee68663 beq a3,a4,1be6 <_printf_i+0x21c>
|
|
1afe: 00000697 auipc a3,0x0
|
|
1b02: 43e68693 addi a3,a3,1086 # 1f3c <__sf_fake_stdout+0x34>
|
|
1b06: 4729 li a4,10
|
|
1b08: 040401a3 sb zero,67(s0)
|
|
1b0c: 404c lw a1,4(s0)
|
|
1b0e: c40c sw a1,8(s0)
|
|
1b10: 0005c563 bltz a1,1b1a <_printf_i+0x150>
|
|
1b14: 4008 lw a0,0(s0)
|
|
1b16: 996d andi a0,a0,-5
|
|
1b18: c008 sw a0,0(s0)
|
|
1b1a: e399 bnez a5,1b20 <_printf_i+0x156>
|
|
1b1c: 8ab2 mv s5,a2
|
|
1b1e: cd89 beqz a1,1b38 <_printf_i+0x16e>
|
|
1b20: 8ab2 mv s5,a2
|
|
1b22: 02e7f5b3 remu a1,a5,a4
|
|
1b26: 1afd addi s5,s5,-1
|
|
1b28: 95b6 add a1,a1,a3
|
|
1b2a: 218c lbu a1,0(a1)
|
|
1b2c: 00ba8023 sb a1,0(s5)
|
|
1b30: 02e7d5b3 divu a1,a5,a4
|
|
1b34: 0ae7ff63 bgeu a5,a4,1bf2 <_printf_i+0x228>
|
|
1b38: 47a1 li a5,8
|
|
1b3a: 00f71e63 bne a4,a5,1b56 <_printf_i+0x18c>
|
|
1b3e: 401c lw a5,0(s0)
|
|
1b40: 8b85 andi a5,a5,1
|
|
1b42: cb91 beqz a5,1b56 <_printf_i+0x18c>
|
|
1b44: 4058 lw a4,4(s0)
|
|
1b46: 481c lw a5,16(s0)
|
|
1b48: 00e7c763 blt a5,a4,1b56 <_printf_i+0x18c>
|
|
1b4c: 03000793 li a5,48
|
|
1b50: fefa8fa3 sb a5,-1(s5)
|
|
1b54: 1afd addi s5,s5,-1
|
|
1b56: 41560633 sub a2,a2,s5
|
|
1b5a: c810 sw a2,16(s0)
|
|
1b5c: 874e mv a4,s3
|
|
1b5e: 86ca mv a3,s2
|
|
1b60: 0070 addi a2,sp,12
|
|
1b62: 85a2 mv a1,s0
|
|
1b64: 8526 mv a0,s1
|
|
1b66: 3ba1 jal 18be <_printf_common>
|
|
1b68: 5a7d li s4,-1
|
|
1b6a: 0b451d63 bne a0,s4,1c24 <_printf_i+0x25a>
|
|
1b6e: 557d li a0,-1
|
|
1b70: 50b2 lw ra,44(sp)
|
|
1b72: 5422 lw s0,40(sp)
|
|
1b74: 5492 lw s1,36(sp)
|
|
1b76: 5902 lw s2,32(sp)
|
|
1b78: 49f2 lw s3,28(sp)
|
|
1b7a: 4a62 lw s4,24(sp)
|
|
1b7c: 4ad2 lw s5,20(sp)
|
|
1b7e: 4b42 lw s6,16(sp)
|
|
1b80: 6145 addi sp,sp,48
|
|
1b82: 8082 ret
|
|
1b84: 04d582a3 sb a3,69(a1)
|
|
1b88: 00000697 auipc a3,0x0
|
|
1b8c: 3b468693 addi a3,a3,948 # 1f3c <__sf_fake_stdout+0x34>
|
|
1b90: 400c lw a1,0(s0)
|
|
1b92: 4308 lw a0,0(a4)
|
|
1b94: 0805f813 andi a6,a1,128
|
|
1b98: 411c lw a5,0(a0)
|
|
1b9a: 0511 addi a0,a0,4
|
|
1b9c: 02080d63 beqz a6,1bd6 <_printf_i+0x20c>
|
|
1ba0: c308 sw a0,0(a4)
|
|
1ba2: 0015f713 andi a4,a1,1
|
|
1ba6: c701 beqz a4,1bae <_printf_i+0x1e4>
|
|
1ba8: 0205e593 ori a1,a1,32
|
|
1bac: c00c sw a1,0(s0)
|
|
1bae: 4741 li a4,16
|
|
1bb0: ffa1 bnez a5,1b08 <_printf_i+0x13e>
|
|
1bb2: 400c lw a1,0(s0)
|
|
1bb4: fdf5f593 andi a1,a1,-33
|
|
1bb8: c00c sw a1,0(s0)
|
|
1bba: b7b9 j 1b08 <_printf_i+0x13e>
|
|
1bbc: 419c lw a5,0(a1)
|
|
1bbe: 0207e793 ori a5,a5,32
|
|
1bc2: c19c sw a5,0(a1)
|
|
1bc4: 07800793 li a5,120
|
|
1bc8: 04f402a3 sb a5,69(s0)
|
|
1bcc: 00000697 auipc a3,0x0
|
|
1bd0: 38468693 addi a3,a3,900 # 1f50 <__sf_fake_stdout+0x48>
|
|
1bd4: bf75 j 1b90 <_printf_i+0x1c6>
|
|
1bd6: 0405f813 andi a6,a1,64
|
|
1bda: c308 sw a0,0(a4)
|
|
1bdc: fc0803e3 beqz a6,1ba2 <_printf_i+0x1d8>
|
|
1be0: 07c2 slli a5,a5,0x10
|
|
1be2: 83c1 srli a5,a5,0x10
|
|
1be4: bf7d j 1ba2 <_printf_i+0x1d8>
|
|
1be6: 00000697 auipc a3,0x0
|
|
1bea: 35668693 addi a3,a3,854 # 1f3c <__sf_fake_stdout+0x34>
|
|
1bee: 4721 li a4,8
|
|
1bf0: bf21 j 1b08 <_printf_i+0x13e>
|
|
1bf2: 87ae mv a5,a1
|
|
1bf4: b73d j 1b22 <_printf_i+0x158>
|
|
1bf6: 4194 lw a3,0(a1)
|
|
1bf8: 431c lw a5,0(a4)
|
|
1bfa: 49cc lw a1,20(a1)
|
|
1bfc: 0806f813 andi a6,a3,128
|
|
1c00: 00478513 addi a0,a5,4
|
|
1c04: 00080663 beqz a6,1c10 <_printf_i+0x246>
|
|
1c08: c308 sw a0,0(a4)
|
|
1c0a: 439c lw a5,0(a5)
|
|
1c0c: c38c sw a1,0(a5)
|
|
1c0e: a039 j 1c1c <_printf_i+0x252>
|
|
1c10: c308 sw a0,0(a4)
|
|
1c12: 0406f693 andi a3,a3,64
|
|
1c16: 439c lw a5,0(a5)
|
|
1c18: daf5 beqz a3,1c0c <_printf_i+0x242>
|
|
1c1a: a38e sh a1,0(a5)
|
|
1c1c: 00042823 sw zero,16(s0)
|
|
1c20: 8ab2 mv s5,a2
|
|
1c22: bf2d j 1b5c <_printf_i+0x192>
|
|
1c24: 4814 lw a3,16(s0)
|
|
1c26: 8656 mv a2,s5
|
|
1c28: 85ca mv a1,s2
|
|
1c2a: 8526 mv a0,s1
|
|
1c2c: 9982 jalr s3
|
|
1c2e: f54500e3 beq a0,s4,1b6e <_printf_i+0x1a4>
|
|
1c32: 401c lw a5,0(s0)
|
|
1c34: 8b89 andi a5,a5,2
|
|
1c36: e78d bnez a5,1c60 <_printf_i+0x296>
|
|
1c38: 47b2 lw a5,12(sp)
|
|
1c3a: 4448 lw a0,12(s0)
|
|
1c3c: f2f55ae3 bge a0,a5,1b70 <_printf_i+0x1a6>
|
|
1c40: 853e mv a0,a5
|
|
1c42: b73d j 1b70 <_printf_i+0x1a6>
|
|
1c44: 4685 li a3,1
|
|
1c46: 8656 mv a2,s5
|
|
1c48: 85ca mv a1,s2
|
|
1c4a: 8526 mv a0,s1
|
|
1c4c: 9982 jalr s3
|
|
1c4e: f36500e3 beq a0,s6,1b6e <_printf_i+0x1a4>
|
|
1c52: 0a05 addi s4,s4,1
|
|
1c54: 445c lw a5,12(s0)
|
|
1c56: 4732 lw a4,12(sp)
|
|
1c58: 8f99 sub a5,a5,a4
|
|
1c5a: fefa45e3 blt s4,a5,1c44 <_printf_i+0x27a>
|
|
1c5e: bfe9 j 1c38 <_printf_i+0x26e>
|
|
1c60: 4a01 li s4,0
|
|
1c62: 01940a93 addi s5,s0,25
|
|
1c66: 5b7d li s6,-1
|
|
1c68: b7f5 j 1c54 <_printf_i+0x28a>
|
|
|
|
00001c6a <_sbrk_r>:
|
|
1c6a: 1141 addi sp,sp,-16
|
|
1c6c: c422 sw s0,8(sp)
|
|
1c6e: 842a mv s0,a0
|
|
1c70: 852e mv a0,a1
|
|
1c72: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
1c76: c606 sw ra,12(sp)
|
|
1c78: 844ff0ef jal ra,cbc <_sbrk>
|
|
1c7c: 57fd li a5,-1
|
|
1c7e: 00f51763 bne a0,a5,1c8c <_sbrk_r+0x22>
|
|
1c82: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
1c86: 439c lw a5,0(a5)
|
|
1c88: c391 beqz a5,1c8c <_sbrk_r+0x22>
|
|
1c8a: c01c sw a5,0(s0)
|
|
1c8c: 40b2 lw ra,12(sp)
|
|
1c8e: 4422 lw s0,8(sp)
|
|
1c90: 0141 addi sp,sp,16
|
|
1c92: 8082 ret
|
|
|
|
00001c94 <__sread>:
|
|
1c94: 1141 addi sp,sp,-16
|
|
1c96: c422 sw s0,8(sp)
|
|
1c98: 842e mv s0,a1
|
|
1c9a: 00e59583 lh a1,14(a1)
|
|
1c9e: c606 sw ra,12(sp)
|
|
1ca0: 2279 jal 1e2e <_read_r>
|
|
1ca2: 00054963 bltz a0,1cb4 <__sread+0x20>
|
|
1ca6: 487c lw a5,84(s0)
|
|
1ca8: 97aa add a5,a5,a0
|
|
1caa: c87c sw a5,84(s0)
|
|
1cac: 40b2 lw ra,12(sp)
|
|
1cae: 4422 lw s0,8(sp)
|
|
1cb0: 0141 addi sp,sp,16
|
|
1cb2: 8082 ret
|
|
1cb4: 245e lhu a5,12(s0)
|
|
1cb6: 777d lui a4,0xfffff
|
|
1cb8: 177d addi a4,a4,-1
|
|
1cba: 8ff9 and a5,a5,a4
|
|
1cbc: a45e sh a5,12(s0)
|
|
1cbe: b7fd j 1cac <__sread+0x18>
|
|
|
|
00001cc0 <__swrite>:
|
|
1cc0: 25de lhu a5,12(a1)
|
|
1cc2: 1101 addi sp,sp,-32
|
|
1cc4: cc22 sw s0,24(sp)
|
|
1cc6: ca26 sw s1,20(sp)
|
|
1cc8: c84a sw s2,16(sp)
|
|
1cca: c64e sw s3,12(sp)
|
|
1ccc: ce06 sw ra,28(sp)
|
|
1cce: 1007f793 andi a5,a5,256
|
|
1cd2: 84aa mv s1,a0
|
|
1cd4: 842e mv s0,a1
|
|
1cd6: 8932 mv s2,a2
|
|
1cd8: 89b6 mv s3,a3
|
|
1cda: c791 beqz a5,1ce6 <__swrite+0x26>
|
|
1cdc: 00e59583 lh a1,14(a1)
|
|
1ce0: 4689 li a3,2
|
|
1ce2: 4601 li a2,0
|
|
1ce4: 2209 jal 1de6 <_lseek_r>
|
|
1ce6: 245e lhu a5,12(s0)
|
|
1ce8: 777d lui a4,0xfffff
|
|
1cea: 177d addi a4,a4,-1
|
|
1cec: 8ff9 and a5,a5,a4
|
|
1cee: a45e sh a5,12(s0)
|
|
1cf0: 00e41583 lh a1,14(s0)
|
|
1cf4: 4462 lw s0,24(sp)
|
|
1cf6: 40f2 lw ra,28(sp)
|
|
1cf8: 86ce mv a3,s3
|
|
1cfa: 864a mv a2,s2
|
|
1cfc: 49b2 lw s3,12(sp)
|
|
1cfe: 4942 lw s2,16(sp)
|
|
1d00: 8526 mv a0,s1
|
|
1d02: 44d2 lw s1,20(sp)
|
|
1d04: 6105 addi sp,sp,32
|
|
1d06: a825 j 1d3e <_write_r>
|
|
|
|
00001d08 <__sseek>:
|
|
1d08: 1141 addi sp,sp,-16
|
|
1d0a: c422 sw s0,8(sp)
|
|
1d0c: 842e mv s0,a1
|
|
1d0e: 00e59583 lh a1,14(a1)
|
|
1d12: c606 sw ra,12(sp)
|
|
1d14: 28c9 jal 1de6 <_lseek_r>
|
|
1d16: 57fd li a5,-1
|
|
1d18: 245a lhu a4,12(s0)
|
|
1d1a: 00f51a63 bne a0,a5,1d2e <__sseek+0x26>
|
|
1d1e: 77fd lui a5,0xfffff
|
|
1d20: 17fd addi a5,a5,-1
|
|
1d22: 8ff9 and a5,a5,a4
|
|
1d24: a45e sh a5,12(s0)
|
|
1d26: 40b2 lw ra,12(sp)
|
|
1d28: 4422 lw s0,8(sp)
|
|
1d2a: 0141 addi sp,sp,16
|
|
1d2c: 8082 ret
|
|
1d2e: 6785 lui a5,0x1
|
|
1d30: 8fd9 or a5,a5,a4
|
|
1d32: a45e sh a5,12(s0)
|
|
1d34: c868 sw a0,84(s0)
|
|
1d36: bfc5 j 1d26 <__sseek+0x1e>
|
|
|
|
00001d38 <__sclose>:
|
|
1d38: 00e59583 lh a1,14(a1)
|
|
1d3c: a805 j 1d6c <_close_r>
|
|
|
|
00001d3e <_write_r>:
|
|
1d3e: 1141 addi sp,sp,-16
|
|
1d40: c422 sw s0,8(sp)
|
|
1d42: 842a mv s0,a0
|
|
1d44: 852e mv a0,a1
|
|
1d46: 85b2 mv a1,a2
|
|
1d48: 8636 mv a2,a3
|
|
1d4a: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
1d4e: c606 sw ra,12(sp)
|
|
1d50: f33fe0ef jal ra,c82 <_write>
|
|
1d54: 57fd li a5,-1
|
|
1d56: 00f51763 bne a0,a5,1d64 <_write_r+0x26>
|
|
1d5a: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
1d5e: 439c lw a5,0(a5)
|
|
1d60: c391 beqz a5,1d64 <_write_r+0x26>
|
|
1d62: c01c sw a5,0(s0)
|
|
1d64: 40b2 lw ra,12(sp)
|
|
1d66: 4422 lw s0,8(sp)
|
|
1d68: 0141 addi sp,sp,16
|
|
1d6a: 8082 ret
|
|
|
|
00001d6c <_close_r>:
|
|
1d6c: 1141 addi sp,sp,-16
|
|
1d6e: c422 sw s0,8(sp)
|
|
1d70: 842a mv s0,a0
|
|
1d72: 852e mv a0,a1
|
|
1d74: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
1d78: c606 sw ra,12(sp)
|
|
1d7a: 20c5 jal 1e5a <_close>
|
|
1d7c: 57fd li a5,-1
|
|
1d7e: 00f51763 bne a0,a5,1d8c <_close_r+0x20>
|
|
1d82: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
1d86: 439c lw a5,0(a5)
|
|
1d88: c391 beqz a5,1d8c <_close_r+0x20>
|
|
1d8a: c01c sw a5,0(s0)
|
|
1d8c: 40b2 lw ra,12(sp)
|
|
1d8e: 4422 lw s0,8(sp)
|
|
1d90: 0141 addi sp,sp,16
|
|
1d92: 8082 ret
|
|
|
|
00001d94 <_fstat_r>:
|
|
1d94: 1141 addi sp,sp,-16
|
|
1d96: c422 sw s0,8(sp)
|
|
1d98: 842a mv s0,a0
|
|
1d9a: 852e mv a0,a1
|
|
1d9c: 85b2 mv a1,a2
|
|
1d9e: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
1da2: c606 sw ra,12(sp)
|
|
1da4: 20c9 jal 1e66 <_fstat>
|
|
1da6: 57fd li a5,-1
|
|
1da8: 00f51763 bne a0,a5,1db6 <_fstat_r+0x22>
|
|
1dac: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
1db0: 439c lw a5,0(a5)
|
|
1db2: c391 beqz a5,1db6 <_fstat_r+0x22>
|
|
1db4: c01c sw a5,0(s0)
|
|
1db6: 40b2 lw ra,12(sp)
|
|
1db8: 4422 lw s0,8(sp)
|
|
1dba: 0141 addi sp,sp,16
|
|
1dbc: 8082 ret
|
|
|
|
00001dbe <_isatty_r>:
|
|
1dbe: 1141 addi sp,sp,-16
|
|
1dc0: c422 sw s0,8(sp)
|
|
1dc2: 842a mv s0,a0
|
|
1dc4: 852e mv a0,a1
|
|
1dc6: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
1dca: c606 sw ra,12(sp)
|
|
1dcc: 205d jal 1e72 <_isatty>
|
|
1dce: 57fd li a5,-1
|
|
1dd0: 00f51763 bne a0,a5,1dde <_isatty_r+0x20>
|
|
1dd4: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
1dd8: 439c lw a5,0(a5)
|
|
1dda: c391 beqz a5,1dde <_isatty_r+0x20>
|
|
1ddc: c01c sw a5,0(s0)
|
|
1dde: 40b2 lw ra,12(sp)
|
|
1de0: 4422 lw s0,8(sp)
|
|
1de2: 0141 addi sp,sp,16
|
|
1de4: 8082 ret
|
|
|
|
00001de6 <_lseek_r>:
|
|
1de6: 1141 addi sp,sp,-16
|
|
1de8: c422 sw s0,8(sp)
|
|
1dea: 842a mv s0,a0
|
|
1dec: 852e mv a0,a1
|
|
1dee: 85b2 mv a1,a2
|
|
1df0: 8636 mv a2,a3
|
|
1df2: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
1df6: c606 sw ra,12(sp)
|
|
1df8: 2059 jal 1e7e <_lseek>
|
|
1dfa: 57fd li a5,-1
|
|
1dfc: 00f51763 bne a0,a5,1e0a <_lseek_r+0x24>
|
|
1e00: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
1e04: 439c lw a5,0(a5)
|
|
1e06: c391 beqz a5,1e0a <_lseek_r+0x24>
|
|
1e08: c01c sw a5,0(s0)
|
|
1e0a: 40b2 lw ra,12(sp)
|
|
1e0c: 4422 lw s0,8(sp)
|
|
1e0e: 0141 addi sp,sp,16
|
|
1e10: 8082 ret
|
|
|
|
00001e12 <memchr>:
|
|
1e12: 0ff5f593 andi a1,a1,255
|
|
1e16: 962a add a2,a2,a0
|
|
1e18: 00c51463 bne a0,a2,1e20 <memchr+0xe>
|
|
1e1c: 4501 li a0,0
|
|
1e1e: 8082 ret
|
|
1e20: 211c lbu a5,0(a0)
|
|
1e22: feb78ee3 beq a5,a1,1e1e <memchr+0xc>
|
|
1e26: 0505 addi a0,a0,1
|
|
1e28: bfc5 j 1e18 <memchr+0x6>
|
|
|
|
00001e2a <__malloc_lock>:
|
|
1e2a: 8082 ret
|
|
|
|
00001e2c <__malloc_unlock>:
|
|
1e2c: 8082 ret
|
|
|
|
00001e2e <_read_r>:
|
|
1e2e: 1141 addi sp,sp,-16
|
|
1e30: c422 sw s0,8(sp)
|
|
1e32: 842a mv s0,a0
|
|
1e34: 852e mv a0,a1
|
|
1e36: 85b2 mv a1,a2
|
|
1e38: 8636 mv a2,a3
|
|
1e3a: 8401a623 sw zero,-1972(gp) # 200000cc <errno>
|
|
1e3e: c606 sw ra,12(sp)
|
|
1e40: 20a9 jal 1e8a <_read>
|
|
1e42: 57fd li a5,-1
|
|
1e44: 00f51763 bne a0,a5,1e52 <_read_r+0x24>
|
|
1e48: 84c18793 addi a5,gp,-1972 # 200000cc <errno>
|
|
1e4c: 439c lw a5,0(a5)
|
|
1e4e: c391 beqz a5,1e52 <_read_r+0x24>
|
|
1e50: c01c sw a5,0(s0)
|
|
1e52: 40b2 lw ra,12(sp)
|
|
1e54: 4422 lw s0,8(sp)
|
|
1e56: 0141 addi sp,sp,16
|
|
1e58: 8082 ret
|
|
|
|
00001e5a <_close>:
|
|
1e5a: 05800793 li a5,88
|
|
1e5e: 84f1a623 sw a5,-1972(gp) # 200000cc <errno>
|
|
1e62: 557d li a0,-1
|
|
1e64: 8082 ret
|
|
|
|
00001e66 <_fstat>:
|
|
1e66: 05800793 li a5,88
|
|
1e6a: 84f1a623 sw a5,-1972(gp) # 200000cc <errno>
|
|
1e6e: 557d li a0,-1
|
|
1e70: 8082 ret
|
|
|
|
00001e72 <_isatty>:
|
|
1e72: 05800793 li a5,88
|
|
1e76: 84f1a623 sw a5,-1972(gp) # 200000cc <errno>
|
|
1e7a: 4501 li a0,0
|
|
1e7c: 8082 ret
|
|
|
|
00001e7e <_lseek>:
|
|
1e7e: 05800793 li a5,88
|
|
1e82: 84f1a623 sw a5,-1972(gp) # 200000cc <errno>
|
|
1e86: 557d li a0,-1
|
|
1e88: 8082 ret
|
|
|
|
00001e8a <_read>:
|
|
1e8a: 05800793 li a5,88
|
|
1e8e: 84f1a623 sw a5,-1972(gp) # 200000cc <errno>
|
|
1e92: 557d li a0,-1
|
|
1e94: 8082 ret
|
|
1e96: 0000 unimp
|
|
1e98: 74737953 0x74737953
|
|
1e9c: 6d65 lui s10,0x19
|
|
1e9e: 3a6b6c43 fmadd.d fs8,fs6,ft6,ft7,unknown
|
|
1ea2: 6425 lui s0,0x9
|
|
1ea4: 0a0d addi s4,s4,3
|
|
1ea6: 0000 unimp
|
|
1ea8: 70696843 fmadd.s fa6,fs2,ft6,fa4,unknown
|
|
1eac: 4449 li s0,18
|
|
1eae: 253a lhu a4,10(a0)
|
|
1eb0: 3830 lbu a2,19(s0)
|
|
1eb2: 0d78 addi a4,sp,668
|
|
1eb4: 000a c.slli zero,0x2
|
|
1eb6: 0000 unimp
|
|
1eb8: 6e69 lui t3,0x1a
|
|
1eba: 7420 flw fs0,104(s0)
|
|
1ebc: 6d69 lui s10,0x1a
|
|
1ebe: 2031 jal 1eca <__sf_fake_stderr+0x2>
|
|
1ec0: 7269 lui tp,0xffffa
|
|
1ec2: 2071 jal 1f4e <__sf_fake_stdout+0x46>
|
|
1ec4: 0000 unimp
|
|
...
|
|
|
|
00001ec8 <__sf_fake_stderr>:
|
|
...
|
|
|
|
00001ee8 <__sf_fake_stdin>:
|
|
...
|
|
|
|
00001f08 <__sf_fake_stdout>:
|
|
...
|
|
1f28: 2d23 2b30 0020 0000 6c68 004c 6665 4567 #-0+ ...hlL.efgE
|
|
1f38: 4746 0000 3130 3332 3534 3736 3938 4241 FG..0123456789AB
|
|
1f48: 4443 4645 0000 0000 3130 3332 3534 3736 CDEF....01234567
|
|
1f58: 3938 6261 6463 6665 0000 0000 89abcdef....
|