Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Created February 6, 2024 13:40
Show Gist options
  • Save lupyuen/c05f606e4c25162136fd05c7a02d2191 to your computer and use it in GitHub Desktop.
Save lupyuen/c05f606e4c25162136fd05c7a02d2191 to your computer and use it in GitHub Desktop.
TCC WebAssembly NodeJS Log (NuttX QEMU). See https://github.com/lupyuen/tcc-riscv32-wasm
* Executing task: cd nuttx && ../run.sh
+ pushd ../tcc-riscv32-wasm/zig
/workspaces/bookworm/tcc-riscv32-wasm/zig /workspaces/bookworm/nuttx
+ ./build.sh
+ pushd ..
/workspaces/bookworm/tcc-riscv32-wasm /workspaces/bookworm/tcc-riscv32-wasm/zig
+ genromfs -f zig/romfs.bin -d zig/romfs -V ROMFS
+ cp zig/romfs.bin docs/romfs
+ build_wasm
+ tcc_options=' -c -target wasm32-freestanding -dynamic -rdynamic -lc -DTCC_TARGET_RISCV64 -DCONFIG_TCC_CROSSPREFIX="riscv64-" -DCONFIG_TCC_CRTPREFIX="/usr/riscv64-linux-gnu/lib" -DCONFIG_TCC_LIBPATHS="{B}:/usr/riscv64-linux-gnu/lib" -DCONFIG_TCC_SYSINCLUDEPATHS="{B}/include:/usr/riscv64-linux-gnu/include" -DTCC_GITHASH="main:b3d10a35" -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-format-truncation -Wno-stringop-truncation -I. '
+ nuttx_options=' -DCONFIG_FS_ROMFS_CACHE_FILE_NSECTORS=1 -DDTYPE_DIRECTORY=DT_DIR -DDTYPE_FILE=DT_REG -DDTYPE_LINK=DT_LNK -DERROR=-1 -DFAR= -DFIOC_FILEPATH=1 -DOK=0 -DMTD_BREAD=mtd_bread -DMTD_IOCTL=mtd_ioctl -DROMFS_MAGIC=0x7275 -Dkmm_free=free -Dkmm_malloc=malloc -Dkmm_zalloc=zalloc -Dstatic= -DEPERM=1 -DENOENT=2 -DEINTR=4 -DEIO=5 -DENXIO=6 -DEAGAIN=11 -DENOMEM=12 -DEACCES=13 -DEBUSY=16 -DEEXIST=17 -DENODEV=19 -DENOTDIR=20 -DEISDIR=21 -DEINVAL=22 -DENOTTY=25 -DEPIPE=32 -DEDOM=33 -DERANGE=34 -DENOSYS=38 -DELOOP=40 -DECONNREFUSED=111 -DENOTSUP=138 -DEWOULDBLOCK=140 '
+ zig cc -DCONFIG_FS_ROMFS_CACHE_FILE_NSECTORS=1 -DDTYPE_DIRECTORY=DT_DIR -DDTYPE_FILE=DT_REG -DDTYPE_LINK=DT_LNK -DERROR=-1 -DFAR= -DFIOC_FILEPATH=1 -DOK=0 -DMTD_BREAD=mtd_bread -DMTD_IOCTL=mtd_ioctl -DROMFS_MAGIC=0x7275 -Dkmm_free=free -Dkmm_malloc=malloc -Dkmm_zalloc=zalloc -Dstatic= -DEPERM=1 -DENOENT=2 -DEINTR=4 -DEIO=5 -DENXIO=6 -DEAGAIN=11 -DENOMEM=12 -DEACCES=13 -DEBUSY=16 -DEEXIST=17 -DENODEV=19 -DENOTDIR=20 -DEISDIR=21 -DEINVAL=22 -DENOTTY=25 -DEPIPE=32 -DEDOM=33 -DERANGE=34 -DENOSYS=38 -DELOOP=40 -DECONNREFUSED=111 -DENOTSUP=138 -DEWOULDBLOCK=140 -c -target wasm32-freestanding -dynamic -rdynamic -lc -DTCC_TARGET_RISCV64 '-DCONFIG_TCC_CROSSPREFIX="riscv64-"' '-DCONFIG_TCC_CRTPREFIX="/usr/riscv64-linux-gnu/lib"' '-DCONFIG_TCC_LIBPATHS="{B}:/usr/riscv64-linux-gnu/lib"' '-DCONFIG_TCC_SYSINCLUDEPATHS="{B}/include:/usr/riscv64-linux-gnu/include"' '-DTCC_GITHASH="main:b3d10a35"' -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-format-truncation -Wno-stringop-truncation -I. zig/fs_romfs.c
+ zig cc -DCONFIG_FS_ROMFS_CACHE_FILE_NSECTORS=1 -DDTYPE_DIRECTORY=DT_DIR -DDTYPE_FILE=DT_REG -DDTYPE_LINK=DT_LNK -DERROR=-1 -DFAR= -DFIOC_FILEPATH=1 -DOK=0 -DMTD_BREAD=mtd_bread -DMTD_IOCTL=mtd_ioctl -DROMFS_MAGIC=0x7275 -Dkmm_free=free -Dkmm_malloc=malloc -Dkmm_zalloc=zalloc -Dstatic= -DEPERM=1 -DENOENT=2 -DEINTR=4 -DEIO=5 -DENXIO=6 -DEAGAIN=11 -DENOMEM=12 -DEACCES=13 -DEBUSY=16 -DEEXIST=17 -DENODEV=19 -DENOTDIR=20 -DEISDIR=21 -DEINVAL=22 -DENOTTY=25 -DEPIPE=32 -DEDOM=33 -DERANGE=34 -DENOSYS=38 -DELOOP=40 -DECONNREFUSED=111 -DENOTSUP=138 -DEWOULDBLOCK=140 -c -target wasm32-freestanding -dynamic -rdynamic -lc -DTCC_TARGET_RISCV64 '-DCONFIG_TCC_CROSSPREFIX="riscv64-"' '-DCONFIG_TCC_CRTPREFIX="/usr/riscv64-linux-gnu/lib"' '-DCONFIG_TCC_LIBPATHS="{B}:/usr/riscv64-linux-gnu/lib"' '-DCONFIG_TCC_SYSINCLUDEPATHS="{B}/include:/usr/riscv64-linux-gnu/include"' '-DTCC_GITHASH="main:b3d10a35"' -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-format-truncation -Wno-stringop-truncation -I. zig/fs_romfsutil.c
+ zig cc -DCONFIG_FS_ROMFS_CACHE_FILE_NSECTORS=1 -DDTYPE_DIRECTORY=DT_DIR -DDTYPE_FILE=DT_REG -DDTYPE_LINK=DT_LNK -DERROR=-1 -DFAR= -DFIOC_FILEPATH=1 -DOK=0 -DMTD_BREAD=mtd_bread -DMTD_IOCTL=mtd_ioctl -DROMFS_MAGIC=0x7275 -Dkmm_free=free -Dkmm_malloc=malloc -Dkmm_zalloc=zalloc -Dstatic= -DEPERM=1 -DENOENT=2 -DEINTR=4 -DEIO=5 -DENXIO=6 -DEAGAIN=11 -DENOMEM=12 -DEACCES=13 -DEBUSY=16 -DEEXIST=17 -DENODEV=19 -DENOTDIR=20 -DEISDIR=21 -DEINVAL=22 -DENOTTY=25 -DEPIPE=32 -DEDOM=33 -DERANGE=34 -DENOSYS=38 -DELOOP=40 -DECONNREFUSED=111 -DENOTSUP=138 -DEWOULDBLOCK=140 -c -target wasm32-freestanding -dynamic -rdynamic -lc -DTCC_TARGET_RISCV64 '-DCONFIG_TCC_CROSSPREFIX="riscv64-"' '-DCONFIG_TCC_CRTPREFIX="/usr/riscv64-linux-gnu/lib"' '-DCONFIG_TCC_LIBPATHS="{B}:/usr/riscv64-linux-gnu/lib"' '-DCONFIG_TCC_SYSINCLUDEPATHS="{B}/include:/usr/riscv64-linux-gnu/include"' '-DTCC_GITHASH="main:b3d10a35"' -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-format-truncation -Wno-stringop-truncation -I. zig/zig_romfs.c
+ zig cc -c -target wasm32-freestanding -dynamic -rdynamic -lc -DTCC_TARGET_RISCV64 '-DCONFIG_TCC_CROSSPREFIX="riscv64-"' '-DCONFIG_TCC_CRTPREFIX="/usr/riscv64-linux-gnu/lib"' '-DCONFIG_TCC_LIBPATHS="{B}:/usr/riscv64-linux-gnu/lib"' '-DCONFIG_TCC_SYSINCLUDEPATHS="{B}/include:/usr/riscv64-linux-gnu/include"' '-DTCC_GITHASH="main:b3d10a35"' -Wall -O2 -Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-format-truncation -Wno-stringop-truncation -I. tcc.c
+ zig build-exe -target wasm32-freestanding -rdynamic -lc -fno-entry -freference-trace --verbose-cimport --export=compile_program -I zig zig/tcc-wasm.zig fs_romfs.o fs_romfsutil.o zig_romfs.o tcc.o
info(compilation): C import output: /home/vscode/.cache/zig/o/11e2e5138bcb76e789c9ac211acb7a30/cimport.zig
LLD Link... warning(link): unexpected LLD stderr:
wasm-ld: warning: function signature mismatch: getcwd
>>> defined as (i32, i32) -> i32 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: strtod
>>> defined as (i32, i32) -> f64 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: strtol
>>> defined as (i32, i32, i32) -> i32 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: ldexp
>>> defined as (f64, i32) -> f64 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: strtoul
>>> defined as (i32, i32, i32) -> i32 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: strtold
>>> defined as (i32, i32, i32) -> void in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: lseek
>>> defined as (i32, i64, i32) -> i64 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: gettimeofday
>>> defined as (i32, i32) -> i32 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: mtd_bread
>>> defined as (i32, i64, i32, i32) -> i32 in fs_romfsutil.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: fread
>>> defined as (i32, i32, i32, i32) -> i32 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: strtoll
>>> defined as (i32, i32, i32) -> i64 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: qsort
>>> defined as (i32, i32, i32, i32) -> void in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: exit
>>> defined as (i32) -> void in fs_romfs.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: strtof
>>> defined as (i32, i32) -> f32 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: fopen
>>> defined as (i32, i32) -> i32 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: strcat
>>> defined as (i32, i32) -> i32 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: fseek
>>> defined as (i32, i32, i32) -> i32 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
wasm-ld: warning: function signature mismatch: strncpy
>>> defined as (i32, i32, i32) -> i32 in tcc.o
>>> defined as (i32) -> i32 in tcc-wasm.wasm.o
+ cp tcc-wasm.wasm docs/
+ cp tcc-wasm.wasm docs/romfs
+ node zig/test.js
compile_program: start
compile_program: Mounting ROM FS...
romfs_bind: Entry
compile_program: ROM FS mounted OK
compile_program: Opening ROM FS File `stdio.h`...
romfs_open: Open 'stdio.h'
compile_program: ROM FS File `stdio.h` opened OK!
compile_program: Reading ROM FS File `stdio.h`...
romfs_read: Read 4 bytes from offset 0
romfs_read: Read sector 17969028
romfs_filecacheread: sector: 2 cached: 0 ncached: 1 sectorsize: 64 XIP base: anyopaque@1122f74 buffer: anyopaque@1122f74
romfs_filecacheread: XIP buffer: anyopaque@1122ff4
romfs_read: Return 4 bytes from sector offset 0
compile_program: ROM FS File `stdio.h` read OK!
0000: 2F 2F 20 43 // C
compile_program: Closing ROM FS File `stdio.h`...
romfs_close: Closing
compile_program: ROM FS File `stdio.h` closed OK!
compile_program: options=["-c","hello.c"]
compile_program: code=
#include <stdio.h>
#include <stdlib.h>
void main(int argc, char *argv[]) {
puts("Hello, World!!\n");
exit(0);
}
compile_program: options[0]=-c
compile_program: options[1]=hello.c
open: path=hello.c, oflag=0, return fd=3
sem_init: sem=tcc-wasm.sem_t@10d710, pshared=0, value=1
sem_wait: sem=tcc-wasm.sem_t@10d710
TODO: setjmp
TODO: sscanf: str=0.9.27, format=%d.%d.%d
read: fd=3, nbyte=8192
read: return buf=
#include <stdio.h>
#include <stdlib.h>
void main(int argc, char *argv[]) {
puts("Hello, World!!\n");
exit(0);
}
open: path=/usr/local/lib/tcc/include/stdio.h, oflag=0, return fd=4
romfs_open: Open 'stdio.h'
read: fd=4, nbyte=8192
romfs_read: Read 8192 bytes from offset 0
romfs_read: Read 38 sectors starting with 2
romfs_read: Read sector 0
romfs_filecacheread: sector: 40 cached: 0 ncached: 1 sectorsize: 64 XIP base: anyopaque@1122f74 buffer: anyopaque@1122f74
romfs_filecacheread: XIP buffer: anyopaque@1123974
romfs_read: Return 55 bytes from sector offset 0
read: return buf=
// Caution: This may change
#define SYS_write 61
// TODO: Move this to a common file
typedef int size_t;
typedef int ssize_t;
typedef int uintptr_t;
// Return the string length
inline size_t strlen(const char *s) {
size_t len = 0;
while (*s != 0) {
s++;
len++;
}
return len;
}
// Print the string to Standard Output
inline int puts(const char *s) {
return
write(1, s, strlen(s)) +
write(1, "\n", 1);
}
// Write to the File Descriptor
// https://lupyuen.github.io/articles/app#nuttx-app-calls-nuttx-kernel
inline ssize_t write(int parm1, const void * parm2, size_t parm3) {
return (ssize_t) sys_call3(
(unsigned int) SYS_write, // System Call Number
(uintptr_t) parm1, // File Descriptor (1 = Standard Output)
(uintptr_t) parm2, // Buffer to be written
(uintptr_t) parm3 // Number of bytes to write
);
}
// Make a System Call with 3 parameters
// https://github.com/apache/nuttx/blob/master/arch/risc-v/include/syscall.h#L240-L268
inline uintptr_t sys_call3(
unsigned int nbr, // System Call Number
uintptr_t parm1, // First Parameter
uintptr_t parm2, // Second Parameter
uintptr_t parm3 // Third Parameter
) {
// Pass the Function Number and Parameters in
// Registers A0 to A3
register long r3 asm("a0") = (long)(parm3); // Will move to A3
asm volatile ("slli a3, a0, 32"); // Shift 32 bits Left then Right
asm volatile ("srli a3, a3, 32"); // To clear the top 32 bits
register long r2 asm("a0") = (long)(parm2); // Will move to A2
asm volatile ("slli a2, a0, 32"); // Shift 32 bits Left then Right
asm volatile ("srli a2, a2, 32"); // To clear the top 32 bits
register long r1 asm("a0") = (long)(parm1); // Will move to A1
asm volatile ("slli a1, a0, 32"); // Shift 32 bits Left then Right
asm volatile ("srli a1, a1, 32"); // To clear the top 32 bits
register long r0 asm("a0") = (long)(nbr); // Will stay in A0
// `ecall` will jump from RISC-V User Mode
// to RISC-V Supervisor Mode
// to execute the System Call.
// Input + Output Registers: A0 to A3
// Clobbers the Memory
asm volatile
(
// ECALL for System Call to NuttX Kernel
"ecall \n"
// NuttX needs NOP after ECALL
".word 0x0001 \n"
// Input+Output Registers: None
// Input-Only Registers: A0 to A3
// Clobbers the Memory
:
: "r"(r0), "r"(r1), "r"(r2), "r"(r3)
: "memory"
);
// Return the result from Register A0
return r0;
}
read: fd=4, nbyte=8192
romfs_read: Read 8192 bytes from offset 2487
read: return buf=
close: fd=4
romfs_close: Closing
open: path=/usr/local/lib/tcc/include/stdlib.h, oflag=0, return fd=5
romfs_open: Open 'stdlib.h'
read: fd=5, nbyte=8192
romfs_read: Read 8192 bytes from offset 0
romfs_read: Read sector 0
romfs_filecacheread: sector: 41 cached: 0 ncached: 1 sectorsize: 64 XIP base: anyopaque@1122f74 buffer: anyopaque@1122f74
romfs_filecacheread: XIP buffer: anyopaque@11239b4
romfs_read: Return 32 bytes from sector offset 32
romfs_read: Read 20 sectors starting with 42
romfs_read: Read sector 0
romfs_filecacheread: sector: 62 cached: 41 ncached: 1 sectorsize: 64 XIP base: anyopaque@1122f74 buffer: anyopaque@11239b4
romfs_filecacheread: XIP buffer: anyopaque@1123ef4
romfs_read: Return 14 bytes from sector offset 0
read: return buf=
// Caution: This may change
#define SYS__exit 8
// Terminate the NuttX Process
// From nuttx/syscall/proxies/PROXY__exit.c
inline void exit(int parm1) {
sys_call1((unsigned int)SYS__exit, (uintptr_t)parm1);
while(1);
}
// Make a System Call with 1 parameters
// https://github.com/apache/nuttx/blob/master/arch/risc-v/include/syscall.h#L188-L213
inline uintptr_t sys_call1(
unsigned int nbr, // System Call Number
uintptr_t parm1 // First Parameter
) {
// Pass the Function Number and Parameters
// Registers A0 to A1
register long r1 asm("a0") = (long)(parm1); // Will move to A1
asm volatile ("slli a1, a0, 32"); // Shift 32 bits Left then Right
asm volatile ("srli a1, a1, 32"); // To clear the top 32 bits
register long r0 asm("a0") = (long)(nbr); // Will stay in A0
// `ecall` will jump from RISC-V User Mode
// to RISC-V Supervisor Mode
// to execute the System Call.
// Input + Output Registers: A0 to A1
// Clobbers the Memory
asm volatile
(
// ECALL for System Call to NuttX Kernel
"ecall \n"
// NuttX needs NOP after ECALL
".word 0x0001 \n"
// Input+Output Registers: None
// Input-Only Registers: A0 to A1
// Clobbers the Memory
:
: "r"(r0), "r"(r1)
: "memory"
);
// Return the result from Register A0
return r0;
}
read: fd=5, nbyte=8192
romfs_read: Read 8192 bytes from offset 1326
read: return buf=
close: fd=5
romfs_close: Closing
read: fd=3, nbyte=8192
read: return buf=
close: fd=3
sem_post: sem=tcc-wasm.sem_t@10d710
unlink: path=hello.o
open: path=hello.o, oflag=577, return fd=6
fdopen: fd=6, mode=wb, return FILE=7
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 7F 45 4C 46 02 01 01 00 00 00 00 00 00 00 00 00 .ELF............
0016: 01 00 F3 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
0032: 00 00 00 00 00 00 00 00 C0 05 00 00 00 00 00 00 ................
0048: 04 00 00 00 40 00 00 00 00 00 40 00 09 00 08 00 ....@.....@.....
fwrite: size=1, nmemb=628, stream=tcc-wasm.FILE@7
0000: 13 01 01 FE 23 3C 11 00 23 38 81 00 13 04 01 02 ....#<..#8......
0016: 13 00 00 00 23 34 A4 FE 23 30 B4 FE 17 05 00 00 ....#4..#0......
0032: 13 05 05 00 97 00 00 00 E7 80 00 00 1B 05 00 00 ................
0048: 97 00 00 00 E7 80 00 00 83 30 81 01 03 34 01 01 .........0...4..
0064: 13 01 01 02 67 80 00 00 13 01 01 FE 23 3C 11 00 ....g.......#<..
0080: 23 38 81 00 13 04 01 02 13 00 00 00 23 34 A4 FE #8..........#4..
0096: 03 35 84 FE 97 00 00 00 E7 80 00 00 13 06 05 00 .5..............
0112: 83 35 84 FE 1B 05 10 00 97 00 00 00 E7 80 00 00 .5..............
0128: 1B 06 10 00 97 05 00 00 93 85 05 00 23 22 A4 FE ............#"..
0144: 1B 05 10 00 97 00 00 00 E7 80 00 00 83 25 44 FE .............%D.
0160: 3B 85 A5 00 83 30 81 01 03 34 01 01 13 01 01 02 ;....0...4......
0176: 67 80 00 00 13 01 01 FD 23 34 11 02 23 30 81 02 g.......#4..#0..
0192: 13 04 01 03 13 00 00 00 23 34 A4 FE 23 30 B4 FE ........#4..#0..
0208: 23 3C C4 FC 83 26 84 FD 03 26 04 FE 83 25 84 FE #<...&...&...%..
0224: 1B 05 D0 03 97 00 00 00 E7 80 00 00 83 30 81 02 .............0..
0240: 03 34 01 02 13 01 01 03 67 80 00 00 13 01 01 FB .4......g.......
0256: 23 34 11 04 23 30 81 04 13 04 01 05 13 00 00 00 #4..#0..........
0272: 23 34 A4 FE 23 30 B4 FE 23 3C C4 FC 23 38 D4 FC #4..#0..#<..#8..
0288: 03 25 04 FD 23 34 A4 FC 93 16 05 02 93 D6 06 02 .%..#4..........
0304: 03 25 84 FD 23 30 A4 FC 13 16 05 02 13 56 06 02 .%..#0.......V..
0320: 03 25 04 FE 23 3C A4 FA 93 15 05 02 93 D5 05 02 .%..#<..........
0336: 03 25 84 FE 13 15 05 02 13 55 05 02 23 38 A4 FA .%.......U..#8..
0352: 73 00 00 00 01 00 03 25 04 FB 83 30 81 04 03 34 s......%...0...4
0368: 01 04 13 01 01 05 67 80 00 00 13 01 01 FE 23 3C ......g.......#<
0384: 11 00 23 38 81 00 13 04 01 02 13 00 00 00 23 34 ..#8..........#4
0400: A4 FE 83 25 84 FE 1B 05 80 00 97 00 00 00 E7 80 ...%............
0416: 00 00 6F 00 00 00 83 30 81 01 03 34 01 01 13 01 ..o....0...4....
0432: 01 02 67 80 00 00 13 01 01 FD 23 34 11 02 23 30 ..g.......#4..#0
0448: 81 02 13 04 01 03 13 00 00 00 23 34 A4 FE 23 30 ..........#4..#0
0464: B4 FE 03 25 04 FE 23 3C A4 FC 93 15 05 02 93 D5 ...%..#<........
0480: 05 02 03 25 84 FE 13 15 05 02 13 55 05 02 23 38 ...%.......U..#8
0496: A4 FC 73 00 00 00 01 00 03 25 04 FD 83 30 81 02 ..s......%...0..
0512: 03 34 01 02 13 01 01 03 67 80 00 00 13 01 01 FE .4......g.......
0528: 23 3C 11 00 23 38 81 00 13 04 01 02 13 00 00 00 #<..#8..........
0544: 23 34 A4 FE 1B 05 00 00 23 22 A4 FE 03 35 84 FE #4......#"...5..
0560: 83 45 05 00 63 94 05 00 6F 00 80 02 03 35 84 FE .E..c...o....5..
0576: 93 05 05 00 13 05 15 00 23 34 A4 FE 03 25 44 FE ........#4...%D.
0592: 93 05 05 00 1B 05 15 00 23 22 A4 FE 6F F0 1F FD ........#"..o...
0608: 03 25 44 FE 83 30 81 01 03 34 01 01 13 01 01 02 .%D..0...4......
0624: 67 80 00 00 g...
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fwrite: size=1, nmemb=18, stream=tcc-wasm.FILE@7
0000: 48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 21 0A 00 Hello, World!!..
0016: 0A 00 ..
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fwrite: size=1, nmemb=312, stream=tcc-wasm.FILE@7
0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 01 00 00 00 04 00 F1 FF ................
0032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 0E 00 00 00 01 00 03 00 00 00 00 00 00 00 00 00 ................
0064: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 ................
0080: 1C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0096: 12 00 00 00 02 00 01 00 48 00 00 00 00 00 00 00 ........H.......
0112: 6C 00 00 00 00 00 00 00 17 00 00 00 02 00 01 00 l...............
0128: 7A 01 00 00 00 00 00 00 3C 00 00 00 00 00 00 00 z.......<.......
0144: 1C 00 00 00 02 00 01 00 0C 02 00 00 00 00 00 00 ................
0160: 68 00 00 00 00 00 00 00 23 00 00 00 02 00 01 00 h.......#.......
0176: B4 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 ........H.......
0192: 29 00 00 00 01 00 03 00 10 00 00 00 00 00 00 00 )...............
0208: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 ................
0224: 84 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0240: 2D 00 00 00 02 00 01 00 FC 00 00 00 00 00 00 00 -...............
0256: 7E 00 00 00 00 00 00 00 37 00 00 00 02 00 01 00 ~.......7.......
0272: B6 01 00 00 00 00 00 00 56 00 00 00 00 00 00 00 ........V.......
0288: 09 00 00 00 12 00 01 00 00 00 00 00 00 00 00 00 ................
0304: 48 00 00 00 00 00 00 00 H.......
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fwrite: size=1, nmemb=65, stream=tcc-wasm.FILE@7
0000: 00 68 65 6C 6C 6F 2E 63 00 6D 61 69 6E 00 4C 2E .hello.c.main.L.
0016: 30 00 70 75 74 73 00 65 78 69 74 00 73 74 72 6C 0.puts.exit.strl
0032: 65 6E 00 77 72 69 74 65 00 4C 2E 31 00 73 79 73 en.write.L.1.sys
0048: 5F 63 61 6C 6C 33 00 73 79 73 5F 63 61 6C 6C 31 _call3.sys_call1
0064: 00 .
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fwrite: size=1, nmemb=264, stream=tcc-wasm.FILE@7
0000: 1C 00 00 00 00 00 00 00 17 00 00 00 02 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 ........ .......
0032: 18 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 24 00 00 00 00 00 00 00 13 00 00 00 04 00 00 00 $...............
0064: 00 00 00 00 00 00 00 00 30 00 00 00 00 00 00 00 ........0.......
0080: 13 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 ................
0096: 64 00 00 00 00 00 00 00 13 00 00 00 06 00 00 00 d...............
0112: 00 00 00 00 00 00 00 00 78 00 00 00 00 00 00 00 ........x.......
0128: 13 00 00 00 07 00 00 00 00 00 00 00 00 00 00 00 ................
0144: 84 00 00 00 00 00 00 00 17 00 00 00 08 00 00 00 ................
0160: 00 00 00 00 00 00 00 00 88 00 00 00 00 00 00 00 ................
0176: 18 00 00 00 09 00 00 00 00 00 00 00 00 00 00 00 ................
0192: 94 00 00 00 00 00 00 00 13 00 00 00 07 00 00 00 ................
0208: 00 00 00 00 00 00 00 00 E4 00 00 00 00 00 00 00 ................
0224: 13 00 00 00 0A 00 00 00 00 00 00 00 00 00 00 00 ................
0240: 9A 01 00 00 00 00 00 00 13 00 00 00 0B 00 00 00 ................
0256: 00 00 00 00 00 00 00 00 ........
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 00 2E 74 65 78 74 00 2E 64 61 74 61 00 2E 64 61 ..text..data..da
0016: 74 61 2E 72 6F 00 2E 62 73 73 00 2E 73 79 6D 74 ta.ro..bss..symt
0032: 61 62 00 2E 73 74 72 74 61 62 00 2E 72 65 6C 61 ab..strtab..rela
0048: 2E 74 65 78 74 00 2E 73 68 73 74 72 74 61 62 00 .text..shstrtab.
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 01 00 00 00 01 00 00 00 06 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 ........@.......
0032: 74 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 t...............
0048: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 07 00 00 00 01 00 00 00 03 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 C0 02 00 00 00 00 00 00 ................
0032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 0D 00 00 00 01 00 00 00 03 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 C0 02 00 00 00 00 00 00 ................
0032: 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 16 00 00 00 08 00 00 00 03 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 E0 02 00 00 00 00 00 00 ................
0032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 1B 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 E0 02 00 00 00 00 00 00 ................
0032: 38 01 00 00 00 00 00 00 06 00 00 00 0C 00 00 00 8...............
0048: 08 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 23 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 #...............
0016: 00 00 00 00 00 00 00 00 20 04 00 00 00 00 00 00 ........ .......
0032: 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A...............
0048: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 2B 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 +...............
0016: 00 00 00 00 00 00 00 00 70 04 00 00 00 00 00 00 ........p.......
0032: 08 01 00 00 00 00 00 00 05 00 00 00 01 00 00 00 ................
0048: 08 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 36 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 6...............
0016: 00 00 00 00 00 00 00 00 80 05 00 00 00 00 00 00 ................
0032: 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 @...............
0048: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fclose: stream=tcc-wasm.FILE@7
a.out: 2048 bytes
0000: 7F 45 4C 46 02 01 01 00 00 00 00 00 00 00 00 00 .ELF............
0016: 01 00 F3 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
0032: 00 00 00 00 00 00 00 00 C0 05 00 00 00 00 00 00 ................
0048: 04 00 00 00 40 00 00 00 00 00 40 00 09 00 08 00 ....@.....@.....
0064: 13 01 01 FE 23 3C 11 00 23 38 81 00 13 04 01 02 ....#<..#8......
0080: 13 00 00 00 23 34 A4 FE 23 30 B4 FE 17 05 00 00 ....#4..#0......
0096: 13 05 05 00 97 00 00 00 E7 80 00 00 1B 05 00 00 ................
0112: 97 00 00 00 E7 80 00 00 83 30 81 01 03 34 01 01 .........0...4..
0128: 13 01 01 02 67 80 00 00 13 01 01 FE 23 3C 11 00 ....g.......#<..
0144: 23 38 81 00 13 04 01 02 13 00 00 00 23 34 A4 FE #8..........#4..
0160: 03 35 84 FE 97 00 00 00 E7 80 00 00 13 06 05 00 .5..............
0176: 83 35 84 FE 1B 05 10 00 97 00 00 00 E7 80 00 00 .5..............
0192: 1B 06 10 00 97 05 00 00 93 85 05 00 23 22 A4 FE ............#"..
0208: 1B 05 10 00 97 00 00 00 E7 80 00 00 83 25 44 FE .............%D.
0224: 3B 85 A5 00 83 30 81 01 03 34 01 01 13 01 01 02 ;....0...4......
0240: 67 80 00 00 13 01 01 FD 23 34 11 02 23 30 81 02 g.......#4..#0..
0256: 13 04 01 03 13 00 00 00 23 34 A4 FE 23 30 B4 FE ........#4..#0..
0272: 23 3C C4 FC 83 26 84 FD 03 26 04 FE 83 25 84 FE #<...&...&...%..
0288: 1B 05 D0 03 97 00 00 00 E7 80 00 00 83 30 81 02 .............0..
0304: 03 34 01 02 13 01 01 03 67 80 00 00 13 01 01 FB .4......g.......
0320: 23 34 11 04 23 30 81 04 13 04 01 05 13 00 00 00 #4..#0..........
0336: 23 34 A4 FE 23 30 B4 FE 23 3C C4 FC 23 38 D4 FC #4..#0..#<..#8..
0352: 03 25 04 FD 23 34 A4 FC 93 16 05 02 93 D6 06 02 .%..#4..........
0368: 03 25 84 FD 23 30 A4 FC 13 16 05 02 13 56 06 02 .%..#0.......V..
0384: 03 25 04 FE 23 3C A4 FA 93 15 05 02 93 D5 05 02 .%..#<..........
0400: 03 25 84 FE 13 15 05 02 13 55 05 02 23 38 A4 FA .%.......U..#8..
0416: 73 00 00 00 01 00 03 25 04 FB 83 30 81 04 03 34 s......%...0...4
0432: 01 04 13 01 01 05 67 80 00 00 13 01 01 FE 23 3C ......g.......#<
0448: 11 00 23 38 81 00 13 04 01 02 13 00 00 00 23 34 ..#8..........#4
0464: A4 FE 83 25 84 FE 1B 05 80 00 97 00 00 00 E7 80 ...%............
0480: 00 00 6F 00 00 00 83 30 81 01 03 34 01 01 13 01 ..o....0...4....
0496: 01 02 67 80 00 00 13 01 01 FD 23 34 11 02 23 30 ..g.......#4..#0
0512: 81 02 13 04 01 03 13 00 00 00 23 34 A4 FE 23 30 ..........#4..#0
0528: B4 FE 03 25 04 FE 23 3C A4 FC 93 15 05 02 93 D5 ...%..#<........
0544: 05 02 03 25 84 FE 13 15 05 02 13 55 05 02 23 38 ...%.......U..#8
0560: A4 FC 73 00 00 00 01 00 03 25 04 FD 83 30 81 02 ..s......%...0..
0576: 03 34 01 02 13 01 01 03 67 80 00 00 13 01 01 FE .4......g.......
0592: 23 3C 11 00 23 38 81 00 13 04 01 02 13 00 00 00 #<..#8..........
0608: 23 34 A4 FE 1B 05 00 00 23 22 A4 FE 03 35 84 FE #4......#"...5..
0624: 83 45 05 00 63 94 05 00 6F 00 80 02 03 35 84 FE .E..c...o....5..
0640: 93 05 05 00 13 05 15 00 23 34 A4 FE 03 25 44 FE ........#4...%D.
0656: 93 05 05 00 1B 05 15 00 23 22 A4 FE 6F F0 1F FD ........#"..o...
0672: 03 25 44 FE 83 30 81 01 03 34 01 01 13 01 01 02 .%D..0...4......
0688: 67 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 g...............
0704: 48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 21 0A 00 Hello, World!!..
0720: 0A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0736: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0752: 00 00 00 00 00 00 00 00 01 00 00 00 04 00 F1 FF ................
0768: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0784: 0E 00 00 00 01 00 03 00 00 00 00 00 00 00 00 00 ................
0800: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 ................
0816: 1C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0832: 12 00 00 00 02 00 01 00 48 00 00 00 00 00 00 00 ........H.......
0848: 6C 00 00 00 00 00 00 00 17 00 00 00 02 00 01 00 l...............
0864: 7A 01 00 00 00 00 00 00 3C 00 00 00 00 00 00 00 z.......<.......
0880: 1C 00 00 00 02 00 01 00 0C 02 00 00 00 00 00 00 ................
0896: 68 00 00 00 00 00 00 00 23 00 00 00 02 00 01 00 h.......#.......
0912: B4 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 ........H.......
0928: 29 00 00 00 01 00 03 00 10 00 00 00 00 00 00 00 )...............
0944: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 ................
0960: 84 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0976: 2D 00 00 00 02 00 01 00 FC 00 00 00 00 00 00 00 -...............
0992: 7E 00 00 00 00 00 00 00 37 00 00 00 02 00 01 00 ~.......7.......
1008: B6 01 00 00 00 00 00 00 56 00 00 00 00 00 00 00 ........V.......
1024: 09 00 00 00 12 00 01 00 00 00 00 00 00 00 00 00 ................
1040: 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 H...............
1056: 00 68 65 6C 6C 6F 2E 63 00 6D 61 69 6E 00 4C 2E .hello.c.main.L.
1072: 30 00 70 75 74 73 00 65 78 69 74 00 73 74 72 6C 0.puts.exit.strl
1088: 65 6E 00 77 72 69 74 65 00 4C 2E 31 00 73 79 73 en.write.L.1.sys
1104: 5F 63 61 6C 6C 33 00 73 79 73 5F 63 61 6C 6C 31 _call3.sys_call1
1120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1136: 1C 00 00 00 00 00 00 00 17 00 00 00 02 00 00 00 ................
1152: 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 ........ .......
1168: 18 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 ................
1184: 24 00 00 00 00 00 00 00 13 00 00 00 04 00 00 00 $...............
1200: 00 00 00 00 00 00 00 00 30 00 00 00 00 00 00 00 ........0.......
1216: 13 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 ................
1232: 64 00 00 00 00 00 00 00 13 00 00 00 06 00 00 00 d...............
1248: 00 00 00 00 00 00 00 00 78 00 00 00 00 00 00 00 ........x.......
1264: 13 00 00 00 07 00 00 00 00 00 00 00 00 00 00 00 ................
1280: 84 00 00 00 00 00 00 00 17 00 00 00 08 00 00 00 ................
1296: 00 00 00 00 00 00 00 00 88 00 00 00 00 00 00 00 ................
1312: 18 00 00 00 09 00 00 00 00 00 00 00 00 00 00 00 ................
1328: 94 00 00 00 00 00 00 00 13 00 00 00 07 00 00 00 ................
1344: 00 00 00 00 00 00 00 00 E4 00 00 00 00 00 00 00 ................
1360: 13 00 00 00 0A 00 00 00 00 00 00 00 00 00 00 00 ................
1376: 9A 01 00 00 00 00 00 00 13 00 00 00 0B 00 00 00 ................
1392: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1408: 00 2E 74 65 78 74 00 2E 64 61 74 61 00 2E 64 61 ..text..data..da
1424: 74 61 2E 72 6F 00 2E 62 73 73 00 2E 73 79 6D 74 ta.ro..bss..symt
1440: 61 62 00 2E 73 74 72 74 61 62 00 2E 72 65 6C 61 ab..strtab..rela
1456: 2E 74 65 78 74 00 2E 73 68 73 74 72 74 61 62 00 .text..shstrtab.
1472: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1488: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1504: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1536: 01 00 00 00 01 00 00 00 06 00 00 00 00 00 00 00 ................
1552: 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 ........@.......
1568: 74 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 t...............
1584: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1600: 07 00 00 00 01 00 00 00 03 00 00 00 00 00 00 00 ................
1616: 00 00 00 00 00 00 00 00 C0 02 00 00 00 00 00 00 ................
1632: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1648: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1664: 0D 00 00 00 01 00 00 00 03 00 00 00 00 00 00 00 ................
1680: 00 00 00 00 00 00 00 00 C0 02 00 00 00 00 00 00 ................
1696: 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1712: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1728: 16 00 00 00 08 00 00 00 03 00 00 00 00 00 00 00 ................
1744: 00 00 00 00 00 00 00 00 E0 02 00 00 00 00 00 00 ................
1760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1776: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1792: 1B 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 ................
1808: 00 00 00 00 00 00 00 00 E0 02 00 00 00 00 00 00 ................
1824: 38 01 00 00 00 00 00 00 06 00 00 00 0C 00 00 00 8...............
1840: 08 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 ................
1856: 23 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 #...............
1872: 00 00 00 00 00 00 00 00 20 04 00 00 00 00 00 00 ........ .......
1888: 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A...............
1904: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1920: 2B 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 +...............
1936: 00 00 00 00 00 00 00 00 70 04 00 00 00 00 00 00 ........p.......
1952: 08 01 00 00 00 00 00 00 05 00 00 00 01 00 00 00 ................
1968: 08 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 ................
1984: 36 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 6...............
2000: 00 00 00 00 00 00 00 00 80 05 00 00 00 00 00 00 ................
2016: 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 @...............
2032: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
compile_program: end
ptr=18481152
main: len=2048
TCC Output saved to /tmp/a.out
+ node zig/test.js
+ grep --text TODO
TODO: setjmp
TODO: sscanf: str=0.9.27, format=%d.%d.%d
// TODO: Move this to a common file
+ test_wasm
+ node zig/test-nuttx.js
compile_program: start
compile_program: Mounting ROM FS...
romfs_bind: Entry
compile_program: ROM FS mounted OK
compile_program: Opening ROM FS File `stdio.h`...
romfs_open: Open 'stdio.h'
compile_program: ROM FS File `stdio.h` opened OK!
compile_program: Reading ROM FS File `stdio.h`...
romfs_read: Read 4 bytes from offset 0
romfs_read: Read sector 17969028
romfs_filecacheread: sector: 2 cached: 0 ncached: 1 sectorsize: 64 XIP base: anyopaque@1122f74 buffer: anyopaque@1122f74
romfs_filecacheread: XIP buffer: anyopaque@1122ff4
romfs_read: Return 4 bytes from sector offset 0
compile_program: ROM FS File `stdio.h` read OK!
0000: 2F 2F 20 43 // C
compile_program: Closing ROM FS File `stdio.h`...
romfs_close: Closing
compile_program: ROM FS File `stdio.h` closed OK!
compile_program: options=["-c","hello.c"]
compile_program: code=
#include <stdio.h>
#include <stdlib.h>
void main(int argc, char *argv[]) {
puts("Hello, World!!\n");
exit(0);
}
compile_program: options[0]=-c
compile_program: options[1]=hello.c
open: path=hello.c, oflag=0, return fd=3
sem_init: sem=tcc-wasm.sem_t@10d710, pshared=0, value=1
sem_wait: sem=tcc-wasm.sem_t@10d710
TODO: setjmp
TODO: sscanf: str=0.9.27, format=%d.%d.%d
read: fd=3, nbyte=8192
read: return buf=
#include <stdio.h>
#include <stdlib.h>
void main(int argc, char *argv[]) {
puts("Hello, World!!\n");
exit(0);
}
open: path=/usr/local/lib/tcc/include/stdio.h, oflag=0, return fd=4
romfs_open: Open 'stdio.h'
read: fd=4, nbyte=8192
romfs_read: Read 8192 bytes from offset 0
romfs_read: Read 38 sectors starting with 2
romfs_read: Read sector 0
romfs_filecacheread: sector: 40 cached: 0 ncached: 1 sectorsize: 64 XIP base: anyopaque@1122f74 buffer: anyopaque@1122f74
romfs_filecacheread: XIP buffer: anyopaque@1123974
romfs_read: Return 55 bytes from sector offset 0
read: return buf=
// Caution: This may change
#define SYS_write 61
// TODO: Move this to a common file
typedef int size_t;
typedef int ssize_t;
typedef int uintptr_t;
// Return the string length
inline size_t strlen(const char *s) {
size_t len = 0;
while (*s != 0) {
s++;
len++;
}
return len;
}
// Print the string to Standard Output
inline int puts(const char *s) {
return
write(1, s, strlen(s)) +
write(1, "\n", 1);
}
// Write to the File Descriptor
// https://lupyuen.github.io/articles/app#nuttx-app-calls-nuttx-kernel
inline ssize_t write(int parm1, const void * parm2, size_t parm3) {
return (ssize_t) sys_call3(
(unsigned int) SYS_write, // System Call Number
(uintptr_t) parm1, // File Descriptor (1 = Standard Output)
(uintptr_t) parm2, // Buffer to be written
(uintptr_t) parm3 // Number of bytes to write
);
}
// Make a System Call with 3 parameters
// https://github.com/apache/nuttx/blob/master/arch/risc-v/include/syscall.h#L240-L268
inline uintptr_t sys_call3(
unsigned int nbr, // System Call Number
uintptr_t parm1, // First Parameter
uintptr_t parm2, // Second Parameter
uintptr_t parm3 // Third Parameter
) {
// Pass the Function Number and Parameters in
// Registers A0 to A3
register long r3 asm("a0") = (long)(parm3); // Will move to A3
asm volatile ("slli a3, a0, 32"); // Shift 32 bits Left then Right
asm volatile ("srli a3, a3, 32"); // To clear the top 32 bits
register long r2 asm("a0") = (long)(parm2); // Will move to A2
asm volatile ("slli a2, a0, 32"); // Shift 32 bits Left then Right
asm volatile ("srli a2, a2, 32"); // To clear the top 32 bits
register long r1 asm("a0") = (long)(parm1); // Will move to A1
asm volatile ("slli a1, a0, 32"); // Shift 32 bits Left then Right
asm volatile ("srli a1, a1, 32"); // To clear the top 32 bits
register long r0 asm("a0") = (long)(nbr); // Will stay in A0
// `ecall` will jump from RISC-V User Mode
// to RISC-V Supervisor Mode
// to execute the System Call.
// Input + Output Registers: A0 to A3
// Clobbers the Memory
asm volatile
(
// ECALL for System Call to NuttX Kernel
"ecall \n"
// NuttX needs NOP after ECALL
".word 0x0001 \n"
// Input+Output Registers: None
// Input-Only Registers: A0 to A3
// Clobbers the Memory
:
: "r"(r0), "r"(r1), "r"(r2), "r"(r3)
: "memory"
);
// Return the result from Register A0
return r0;
}
read: fd=4, nbyte=8192
romfs_read: Read 8192 bytes from offset 2487
read: return buf=
close: fd=4
romfs_close: Closing
open: path=/usr/local/lib/tcc/include/stdlib.h, oflag=0, return fd=5
romfs_open: Open 'stdlib.h'
read: fd=5, nbyte=8192
romfs_read: Read 8192 bytes from offset 0
romfs_read: Read sector 0
romfs_filecacheread: sector: 41 cached: 0 ncached: 1 sectorsize: 64 XIP base: anyopaque@1122f74 buffer: anyopaque@1122f74
romfs_filecacheread: XIP buffer: anyopaque@11239b4
romfs_read: Return 32 bytes from sector offset 32
romfs_read: Read 20 sectors starting with 42
romfs_read: Read sector 0
romfs_filecacheread: sector: 62 cached: 41 ncached: 1 sectorsize: 64 XIP base: anyopaque@1122f74 buffer: anyopaque@11239b4
romfs_filecacheread: XIP buffer: anyopaque@1123ef4
romfs_read: Return 14 bytes from sector offset 0
read: return buf=
// Caution: This may change
#define SYS__exit 8
// Terminate the NuttX Process
// From nuttx/syscall/proxies/PROXY__exit.c
inline void exit(int parm1) {
sys_call1((unsigned int)SYS__exit, (uintptr_t)parm1);
while(1);
}
// Make a System Call with 1 parameters
// https://github.com/apache/nuttx/blob/master/arch/risc-v/include/syscall.h#L188-L213
inline uintptr_t sys_call1(
unsigned int nbr, // System Call Number
uintptr_t parm1 // First Parameter
) {
// Pass the Function Number and Parameters
// Registers A0 to A1
register long r1 asm("a0") = (long)(parm1); // Will move to A1
asm volatile ("slli a1, a0, 32"); // Shift 32 bits Left then Right
asm volatile ("srli a1, a1, 32"); // To clear the top 32 bits
register long r0 asm("a0") = (long)(nbr); // Will stay in A0
// `ecall` will jump from RISC-V User Mode
// to RISC-V Supervisor Mode
// to execute the System Call.
// Input + Output Registers: A0 to A1
// Clobbers the Memory
asm volatile
(
// ECALL for System Call to NuttX Kernel
"ecall \n"
// NuttX needs NOP after ECALL
".word 0x0001 \n"
// Input+Output Registers: None
// Input-Only Registers: A0 to A1
// Clobbers the Memory
:
: "r"(r0), "r"(r1)
: "memory"
);
// Return the result from Register A0
return r0;
}
read: fd=5, nbyte=8192
romfs_read: Read 8192 bytes from offset 1326
read: return buf=
close: fd=5
romfs_close: Closing
read: fd=3, nbyte=8192
read: return buf=
close: fd=3
sem_post: sem=tcc-wasm.sem_t@10d710
unlink: path=hello.o
open: path=hello.o, oflag=577, return fd=6
fdopen: fd=6, mode=wb, return FILE=7
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 7F 45 4C 46 02 01 01 00 00 00 00 00 00 00 00 00 .ELF............
0016: 01 00 F3 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
0032: 00 00 00 00 00 00 00 00 C0 05 00 00 00 00 00 00 ................
0048: 04 00 00 00 40 00 00 00 00 00 40 00 09 00 08 00 ....@.....@.....
fwrite: size=1, nmemb=628, stream=tcc-wasm.FILE@7
0000: 13 01 01 FE 23 3C 11 00 23 38 81 00 13 04 01 02 ....#<..#8......
0016: 13 00 00 00 23 34 A4 FE 23 30 B4 FE 17 05 00 00 ....#4..#0......
0032: 13 05 05 00 97 00 00 00 E7 80 00 00 1B 05 00 00 ................
0048: 97 00 00 00 E7 80 00 00 83 30 81 01 03 34 01 01 .........0...4..
0064: 13 01 01 02 67 80 00 00 13 01 01 FE 23 3C 11 00 ....g.......#<..
0080: 23 38 81 00 13 04 01 02 13 00 00 00 23 34 A4 FE #8..........#4..
0096: 03 35 84 FE 97 00 00 00 E7 80 00 00 13 06 05 00 .5..............
0112: 83 35 84 FE 1B 05 10 00 97 00 00 00 E7 80 00 00 .5..............
0128: 1B 06 10 00 97 05 00 00 93 85 05 00 23 22 A4 FE ............#"..
0144: 1B 05 10 00 97 00 00 00 E7 80 00 00 83 25 44 FE .............%D.
0160: 3B 85 A5 00 83 30 81 01 03 34 01 01 13 01 01 02 ;....0...4......
0176: 67 80 00 00 13 01 01 FD 23 34 11 02 23 30 81 02 g.......#4..#0..
0192: 13 04 01 03 13 00 00 00 23 34 A4 FE 23 30 B4 FE ........#4..#0..
0208: 23 3C C4 FC 83 26 84 FD 03 26 04 FE 83 25 84 FE #<...&...&...%..
0224: 1B 05 D0 03 97 00 00 00 E7 80 00 00 83 30 81 02 .............0..
0240: 03 34 01 02 13 01 01 03 67 80 00 00 13 01 01 FB .4......g.......
0256: 23 34 11 04 23 30 81 04 13 04 01 05 13 00 00 00 #4..#0..........
0272: 23 34 A4 FE 23 30 B4 FE 23 3C C4 FC 23 38 D4 FC #4..#0..#<..#8..
0288: 03 25 04 FD 23 34 A4 FC 93 16 05 02 93 D6 06 02 .%..#4..........
0304: 03 25 84 FD 23 30 A4 FC 13 16 05 02 13 56 06 02 .%..#0.......V..
0320: 03 25 04 FE 23 3C A4 FA 93 15 05 02 93 D5 05 02 .%..#<..........
0336: 03 25 84 FE 13 15 05 02 13 55 05 02 23 38 A4 FA .%.......U..#8..
0352: 73 00 00 00 01 00 03 25 04 FB 83 30 81 04 03 34 s......%...0...4
0368: 01 04 13 01 01 05 67 80 00 00 13 01 01 FE 23 3C ......g.......#<
0384: 11 00 23 38 81 00 13 04 01 02 13 00 00 00 23 34 ..#8..........#4
0400: A4 FE 83 25 84 FE 1B 05 80 00 97 00 00 00 E7 80 ...%............
0416: 00 00 6F 00 00 00 83 30 81 01 03 34 01 01 13 01 ..o....0...4....
0432: 01 02 67 80 00 00 13 01 01 FD 23 34 11 02 23 30 ..g.......#4..#0
0448: 81 02 13 04 01 03 13 00 00 00 23 34 A4 FE 23 30 ..........#4..#0
0464: B4 FE 03 25 04 FE 23 3C A4 FC 93 15 05 02 93 D5 ...%..#<........
0480: 05 02 03 25 84 FE 13 15 05 02 13 55 05 02 23 38 ...%.......U..#8
0496: A4 FC 73 00 00 00 01 00 03 25 04 FD 83 30 81 02 ..s......%...0..
0512: 03 34 01 02 13 01 01 03 67 80 00 00 13 01 01 FE .4......g.......
0528: 23 3C 11 00 23 38 81 00 13 04 01 02 13 00 00 00 #<..#8..........
0544: 23 34 A4 FE 1B 05 00 00 23 22 A4 FE 03 35 84 FE #4......#"...5..
0560: 83 45 05 00 63 94 05 00 6F 00 80 02 03 35 84 FE .E..c...o....5..
0576: 93 05 05 00 13 05 15 00 23 34 A4 FE 03 25 44 FE ........#4...%D.
0592: 93 05 05 00 1B 05 15 00 23 22 A4 FE 6F F0 1F FD ........#"..o...
0608: 03 25 44 FE 83 30 81 01 03 34 01 01 13 01 01 02 .%D..0...4......
0624: 67 80 00 00 g...
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fwrite: size=1, nmemb=18, stream=tcc-wasm.FILE@7
0000: 48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 21 0A 00 Hello, World!!..
0016: 0A 00 ..
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fwrite: size=1, nmemb=312, stream=tcc-wasm.FILE@7
0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 01 00 00 00 04 00 F1 FF ................
0032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 0E 00 00 00 01 00 03 00 00 00 00 00 00 00 00 00 ................
0064: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 ................
0080: 1C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0096: 12 00 00 00 02 00 01 00 48 00 00 00 00 00 00 00 ........H.......
0112: 6C 00 00 00 00 00 00 00 17 00 00 00 02 00 01 00 l...............
0128: 7A 01 00 00 00 00 00 00 3C 00 00 00 00 00 00 00 z.......<.......
0144: 1C 00 00 00 02 00 01 00 0C 02 00 00 00 00 00 00 ................
0160: 68 00 00 00 00 00 00 00 23 00 00 00 02 00 01 00 h.......#.......
0176: B4 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 ........H.......
0192: 29 00 00 00 01 00 03 00 10 00 00 00 00 00 00 00 )...............
0208: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 ................
0224: 84 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0240: 2D 00 00 00 02 00 01 00 FC 00 00 00 00 00 00 00 -...............
0256: 7E 00 00 00 00 00 00 00 37 00 00 00 02 00 01 00 ~.......7.......
0272: B6 01 00 00 00 00 00 00 56 00 00 00 00 00 00 00 ........V.......
0288: 09 00 00 00 12 00 01 00 00 00 00 00 00 00 00 00 ................
0304: 48 00 00 00 00 00 00 00 H.......
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fwrite: size=1, nmemb=65, stream=tcc-wasm.FILE@7
0000: 00 68 65 6C 6C 6F 2E 63 00 6D 61 69 6E 00 4C 2E .hello.c.main.L.
0016: 30 00 70 75 74 73 00 65 78 69 74 00 73 74 72 6C 0.puts.exit.strl
0032: 65 6E 00 77 72 69 74 65 00 4C 2E 31 00 73 79 73 en.write.L.1.sys
0048: 5F 63 61 6C 6C 33 00 73 79 73 5F 63 61 6C 6C 31 _call3.sys_call1
0064: 00 .
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fwrite: size=1, nmemb=264, stream=tcc-wasm.FILE@7
0000: 1C 00 00 00 00 00 00 00 17 00 00 00 02 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 ........ .......
0032: 18 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 24 00 00 00 00 00 00 00 13 00 00 00 04 00 00 00 $...............
0064: 00 00 00 00 00 00 00 00 30 00 00 00 00 00 00 00 ........0.......
0080: 13 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 ................
0096: 64 00 00 00 00 00 00 00 13 00 00 00 06 00 00 00 d...............
0112: 00 00 00 00 00 00 00 00 78 00 00 00 00 00 00 00 ........x.......
0128: 13 00 00 00 07 00 00 00 00 00 00 00 00 00 00 00 ................
0144: 84 00 00 00 00 00 00 00 17 00 00 00 08 00 00 00 ................
0160: 00 00 00 00 00 00 00 00 88 00 00 00 00 00 00 00 ................
0176: 18 00 00 00 09 00 00 00 00 00 00 00 00 00 00 00 ................
0192: 94 00 00 00 00 00 00 00 13 00 00 00 07 00 00 00 ................
0208: 00 00 00 00 00 00 00 00 E4 00 00 00 00 00 00 00 ................
0224: 13 00 00 00 0A 00 00 00 00 00 00 00 00 00 00 00 ................
0240: 9A 01 00 00 00 00 00 00 13 00 00 00 0B 00 00 00 ................
0256: 00 00 00 00 00 00 00 00 ........
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fputc: ch=0x00, stream=tcc-wasm.FILE@7
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 00 2E 74 65 78 74 00 2E 64 61 74 61 00 2E 64 61 ..text..data..da
0016: 74 61 2E 72 6F 00 2E 62 73 73 00 2E 73 79 6D 74 ta.ro..bss..symt
0032: 61 62 00 2E 73 74 72 74 61 62 00 2E 72 65 6C 61 ab..strtab..rela
0048: 2E 74 65 78 74 00 2E 73 68 73 74 72 74 61 62 00 .text..shstrtab.
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 01 00 00 00 01 00 00 00 06 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 ........@.......
0032: 74 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 t...............
0048: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 07 00 00 00 01 00 00 00 03 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 C0 02 00 00 00 00 00 00 ................
0032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 0D 00 00 00 01 00 00 00 03 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 C0 02 00 00 00 00 00 00 ................
0032: 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 16 00 00 00 08 00 00 00 03 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 E0 02 00 00 00 00 00 00 ................
0032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0048: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 1B 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 ................
0016: 00 00 00 00 00 00 00 00 E0 02 00 00 00 00 00 00 ................
0032: 38 01 00 00 00 00 00 00 06 00 00 00 0C 00 00 00 8...............
0048: 08 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 23 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 #...............
0016: 00 00 00 00 00 00 00 00 20 04 00 00 00 00 00 00 ........ .......
0032: 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A...............
0048: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 2B 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 +...............
0016: 00 00 00 00 00 00 00 00 70 04 00 00 00 00 00 00 ........p.......
0032: 08 01 00 00 00 00 00 00 05 00 00 00 01 00 00 00 ................
0048: 08 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 ................
fwrite: size=1, nmemb=64, stream=tcc-wasm.FILE@7
0000: 36 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 6...............
0016: 00 00 00 00 00 00 00 00 80 05 00 00 00 00 00 00 ................
0032: 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 @...............
0048: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
fclose: stream=tcc-wasm.FILE@7
a.out: 2048 bytes
0000: 7F 45 4C 46 02 01 01 00 00 00 00 00 00 00 00 00 .ELF............
0016: 01 00 F3 00 01 00 00 00 00 00 00 00 00 00 00 00 ................
0032: 00 00 00 00 00 00 00 00 C0 05 00 00 00 00 00 00 ................
0048: 04 00 00 00 40 00 00 00 00 00 40 00 09 00 08 00 ....@.....@.....
0064: 13 01 01 FE 23 3C 11 00 23 38 81 00 13 04 01 02 ....#<..#8......
0080: 13 00 00 00 23 34 A4 FE 23 30 B4 FE 17 05 00 00 ....#4..#0......
0096: 13 05 05 00 97 00 00 00 E7 80 00 00 1B 05 00 00 ................
0112: 97 00 00 00 E7 80 00 00 83 30 81 01 03 34 01 01 .........0...4..
0128: 13 01 01 02 67 80 00 00 13 01 01 FE 23 3C 11 00 ....g.......#<..
0144: 23 38 81 00 13 04 01 02 13 00 00 00 23 34 A4 FE #8..........#4..
0160: 03 35 84 FE 97 00 00 00 E7 80 00 00 13 06 05 00 .5..............
0176: 83 35 84 FE 1B 05 10 00 97 00 00 00 E7 80 00 00 .5..............
0192: 1B 06 10 00 97 05 00 00 93 85 05 00 23 22 A4 FE ............#"..
0208: 1B 05 10 00 97 00 00 00 E7 80 00 00 83 25 44 FE .............%D.
0224: 3B 85 A5 00 83 30 81 01 03 34 01 01 13 01 01 02 ;....0...4......
0240: 67 80 00 00 13 01 01 FD 23 34 11 02 23 30 81 02 g.......#4..#0..
0256: 13 04 01 03 13 00 00 00 23 34 A4 FE 23 30 B4 FE ........#4..#0..
0272: 23 3C C4 FC 83 26 84 FD 03 26 04 FE 83 25 84 FE #<...&...&...%..
0288: 1B 05 D0 03 97 00 00 00 E7 80 00 00 83 30 81 02 .............0..
0304: 03 34 01 02 13 01 01 03 67 80 00 00 13 01 01 FB .4......g.......
0320: 23 34 11 04 23 30 81 04 13 04 01 05 13 00 00 00 #4..#0..........
0336: 23 34 A4 FE 23 30 B4 FE 23 3C C4 FC 23 38 D4 FC #4..#0..#<..#8..
0352: 03 25 04 FD 23 34 A4 FC 93 16 05 02 93 D6 06 02 .%..#4..........
0368: 03 25 84 FD 23 30 A4 FC 13 16 05 02 13 56 06 02 .%..#0.......V..
0384: 03 25 04 FE 23 3C A4 FA 93 15 05 02 93 D5 05 02 .%..#<..........
0400: 03 25 84 FE 13 15 05 02 13 55 05 02 23 38 A4 FA .%.......U..#8..
0416: 73 00 00 00 01 00 03 25 04 FB 83 30 81 04 03 34 s......%...0...4
0432: 01 04 13 01 01 05 67 80 00 00 13 01 01 FE 23 3C ......g.......#<
0448: 11 00 23 38 81 00 13 04 01 02 13 00 00 00 23 34 ..#8..........#4
0464: A4 FE 83 25 84 FE 1B 05 80 00 97 00 00 00 E7 80 ...%............
0480: 00 00 6F 00 00 00 83 30 81 01 03 34 01 01 13 01 ..o....0...4....
0496: 01 02 67 80 00 00 13 01 01 FD 23 34 11 02 23 30 ..g.......#4..#0
0512: 81 02 13 04 01 03 13 00 00 00 23 34 A4 FE 23 30 ..........#4..#0
0528: B4 FE 03 25 04 FE 23 3C A4 FC 93 15 05 02 93 D5 ...%..#<........
0544: 05 02 03 25 84 FE 13 15 05 02 13 55 05 02 23 38 ...%.......U..#8
0560: A4 FC 73 00 00 00 01 00 03 25 04 FD 83 30 81 02 ..s......%...0..
0576: 03 34 01 02 13 01 01 03 67 80 00 00 13 01 01 FE .4......g.......
0592: 23 3C 11 00 23 38 81 00 13 04 01 02 13 00 00 00 #<..#8..........
0608: 23 34 A4 FE 1B 05 00 00 23 22 A4 FE 03 35 84 FE #4......#"...5..
0624: 83 45 05 00 63 94 05 00 6F 00 80 02 03 35 84 FE .E..c...o....5..
0640: 93 05 05 00 13 05 15 00 23 34 A4 FE 03 25 44 FE ........#4...%D.
0656: 93 05 05 00 1B 05 15 00 23 22 A4 FE 6F F0 1F FD ........#"..o...
0672: 03 25 44 FE 83 30 81 01 03 34 01 01 13 01 01 02 .%D..0...4......
0688: 67 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 g...............
0704: 48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 21 0A 00 Hello, World!!..
0720: 0A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0736: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0752: 00 00 00 00 00 00 00 00 01 00 00 00 04 00 F1 FF ................
0768: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0784: 0E 00 00 00 01 00 03 00 00 00 00 00 00 00 00 00 ................
0800: 10 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 ................
0816: 1C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0832: 12 00 00 00 02 00 01 00 48 00 00 00 00 00 00 00 ........H.......
0848: 6C 00 00 00 00 00 00 00 17 00 00 00 02 00 01 00 l...............
0864: 7A 01 00 00 00 00 00 00 3C 00 00 00 00 00 00 00 z.......<.......
0880: 1C 00 00 00 02 00 01 00 0C 02 00 00 00 00 00 00 ................
0896: 68 00 00 00 00 00 00 00 23 00 00 00 02 00 01 00 h.......#.......
0912: B4 00 00 00 00 00 00 00 48 00 00 00 00 00 00 00 ........H.......
0928: 29 00 00 00 01 00 03 00 10 00 00 00 00 00 00 00 )...............
0944: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 ................
0960: 84 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0976: 2D 00 00 00 02 00 01 00 FC 00 00 00 00 00 00 00 -...............
0992: 7E 00 00 00 00 00 00 00 37 00 00 00 02 00 01 00 ~.......7.......
1008: B6 01 00 00 00 00 00 00 56 00 00 00 00 00 00 00 ........V.......
1024: 09 00 00 00 12 00 01 00 00 00 00 00 00 00 00 00 ................
1040: 48 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 H...............
1056: 00 68 65 6C 6C 6F 2E 63 00 6D 61 69 6E 00 4C 2E .hello.c.main.L.
1072: 30 00 70 75 74 73 00 65 78 69 74 00 73 74 72 6C 0.puts.exit.strl
1088: 65 6E 00 77 72 69 74 65 00 4C 2E 31 00 73 79 73 en.write.L.1.sys
1104: 5F 63 61 6C 6C 33 00 73 79 73 5F 63 61 6C 6C 31 _call3.sys_call1
1120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1136: 1C 00 00 00 00 00 00 00 17 00 00 00 02 00 00 00 ................
1152: 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 ........ .......
1168: 18 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 ................
1184: 24 00 00 00 00 00 00 00 13 00 00 00 04 00 00 00 $...............
1200: 00 00 00 00 00 00 00 00 30 00 00 00 00 00 00 00 ........0.......
1216: 13 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 ................
1232: 64 00 00 00 00 00 00 00 13 00 00 00 06 00 00 00 d...............
1248: 00 00 00 00 00 00 00 00 78 00 00 00 00 00 00 00 ........x.......
1264: 13 00 00 00 07 00 00 00 00 00 00 00 00 00 00 00 ................
1280: 84 00 00 00 00 00 00 00 17 00 00 00 08 00 00 00 ................
1296: 00 00 00 00 00 00 00 00 88 00 00 00 00 00 00 00 ................
1312: 18 00 00 00 09 00 00 00 00 00 00 00 00 00 00 00 ................
1328: 94 00 00 00 00 00 00 00 13 00 00 00 07 00 00 00 ................
1344: 00 00 00 00 00 00 00 00 E4 00 00 00 00 00 00 00 ................
1360: 13 00 00 00 0A 00 00 00 00 00 00 00 00 00 00 00 ................
1376: 9A 01 00 00 00 00 00 00 13 00 00 00 0B 00 00 00 ................
1392: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1408: 00 2E 74 65 78 74 00 2E 64 61 74 61 00 2E 64 61 ..text..data..da
1424: 74 61 2E 72 6F 00 2E 62 73 73 00 2E 73 79 6D 74 ta.ro..bss..symt
1440: 61 62 00 2E 73 74 72 74 61 62 00 2E 72 65 6C 61 ab..strtab..rela
1456: 2E 74 65 78 74 00 2E 73 68 73 74 72 74 61 62 00 .text..shstrtab.
1472: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1488: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1504: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1536: 01 00 00 00 01 00 00 00 06 00 00 00 00 00 00 00 ................
1552: 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 ........@.......
1568: 74 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 t...............
1584: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1600: 07 00 00 00 01 00 00 00 03 00 00 00 00 00 00 00 ................
1616: 00 00 00 00 00 00 00 00 C0 02 00 00 00 00 00 00 ................
1632: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1648: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1664: 0D 00 00 00 01 00 00 00 03 00 00 00 00 00 00 00 ................
1680: 00 00 00 00 00 00 00 00 C0 02 00 00 00 00 00 00 ................
1696: 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1712: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1728: 16 00 00 00 08 00 00 00 03 00 00 00 00 00 00 00 ................
1744: 00 00 00 00 00 00 00 00 E0 02 00 00 00 00 00 00 ................
1760: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1776: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1792: 1B 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 ................
1808: 00 00 00 00 00 00 00 00 E0 02 00 00 00 00 00 00 ................
1824: 38 01 00 00 00 00 00 00 06 00 00 00 0C 00 00 00 8...............
1840: 08 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 ................
1856: 23 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 #...............
1872: 00 00 00 00 00 00 00 00 20 04 00 00 00 00 00 00 ........ .......
1888: 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 A...............
1904: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
1920: 2B 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 +...............
1936: 00 00 00 00 00 00 00 00 70 04 00 00 00 00 00 00 ........p.......
1952: 08 01 00 00 00 00 00 00 05 00 00 00 01 00 00 00 ................
1968: 08 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 ................
1984: 36 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 6...............
2000: 00 00 00 00 00 00 00 00 80 05 00 00 00 00 00 00 ................
2016: 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 @...............
2032: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
compile_program: end
ptr=18481152
main: len=2048
TCC Output saved to /tmp/a.out
+ pushd ../nuttx
/workspaces/bookworm/nuttx /workspaces/bookworm/tcc-riscv32-wasm /workspaces/bookworm/tcc-riscv32-wasm/zig
+ cp /tmp/a.out ../apps/bin/
+ riscv-none-elf-objdump --syms --source --reloc --demangle --line-numbers --wide --debugging ../apps/bin/a.out
../apps/bin/a.out: file format elf64-littleriscv
SYMBOL TABLE:
0000000000000000 l df *ABS* 0000000000000000 hello.c
0000000000000000 l O .data.ro 0000000000000010 L.0
0000000000000048 l F .text 000000000000006c puts
000000000000017a l F .text 000000000000003c exit
000000000000020c l F .text 0000000000000068 strlen
00000000000000b4 l F .text 0000000000000048 write
0000000000000010 l O .data.ro 0000000000000002 L.1
00000000000000fc l F .text 000000000000007e sys_call3
00000000000001b6 l F .text 0000000000000056 sys_call1
0000000000000000 g F .text 0000000000000048 main
Disassembly of section .text:
0000000000000000 <main>:
main():
0: fe010113 add sp,sp,-32
4: 00113c23 sd ra,24(sp)
8: 00813823 sd s0,16(sp)
c: 02010413 add s0,sp,32
10: 00000013 nop
14: fea43423 sd a0,-24(s0)
18: feb43023 sd a1,-32(s0)
1c: 00000517 auipc a0,0x0 1c: R_RISCV_PCREL_HI20 L.0
20: 00050513 mv a0,a0 20: R_RISCV_PCREL_LO12_I .text
24: 00000097 auipc ra,0x0 24: R_RISCV_CALL_PLT puts
28: 000080e7 jalr ra # 24 <main+0x24>
2c: 0000051b sext.w a0,zero
30: 00000097 auipc ra,0x0 30: R_RISCV_CALL_PLT exit
34: 000080e7 jalr ra # 30 <main+0x30>
38: 01813083 ld ra,24(sp)
3c: 01013403 ld s0,16(sp)
40: 02010113 add sp,sp,32
44: 00008067 ret
0000000000000048 <puts>:
puts():
48: fe010113 add sp,sp,-32
4c: 00113c23 sd ra,24(sp)
50: 00813823 sd s0,16(sp)
54: 02010413 add s0,sp,32
58: 00000013 nop
5c: fea43423 sd a0,-24(s0)
60: fe843503 ld a0,-24(s0)
64: 00000097 auipc ra,0x0 64: R_RISCV_CALL_PLT strlen
68: 000080e7 jalr ra # 64 <puts+0x1c>
6c: 00050613 mv a2,a0
70: fe843583 ld a1,-24(s0)
74: 0010051b addw a0,zero,1
78: 00000097 auipc ra,0x0 78: R_RISCV_CALL_PLT write
7c: 000080e7 jalr ra # 78 <puts+0x30>
80: 0010061b addw a2,zero,1
84: 00000597 auipc a1,0x0 84: R_RISCV_PCREL_HI20 L.1
88: 00058593 mv a1,a1 88: R_RISCV_PCREL_LO12_I .text
8c: fea42223 sw a0,-28(s0)
90: 0010051b addw a0,zero,1
94: 00000097 auipc ra,0x0 94: R_RISCV_CALL_PLT write
98: 000080e7 jalr ra # 94 <puts+0x4c>
9c: fe442583 lw a1,-28(s0)
a0: 00a5853b addw a0,a1,a0
a4: 01813083 ld ra,24(sp)
a8: 01013403 ld s0,16(sp)
ac: 02010113 add sp,sp,32
b0: 00008067 ret
00000000000000b4 <write>:
write():
b4: fd010113 add sp,sp,-48
b8: 02113423 sd ra,40(sp)
bc: 02813023 sd s0,32(sp)
c0: 03010413 add s0,sp,48
c4: 00000013 nop
c8: fea43423 sd a0,-24(s0)
cc: feb43023 sd a1,-32(s0)
d0: fcc43c23 sd a2,-40(s0)
d4: fd842683 lw a3,-40(s0)
d8: fe042603 lw a2,-32(s0)
dc: fe842583 lw a1,-24(s0)
e0: 03d0051b addw a0,zero,61
e4: 00000097 auipc ra,0x0 e4: R_RISCV_CALL_PLT sys_call3
e8: 000080e7 jalr ra # e4 <write+0x30>
ec: 02813083 ld ra,40(sp)
f0: 02013403 ld s0,32(sp)
f4: 03010113 add sp,sp,48
f8: 00008067 ret
00000000000000fc <sys_call3>:
sys_call3():
fc: fb010113 add sp,sp,-80
100: 04113423 sd ra,72(sp)
104: 04813023 sd s0,64(sp)
108: 05010413 add s0,sp,80
10c: 00000013 nop
110: fea43423 sd a0,-24(s0)
114: feb43023 sd a1,-32(s0)
118: fcc43c23 sd a2,-40(s0)
11c: fcd43823 sd a3,-48(s0)
120: fd042503 lw a0,-48(s0)
124: fca43423 sd a0,-56(s0)
128: 02051693 sll a3,a0,0x20
12c: 0206d693 srl a3,a3,0x20
130: fd842503 lw a0,-40(s0)
134: fca43023 sd a0,-64(s0)
138: 02051613 sll a2,a0,0x20
13c: 02065613 srl a2,a2,0x20
140: fe042503 lw a0,-32(s0)
144: faa43c23 sd a0,-72(s0)
148: 02051593 sll a1,a0,0x20
14c: 0205d593 srl a1,a1,0x20
150: fe842503 lw a0,-24(s0)
154: 02051513 sll a0,a0,0x20
158: 02055513 srl a0,a0,0x20
15c: faa43823 sd a0,-80(s0)
160: 00000073 ecall
164: 0001 nop
166: fb042503 lw a0,-80(s0)
16a: 04813083 ld ra,72(sp)
16e: 04013403 ld s0,64(sp)
172: 05010113 add sp,sp,80
176: 00008067 ret
000000000000017a <exit>:
exit():
17a: fe010113 add sp,sp,-32
17e: 00113c23 sd ra,24(sp)
182: 00813823 sd s0,16(sp)
186: 02010413 add s0,sp,32
18a: 00000013 nop
18e: fea43423 sd a0,-24(s0)
192: fe842583 lw a1,-24(s0)
196: 0080051b addw a0,zero,8
19a: 00000097 auipc ra,0x0 19a: R_RISCV_CALL_PLT sys_call1
19e: 000080e7 jalr ra # 19a <exit+0x20>
1a2: 0000006f j 1a2 <exit+0x28>
1a6: 01813083 ld ra,24(sp)
1aa: 01013403 ld s0,16(sp)
1ae: 02010113 add sp,sp,32
1b2: 00008067 ret
00000000000001b6 <sys_call1>:
sys_call1():
1b6: fd010113 add sp,sp,-48
1ba: 02113423 sd ra,40(sp)
1be: 02813023 sd s0,32(sp)
1c2: 03010413 add s0,sp,48
1c6: 00000013 nop
1ca: fea43423 sd a0,-24(s0)
1ce: feb43023 sd a1,-32(s0)
1d2: fe042503 lw a0,-32(s0)
1d6: fca43c23 sd a0,-40(s0)
1da: 02051593 sll a1,a0,0x20
1de: 0205d593 srl a1,a1,0x20
1e2: fe842503 lw a0,-24(s0)
1e6: 02051513 sll a0,a0,0x20
1ea: 02055513 srl a0,a0,0x20
1ee: fca43823 sd a0,-48(s0)
1f2: 00000073 ecall
1f6: 0001 nop
1f8: fd042503 lw a0,-48(s0)
1fc: 02813083 ld ra,40(sp)
200: 02013403 ld s0,32(sp)
204: 03010113 add sp,sp,48
208: 00008067 ret
000000000000020c <strlen>:
strlen():
20c: fe010113 add sp,sp,-32
210: 00113c23 sd ra,24(sp)
214: 00813823 sd s0,16(sp)
218: 02010413 add s0,sp,32
21c: 00000013 nop
220: fea43423 sd a0,-24(s0)
224: 0000051b sext.w a0,zero
228: fea42223 sw a0,-28(s0)
22c: fe843503 ld a0,-24(s0)
230: 00054583 lbu a1,0(a0) # 1c <main+0x1c>
234: 00059463 bnez a1,23c <strlen+0x30>
238: 0280006f j 260 <strlen+0x54>
23c: fe843503 ld a0,-24(s0)
240: 00050593 mv a1,a0
244: 00150513 add a0,a0,1
248: fea43423 sd a0,-24(s0)
24c: fe442503 lw a0,-28(s0)
250: 00050593 mv a1,a0
254: 0015051b addw a0,a0,1
258: fea42223 sw a0,-28(s0)
25c: fd1ff06f j 22c <strlen+0x20>
260: fe442503 lw a0,-28(s0)
264: 01813083 ld ra,24(sp)
268: 01013403 ld s0,16(sp)
26c: 02010113 add sp,sp,32
270: 00008067 ret
+ qemu-system-riscv64 -semihosting -M virt,aclint=on -cpu rv64 -smp 8 -bios none -kernel nuttx -nographic
ABC[ 0.000000] qemu_rv_kernel_mappings: map I/O regions
[ 0.000000] qemu_rv_kernel_mappings: map kernel text
[ 0.000000] qemu_rv_kernel_mappings: map kernel data
[ 0.000000] qemu_rv_kernel_mappings: connect the L1 and L2 page tables
[ 0.000000] qemu_rv_kernel_mappings: map the page pool
[ 0.000000] qemu_rv_mm_init: mmu_enable: satp=2149601280
[ 0.000000] elf_initialize: Registering ELF
[ 0.007000] load_absmodule: Loading /system/bin/init
[ 0.007000] elf_loadbinary: Loading file: /system/bin/init
[ 0.009000] elf_init: filename: /system/bin/init loadinfo: 0x802069b8
[ 0.013000] elf_read: Read 64 bytes from offset 0
[ 0.017000] elf_dumploadinfo: LOAD_INFO:
[ 0.017000] elf_dumploadinfo: textalloc: 00000000
[ 0.019000] elf_dumploadinfo: dataalloc: 00000000
[ 0.019000] elf_dumploadinfo: textsize: 0
[ 0.020000] elf_dumploadinfo: datasize: 0
[ 0.020000] elf_dumploadinfo: textalign: 0
[ 0.022000] elf_dumploadinfo: dataalign: 0
[ 0.023000] elf_dumploadinfo: filelen: 603464
[ 0.025000] elf_dumploadinfo: symtabidx: 0
[ 0.025000] elf_dumploadinfo: strtabidx: 0
[ 0.029000] elf_dumploadinfo: ELF Header:
[ 0.029000] elf_dumploadinfo: e_ident: 7f 45 4c 46
[ 0.033000] elf_dumploadinfo: e_type: 0002
[ 0.038000] elf_dumploadinfo: e_machine: 00f3
[ 0.040000] elf_dumploadinfo: e_version: 00000001
[ 0.042000] elf_dumploadinfo: e_entry: c000001a
[ 0.044000] elf_dumploadinfo: e_phoff: 64
[ 0.045000] elf_dumploadinfo: e_shoff: 600712
[ 0.046000] elf_dumploadinfo: e_flags: 00000005
[ 0.047000] elf_dumploadinfo: e_ehsize: 64
[ 0.047000] elf_dumploadinfo: e_phentsize: 56
[ 0.051000] elf_dumploadinfo: e_phnum: 3
[ 0.054000] elf_dumploadinfo: e_shentsize: 64
[ 0.055000] elf_dumploadinfo: e_shnum: 43
[ 0.056000] elf_dumploadinfo: e_shstrndx: 42
[ 0.057000] elf_load: loadinfo: 0x802069b8
[ 0.058000] elf_read: Read 168 bytes from offset 64
[ 0.060000] elf_read: Read 2752 bytes from offset 600712
[ 0.068000] elf_loadfile: Loaded sections:
[ 0.070000] elf_read: Read 38398 bytes from offset 4096
[ 0.072000] elf_loadfile: 1. c0000000->c0000000
[ 0.074000] elf_read: Read 7872 bytes from offset 42496
[ 0.075000] elf_loadfile: 2. c0009600->c0009600
[ 0.077000] elf_read: Read 9 bytes from offset 50368
[ 0.078000] elf_loadfile: 3. c000b4c0->c000b4c0
[ 0.080000] elf_read: Read 32 bytes from offset 50384
[ 0.084000] elf_loadfile: 4. c000b4d0->c000b4d0
[ 0.084000] elf_read: Read 6 bytes from offset 50416
[ 0.084000] elf_loadfile: 5. c000b4f0->c000b4f0
[ 0.084000] elf_read: Read 2 bytes from offset 50424
[ 0.086000] elf_loadfile: 6. c000b4f8->c000b4f8
[ 0.086000] elf_read: Read 2 bytes from offset 50432
[ 0.088000] elf_loadfile: 7. c000b500->c000b500
[ 0.093000] elf_read: Read 2 bytes from offset 50440
[ 0.099000] elf_loadfile: 8. c000b508->c000b508
[ 0.099000] elf_read: Read 3 bytes from offset 50448
[ 0.100000] elf_loadfile: 9. c000b510->c000b510
[ 0.107000] elf_read: Read 2 bytes from offset 50456
[ 0.115000] elf_loadfile: 10. c000b518->c000b518
[ 0.124000] elf_read: Read 3 bytes from offset 50464
[ 0.131000] elf_loadfile: 11. c000b520->c000b520
[ 0.141000] elf_read: Read 6 bytes from offset 50472
[ 0.149000] elf_loadfile: 12. c000b528->c000b528
[ 0.155000] elf_read: Read 4 bytes from offset 50480
[ 0.162000] elf_loadfile: 13. c000b530->c000b530
[ 0.164000] elf_read: Read 4 bytes from offset 50488
[ 0.164000] elf_loadfile: 14. c000b538->c000b538
[ 0.165000] elf_read: Read 3 bytes from offset 50496
[ 0.165000] elf_loadfile: 15. c000b540->c000b540
[ 0.167000] elf_read: Read 2 bytes from offset 50504
[ 0.169000] elf_loadfile: 16. c000b548->c000b548
[ 0.179000] elf_read: Read 7 bytes from offset 50512
[ 0.189000] elf_loadfile: 17. c000b550->c000b550
[ 0.199000] elf_read: Read 4 bytes from offset 50520
[ 0.211000] elf_loadfile: 18. c000b558->c000b558
[ 0.220000] elf_read: Read 12 bytes from offset 50524
[ 0.233000] elf_loadfile: 19. c000b55c->c000b55c
[ 0.241000] elf_read: Read 7 bytes from offset 50536
[ 0.246000] elf_loadfile: 20. c000b568->c000b568
[ 0.247000] elf_read: Read 7 bytes from offset 50544
[ 0.252000] elf_loadfile: 21. c000b570->c000b570
[ 0.257000] elf_read: Read 7 bytes from offset 50552
[ 0.258000] elf_loadfile: 22. c000b578->c000b578
[ 0.258000] elf_read: Read 6 bytes from offset 50560
[ 0.259000] elf_loadfile: 23. c000b580->c000b580
[ 0.259000] elf_read: Read 8 bytes from offset 50568
[ 0.261000] elf_loadfile: 24. c000b588->c000b588
[ 0.262000] elf_read: Read 40 bytes from offset 53248
[ 0.264000] elf_loadfile: 25. c0101000->c0101000
[ 0.265000] elf_read: Read 8 bytes from offset 53288
[ 0.265000] elf_loadfile: 26. c0101028->c0101028
[ 0.266000] elf_read: Read 1 bytes from offset 53296
[ 0.267000] elf_loadfile: 27. c0101030->c0101030
[ 0.269000] elf_loadfile: 28. c0101038->c0101038
[ 0.271000] elf_dumploadinfo: LOAD_INFO:
[ 0.274000] elf_dumploadinfo: textalloc: c0000000
[ 0.275000] elf_dumploadinfo: dataalloc: c0101000
[ 0.278000] elf_dumploadinfo: textsize: 46480
[ 0.278000] elf_dumploadinfo: datasize: 1412
[ 0.278000] elf_dumploadinfo: textalign: 8
[ 0.278000] elf_dumploadinfo: dataalign: 8
[ 0.278000] elf_dumploadinfo: filelen: 603464
[ 0.281000] elf_dumploadinfo: symtabidx: 0
[ 0.281000] elf_dumploadinfo: strtabidx: 0
[ 0.282000] elf_dumploadinfo: ELF Header:
[ 0.284000] elf_dumploadinfo: e_ident: 7f 45 4c 46
[ 0.286000] elf_dumploadinfo: e_type: 0002
[ 0.288000] elf_dumploadinfo: e_machine: 00f3
[ 0.290000] elf_dumploadinfo: e_version: 00000001
[ 0.290000] elf_dumploadinfo: e_entry: c000001a
[ 0.291000] elf_dumploadinfo: e_phoff: 64
[ 0.292000] elf_dumploadinfo: e_shoff: 600712
[ 0.296000] elf_dumploadinfo: e_flags: 00000005
[ 0.298000] elf_dumploadinfo: e_ehsize: 64
[ 0.299000] elf_dumploadinfo: e_phentsize: 56
[ 0.301000] elf_dumploadinfo: e_phnum: 3
[ 0.305000] elf_dumploadinfo: e_shentsize: 64
[ 0.306000] elf_dumploadinfo: e_shnum: 43
[ 0.308000] elf_dumploadinfo: e_shstrndx: 42
[ 0.310000] elf_dumploadinfo: Programs 0:
[ 0.314000] elf_dumploadinfo: p_type: 70000003
[ 0.315000] elf_dumploadinfo: p_offset: 0000d064
[ 0.316000] elf_dumploadinfo: p_vaddr: 00000000
[ 0.316000] elf_dumploadinfo: p_paddr: 00000000
[ 0.318000] elf_dumploadinfo: p_filesz: 00000053
[ 0.322000] elf_dumploadinfo: p_memsz: 00000000
[ 0.323000] elf_dumploadinfo: p_flags: 00000004
[ 0.325000] elf_dumploadinfo: p_align: 00000001
[ 0.327000] elf_dumploadinfo: Programs 1:
[ 0.332000] elf_dumploadinfo: p_type: 00000001
[ 0.346000] elf_dumploadinfo: p_offset: 00001000
[ 0.356000] elf_dumploadinfo: p_vaddr: c0000000
[ 0.361000] elf_dumploadinfo: p_paddr: c0000000
[ 0.372000] elf_dumploadinfo: p_filesz: 0000b590
[ 0.377000] elf_dumploadinfo: p_memsz: 0000b590
[ 0.384000] elf_dumploadinfo: p_flags: 00000005
[ 0.386000] elf_dumploadinfo: p_align: 00001000
[ 0.388000] elf_dumploadinfo: Programs 2:
[ 0.388000] elf_dumploadinfo: p_type: 00000001
[ 0.388000] elf_dumploadinfo: p_offset: 0000d000
[ 0.390000] elf_dumploadinfo: p_vaddr: c0101000
[ 0.400000] elf_dumploadinfo: p_paddr: c0101000
[ 0.408000] elf_dumploadinfo: p_filesz: 00000031
[ 0.416000] elf_dumploadinfo: p_memsz: 00000584
[ 0.424000] elf_dumploadinfo: p_flags: 00000006
[ 0.432000] elf_dumploadinfo: p_align: 00001000
[ 0.440000] elf_dumploadinfo: Sections 0:
[ 0.447000] elf_dumploadinfo: sh_name: 00000000
[ 0.454000] elf_dumploadinfo: sh_type: 00000000
[ 0.464000] elf_dumploadinfo: sh_flags: 00000000
[ 0.471000] elf_dumploadinfo: sh_addr: 00000000
[ 0.479000] elf_dumploadinfo: sh_offset: 0
[ 0.483000] elf_dumploadinfo: sh_size: 0
[ 0.490000] elf_dumploadinfo: sh_link: 0
[ 0.498000] elf_dumploadinfo: sh_info: 0
[ 0.507000] elf_dumploadinfo: sh_addralign: 0
[ 0.513000] elf_dumploadinfo: sh_entsize: 0
[ 0.526000] elf_dumploadinfo: Sections 1:
[ 0.532000] elf_dumploadinfo: sh_name: 0000001b
[ 0.536000] elf_dumploadinfo: sh_type: 00000001
[ 0.544000] elf_dumploadinfo: sh_flags: 00000006
[ 0.554000] elf_dumploadinfo: sh_addr: c0000000
[ 0.562000] elf_dumploadinfo: sh_offset: 4096
[ 0.571000] elf_dumploadinfo: sh_size: 38398
[ 0.578000] elf_dumploadinfo: sh_link: 0
[ 0.585000] elf_dumploadinfo: sh_info: 0
[ 0.591000] elf_dumploadinfo: sh_addralign: 2
[ 0.598000] elf_dumploadinfo: sh_entsize: 0
[ 0.604000] elf_dumploadinfo: Sections 2:
[ 0.610000] elf_dumploadinfo: sh_name: 00000021
[ 0.619000] elf_dumploadinfo: sh_type: 00000001
[ 0.628000] elf_dumploadinfo: sh_flags: 00000002
[ 0.636000] elf_dumploadinfo: sh_addr: c0009600
[ 0.645000] elf_dumploadinfo: sh_offset: 42496
[ 0.652000] elf_dumploadinfo: sh_size: 7872
[ 0.658000] elf_dumploadinfo: sh_link: 0
[ 0.667000] elf_dumploadinfo: sh_info: 0
[ 0.674000] elf_dumploadinfo: sh_addralign: 8
[ 0.680000] elf_dumploadinfo: sh_entsize: 0
[ 0.686000] elf_dumploadinfo: Sections 3:
[ 0.693000] elf_dumploadinfo: sh_name: 00000029
[ 0.700000] elf_dumploadinfo: sh_type: 00000001
[ 0.708000] elf_dumploadinfo: sh_flags: 00000002
[ 0.717000] elf_dumploadinfo: sh_addr: c000b4c0
[ 0.725000] elf_dumploadinfo: sh_offset: 50368
[ 0.735000] elf_dumploadinfo: sh_size: 9
[ 0.743000] elf_dumploadinfo: sh_link: 0
[ 0.751000] elf_dumploadinfo: sh_info: 0
[ 0.762000] elf_dumploadinfo: sh_addralign: 8
[ 0.771000] elf_dumploadinfo: sh_entsize: 0
[ 0.781000] elf_dumploadinfo: Sections 4:
[ 0.790000] elf_dumploadinfo: sh_name: 0000003f
[ 0.803000] elf_dumploadinfo: sh_type: 00000001
[ 0.814000] elf_dumploadinfo: sh_flags: 00000012
[ 0.822000] elf_dumploadinfo: sh_addr: c000b4d0
[ 0.827000] elf_dumploadinfo: sh_offset: 50384
[ 0.836000] elf_dumploadinfo: sh_size: 32
[ 0.845000] elf_dumploadinfo: sh_link: 0
[ 0.853000] elf_dumploadinfo: sh_info: 0
[ 0.865000] elf_dumploadinfo: sh_addralign: 8
[ 0.874000] elf_dumploadinfo: sh_entsize: 8
[ 0.880000] elf_dumploadinfo: Sections 5:
[ 0.886000] elf_dumploadinfo: sh_name: 0000004d
[ 0.895000] elf_dumploadinfo: sh_type: 00000001
[ 0.902000] elf_dumploadinfo: sh_flags: 00000002
[ 0.911000] elf_dumploadinfo: sh_addr: c000b4f0
[ 0.920000] elf_dumploadinfo: sh_offset: 50416
[ 0.926000] elf_dumploadinfo: sh_size: 6
[ 0.936000] elf_dumploadinfo: sh_link: 0
[ 0.945000] elf_dumploadinfo: sh_info: 0
[ 0.955000] elf_dumploadinfo: sh_addralign: 8
[ 0.961000] elf_dumploadinfo: sh_entsize: 0
[ 0.967000] elf_dumploadinfo: Sections 6:
[ 0.973000] elf_dumploadinfo: sh_name: 00000062
[ 0.981000] elf_dumploadinfo: sh_type: 00000001
[ 0.989000] elf_dumploadinfo: sh_flags: 00000002
[ 0.997000] elf_dumploadinfo: sh_addr: c000b4f8
[ 1.004000] elf_dumploadinfo: sh_offset: 50424
[ 1.013000] elf_dumploadinfo: sh_size: 2
[ 1.020000] elf_dumploadinfo: sh_link: 0
[ 1.028000] elf_dumploadinfo: sh_info: 0
[ 1.035000] elf_dumploadinfo: sh_addralign: 8
[ 1.042000] elf_dumploadinfo: sh_entsize: 0
[ 1.049000] elf_dumploadinfo: Sections 7:
[ 1.054000] elf_dumploadinfo: sh_name: 00000075
[ 1.061000] elf_dumploadinfo: sh_type: 00000001
[ 1.067000] elf_dumploadinfo: sh_flags: 00000002
[ 1.075000] elf_dumploadinfo: sh_addr: c000b500
[ 1.082000] elf_dumploadinfo: sh_offset: 50432
[ 1.091000] elf_dumploadinfo: sh_size: 2
[ 1.099000] elf_dumploadinfo: sh_link: 0
[ 1.104000] elf_dumploadinfo: sh_info: 0
[ 1.113000] elf_dumploadinfo: sh_addralign: 8
[ 1.121000] elf_dumploadinfo: sh_entsize: 0
[ 1.128000] elf_dumploadinfo: Sections 8:
[ 1.133000] elf_dumploadinfo: sh_name: 00000088
[ 1.142000] elf_dumploadinfo: sh_type: 00000001
[ 1.152000] elf_dumploadinfo: sh_flags: 00000002
[ 1.161000] elf_dumploadinfo: sh_addr: c000b508
[ 1.168000] elf_dumploadinfo: sh_offset: 50440
[ 1.175000] elf_dumploadinfo: sh_size: 2
[ 1.182000] elf_dumploadinfo: sh_link: 0
[ 1.187000] elf_dumploadinfo: sh_info: 0
[ 1.195000] elf_dumploadinfo: sh_addralign: 8
[ 1.201000] elf_dumploadinfo: sh_entsize: 0
[ 1.208000] elf_dumploadinfo: Sections 9:
[ 1.214000] elf_dumploadinfo: sh_name: 0000009e
[ 1.220000] elf_dumploadinfo: sh_type: 00000001
[ 1.229000] elf_dumploadinfo: sh_flags: 00000002
[ 1.237000] elf_dumploadinfo: sh_addr: c000b510
[ 1.243000] elf_dumploadinfo: sh_offset: 50448
[ 1.250000] elf_dumploadinfo: sh_size: 3
[ 1.258000] elf_dumploadinfo: sh_link: 0
[ 1.267000] elf_dumploadinfo: sh_info: 0
[ 1.274000] elf_dumploadinfo: sh_addralign: 8
[ 1.283000] elf_dumploadinfo: sh_entsize: 0
[ 1.289000] elf_dumploadinfo: Sections 10:
[ 1.294000] elf_dumploadinfo: sh_name: 000000b3
[ 1.302000] elf_dumploadinfo: sh_type: 00000001
[ 1.311000] elf_dumploadinfo: sh_flags: 00000002
[ 1.320000] elf_dumploadinfo: sh_addr: c000b518
[ 1.327000] elf_dumploadinfo: sh_offset: 50456
[ 1.336000] elf_dumploadinfo: sh_size: 2
[ 1.342000] elf_dumploadinfo: sh_link: 0
[ 1.350000] elf_dumploadinfo: sh_info: 0
[ 1.358000] elf_dumploadinfo: sh_addralign: 8
[ 1.364000] elf_dumploadinfo: sh_entsize: 0
[ 1.373000] elf_dumploadinfo: Sections 11:
[ 1.380000] elf_dumploadinfo: sh_name: 000000c8
[ 1.391000] elf_dumploadinfo: sh_type: 00000001
[ 1.402000] elf_dumploadinfo: sh_flags: 00000002
[ 1.413000] elf_dumploadinfo: sh_addr: c000b520
[ 1.423000] elf_dumploadinfo: sh_offset: 50464
[ 1.439000] elf_dumploadinfo: sh_size: 3
[ 1.445000] elf_dumploadinfo: sh_link: 0
[ 1.452000] elf_dumploadinfo: sh_info: 0
[ 1.459000] elf_dumploadinfo: sh_addralign: 8
[ 1.465000] elf_dumploadinfo: sh_entsize: 0
[ 1.469000] elf_dumploadinfo: Sections 12:
[ 1.474000] elf_dumploadinfo: sh_name: 000000e1
[ 1.483000] elf_dumploadinfo: sh_type: 00000001
[ 1.493000] elf_dumploadinfo: sh_flags: 00000002
[ 1.499000] elf_dumploadinfo: sh_addr: c000b528
[ 1.506000] elf_dumploadinfo: sh_offset: 50472
[ 1.513000] elf_dumploadinfo: sh_size: 6
[ 1.520000] elf_dumploadinfo: sh_link: 0
[ 1.527000] elf_dumploadinfo: sh_info: 0
[ 1.534000] elf_dumploadinfo: sh_addralign: 8
[ 1.540000] elf_dumploadinfo: sh_entsize: 0
[ 1.547000] elf_dumploadinfo: Sections 13:
[ 1.555000] elf_dumploadinfo: sh_name: 000000fb
[ 1.561000] elf_dumploadinfo: sh_type: 00000001
[ 1.569000] elf_dumploadinfo: sh_flags: 00000002
[ 1.577000] elf_dumploadinfo: sh_addr: c000b530
[ 1.586000] elf_dumploadinfo: sh_offset: 50480
[ 1.591000] elf_dumploadinfo: sh_size: 4
[ 1.597000] elf_dumploadinfo: sh_link: 0
[ 1.602000] elf_dumploadinfo: sh_info: 0
[ 1.609000] elf_dumploadinfo: sh_addralign: 8
[ 1.617000] elf_dumploadinfo: sh_entsize: 0
[ 1.626000] elf_dumploadinfo: Sections 14:
[ 1.632000] elf_dumploadinfo: sh_name: 00000116
[ 1.642000] elf_dumploadinfo: sh_type: 00000001
[ 1.652000] elf_dumploadinfo: sh_flags: 00000002
[ 1.658000] elf_dumploadinfo: sh_addr: c000b538
[ 1.666000] elf_dumploadinfo: sh_offset: 50488
[ 1.674000] elf_dumploadinfo: sh_size: 4
[ 1.684000] elf_dumploadinfo: sh_link: 0
[ 1.692000] elf_dumploadinfo: sh_info: 0
[ 1.700000] elf_dumploadinfo: sh_addralign: 8
[ 1.707000] elf_dumploadinfo: sh_entsize: 0
[ 1.713000] elf_dumploadinfo: Sections 15:
[ 1.720000] elf_dumploadinfo: sh_name: 00000131
[ 1.728000] elf_dumploadinfo: sh_type: 00000001
[ 1.735000] elf_dumploadinfo: sh_flags: 00000002
[ 1.741000] elf_dumploadinfo: sh_addr: c000b540
[ 1.750000] elf_dumploadinfo: sh_offset: 50496
[ 1.756000] elf_dumploadinfo: sh_size: 3
[ 1.762000] elf_dumploadinfo: sh_link: 0
[ 1.768000] elf_dumploadinfo: sh_info: 0
[ 1.774000] elf_dumploadinfo: sh_addralign: 8
[ 1.779000] elf_dumploadinfo: sh_entsize: 0
[ 1.785000] elf_dumploadinfo: Sections 16:
[ 1.791000] elf_dumploadinfo: sh_name: 00000147
[ 1.801000] elf_dumploadinfo: sh_type: 00000001
[ 1.811000] elf_dumploadinfo: sh_flags: 00000002
[ 1.819000] elf_dumploadinfo: sh_addr: c000b548
[ 1.827000] elf_dumploadinfo: sh_offset: 50504
[ 1.836000] elf_dumploadinfo: sh_size: 2
[ 1.843000] elf_dumploadinfo: sh_link: 0
[ 1.850000] elf_dumploadinfo: sh_info: 0
[ 1.855000] elf_dumploadinfo: sh_addralign: 8
[ 1.863000] elf_dumploadinfo: sh_entsize: 0
[ 1.873000] elf_dumploadinfo: Sections 17:
[ 1.883000] elf_dumploadinfo: sh_name: 00000157
[ 1.895000] elf_dumploadinfo: sh_type: 00000001
[ 1.905000] elf_dumploadinfo: sh_flags: 00000002
[ 1.916000] elf_dumploadinfo: sh_addr: c000b550
[ 1.926000] elf_dumploadinfo: sh_offset: 50512
[ 1.936000] elf_dumploadinfo: sh_size: 7
[ 1.939000] elf_dumploadinfo: sh_link: 0
[ 1.943000] elf_dumploadinfo: sh_info: 0
[ 1.955000] elf_dumploadinfo: sh_addralign: 8
[ 1.966000] elf_dumploadinfo: sh_entsize: 0
[ 1.974000] elf_dumploadinfo: Sections 18:
[ 1.985000] elf_dumploadinfo: sh_name: 00000169
[ 1.994000] elf_dumploadinfo: sh_type: 00000001
[ 2.003000] elf_dumploadinfo: sh_flags: 00000002
[ 2.010000] elf_dumploadinfo: sh_addr: c000b558
[ 2.017000] elf_dumploadinfo: sh_offset: 50520
[ 2.025000] elf_dumploadinfo: sh_size: 4
[ 2.030000] elf_dumploadinfo: sh_link: 0
[ 2.038000] elf_dumploadinfo: sh_info: 0
[ 2.044000] elf_dumploadinfo: sh_addralign: 8
[ 2.052000] elf_dumploadinfo: sh_entsize: 0
[ 2.058000] elf_dumploadinfo: Sections 19:
[ 2.064000] elf_dumploadinfo: sh_name: 00000178
[ 2.071000] elf_dumploadinfo: sh_type: 00000001
[ 2.080000] elf_dumploadinfo: sh_flags: 00000012
[ 2.087000] elf_dumploadinfo: sh_addr: c000b55c
[ 2.093000] elf_dumploadinfo: sh_offset: 50524
[ 2.099000] elf_dumploadinfo: sh_size: 12
[ 2.108000] elf_dumploadinfo: sh_link: 0
[ 2.117000] elf_dumploadinfo: sh_info: 0
[ 2.124000] elf_dumploadinfo: sh_addralign: 4
[ 2.131000] elf_dumploadinfo: sh_entsize: 4
[ 2.139000] elf_dumploadinfo: Sections 20:
[ 2.144000] elf_dumploadinfo: sh_name: 00000186
[ 2.152000] elf_dumploadinfo: sh_type: 00000001
[ 2.160000] elf_dumploadinfo: sh_flags: 00000002
[ 2.169000] elf_dumploadinfo: sh_addr: c000b568
[ 2.176000] elf_dumploadinfo: sh_offset: 50536
[ 2.182000] elf_dumploadinfo: sh_size: 7
[ 2.190000] elf_dumploadinfo: sh_link: 0
[ 2.197000] elf_dumploadinfo: sh_info: 0
[ 2.202000] elf_dumploadinfo: sh_addralign: 8
[ 2.210000] elf_dumploadinfo: sh_entsize: 0
[ 2.217000] elf_dumploadinfo: Sections 21:
[ 2.223000] elf_dumploadinfo: sh_name: 00000197
[ 2.232000] elf_dumploadinfo: sh_type: 00000001
[ 2.238000] elf_dumploadinfo: sh_flags: 00000002
[ 2.245000] elf_dumploadinfo: sh_addr: c000b570
[ 2.253000] elf_dumploadinfo: sh_offset: 50544
[ 2.261000] elf_dumploadinfo: sh_size: 7
[ 2.268000] elf_dumploadinfo: sh_link: 0
[ 2.275000] elf_dumploadinfo: sh_info: 0
[ 2.280000] elf_dumploadinfo: sh_addralign: 8
[ 2.287000] elf_dumploadinfo: sh_entsize: 0
[ 2.293000] elf_dumploadinfo: Sections 22:
[ 2.299000] elf_dumploadinfo: sh_name: 000001a8
[ 2.305000] elf_dumploadinfo: sh_type: 00000001
[ 2.313000] elf_dumploadinfo: sh_flags: 00000002
[ 2.324000] elf_dumploadinfo: sh_addr: c000b578
[ 2.333000] elf_dumploadinfo: sh_offset: 50552
[ 2.342000] elf_dumploadinfo: sh_size: 7
[ 2.349000] elf_dumploadinfo: sh_link: 0
[ 2.360000] elf_dumploadinfo: sh_info: 0
[ 2.367000] elf_dumploadinfo: sh_addralign: 8
[ 2.375000] elf_dumploadinfo: sh_entsize: 0
[ 2.383000] elf_dumploadinfo: Sections 23:
[ 2.391000] elf_dumploadinfo: sh_name: 000001bb
[ 2.400000] elf_dumploadinfo: sh_type: 00000001
[ 2.409000] elf_dumploadinfo: sh_flags: 00000002
[ 2.418000] elf_dumploadinfo: sh_addr: c000b580
[ 2.427000] elf_dumploadinfo: sh_offset: 50560
[ 2.435000] elf_dumploadinfo: sh_size: 6
[ 2.443000] elf_dumploadinfo: sh_link: 0
[ 2.452000] elf_dumploadinfo: sh_info: 0
[ 2.460000] elf_dumploadinfo: sh_addralign: 8
[ 2.470000] elf_dumploadinfo: sh_entsize: 0
[ 2.482000] elf_dumploadinfo: Sections 24:
[ 2.491000] elf_dumploadinfo: sh_name: 000001cb
[ 2.503000] elf_dumploadinfo: sh_type: 00000001
[ 2.511000] elf_dumploadinfo: sh_flags: 00000002
[ 2.525000] elf_dumploadinfo: sh_addr: c000b588
[ 2.536000] elf_dumploadinfo: sh_offset: 50568
[ 2.548000] elf_dumploadinfo: sh_size: 8
[ 2.558000] elf_dumploadinfo: sh_link: 0
[ 2.568000] elf_dumploadinfo: sh_info: 0
[ 2.578000] elf_dumploadinfo: sh_addralign: 8
[ 2.590000] elf_dumploadinfo: sh_entsize: 0
[ 2.603000] elf_dumploadinfo: Sections 25:
[ 2.612000] elf_dumploadinfo: sh_name: 000001de
[ 2.623000] elf_dumploadinfo: sh_type: 00000001
[ 2.637000] elf_dumploadinfo: sh_flags: 00000003
[ 2.650000] elf_dumploadinfo: sh_addr: c0101000
[ 2.661000] elf_dumploadinfo: sh_offset: 53248
[ 2.675000] elf_dumploadinfo: sh_size: 40
[ 2.687000] elf_dumploadinfo: sh_link: 0
[ 2.698000] elf_dumploadinfo: sh_info: 0
[ 2.710000] elf_dumploadinfo: sh_addralign: 8
[ 2.721000] elf_dumploadinfo: sh_entsize: 0
[ 2.731000] elf_dumploadinfo: Sections 26:
[ 2.742000] elf_dumploadinfo: sh_name: 000001e4
[ 2.756000] elf_dumploadinfo: sh_type: 00000001
[ 2.768000] elf_dumploadinfo: sh_flags: 00000003
[ 2.780000] elf_dumploadinfo: sh_addr: c0101028
[ 2.792000] elf_dumploadinfo: sh_offset: 53288
[ 2.804000] elf_dumploadinfo: sh_size: 8
[ 2.816000] elf_dumploadinfo: sh_link: 0
[ 2.828000] elf_dumploadinfo: sh_info: 0
[ 2.840000] elf_dumploadinfo: sh_addralign: 8
[ 2.853000] elf_dumploadinfo: sh_entsize: 0
[ 2.864000] elf_dumploadinfo: Sections 27:
[ 2.873000] elf_dumploadinfo: sh_name: 000001f8
[ 2.882000] elf_dumploadinfo: sh_type: 00000001
[ 2.894000] elf_dumploadinfo: sh_flags: 00000003
[ 2.909000] elf_dumploadinfo: sh_addr: c0101030
[ 2.924000] elf_dumploadinfo: sh_offset: 53296
[ 2.936000] elf_dumploadinfo: sh_size: 1
[ 2.946000] elf_dumploadinfo: sh_link: 0
[ 2.958000] elf_dumploadinfo: sh_info: 0
[ 2.967000] elf_dumploadinfo: sh_addralign: 1
[ 2.977000] elf_dumploadinfo: sh_entsize: 0
[ 2.987000] elf_dumploadinfo: Sections 28:
[ 2.995000] elf_dumploadinfo: sh_name: 0000020d
[ 3.011000] elf_dumploadinfo: sh_type: 00000008
[ 3.027000] elf_dumploadinfo: sh_flags: 00000003
[ 3.039000] elf_dumploadinfo: sh_addr: c0101038
[ 3.051000] elf_dumploadinfo: sh_offset: 53297
[ 3.063000] elf_dumploadinfo: sh_size: 1356
[ 3.079000] elf_dumploadinfo: sh_link: 0
[ 3.089000] elf_dumploadinfo: sh_info: 0
[ 3.093000] elf_dumploadinfo: sh_addralign: 8
[ 3.095000] elf_dumploadinfo: sh_entsize: 0
[ 3.102000] elf_dumploadinfo: Sections 29:
[ 3.116000] elf_dumploadinfo: sh_name: 00000212
[ 3.125000] elf_dumploadinfo: sh_type: 00000001
[ 3.138000] elf_dumploadinfo: sh_flags: 00000030
[ 3.150000] elf_dumploadinfo: sh_addr: 00000000
[ 3.159000] elf_dumploadinfo: sh_offset: 53297
[ 3.166000] elf_dumploadinfo: sh_size: 51
[ 3.178000] elf_dumploadinfo: sh_link: 0
[ 3.189000] elf_dumploadinfo: sh_info: 0
[ 3.197000] elf_dumploadinfo: sh_addralign: 1
[ 3.204000] elf_dumploadinfo: sh_entsize: 1
[ 3.207000] elf_dumploadinfo: Sections 30:
[ 3.209000] elf_dumploadinfo: sh_name: 0000021b
[ 3.210000] elf_dumploadinfo: sh_type: 70000003
[ 3.211000] elf_dumploadinfo: sh_flags: 00000000
[ 3.212000] elf_dumploadinfo: sh_addr: 00000000
[ 3.214000] elf_dumploadinfo: sh_offset: 53348
[ 3.215000] elf_dumploadinfo: sh_size: 83
[ 3.217000] elf_dumploadinfo: sh_link: 0
[ 3.220000] elf_dumploadinfo: sh_info: 0
[ 3.222000] elf_dumploadinfo: sh_addralign: 1
[ 3.222000] elf_dumploadinfo: sh_entsize: 0
[ 3.224000] elf_dumploadinfo: Sections 31:
[ 3.224000] elf_dumploadinfo: sh_name: 0000022d
[ 3.230000] elf_dumploadinfo: sh_type: 00000001
[ 3.230000] elf_dumploadinfo: sh_flags: 00000000
[ 3.233000] elf_dumploadinfo: sh_addr: 00000000
[ 3.233000] elf_dumploadinfo: sh_offset: 53431
[ 3.233000] elf_dumploadinfo: sh_size: 65219
[ 3.233000] elf_dumploadinfo: sh_link: 0
[ 3.234000] elf_dumploadinfo: sh_info: 0
[ 3.234000] elf_dumploadinfo: sh_addralign: 1
[ 3.235000] elf_dumploadinfo: sh_entsize: 0
[ 3.235000] elf_dumploadinfo: Sections 32:
[ 3.235000] elf_dumploadinfo: sh_name: 0000023b
[ 3.236000] elf_dumploadinfo: sh_type: 00000001
[ 3.236000] elf_dumploadinfo: sh_flags: 00000000
[ 3.236000] elf_dumploadinfo: sh_addr: 00000000
[ 3.236000] elf_dumploadinfo: sh_offset: 118650
[ 3.237000] elf_dumploadinfo: sh_size: 225114
[ 3.244000] elf_dumploadinfo: sh_link: 0
[ 3.244000] elf_dumploadinfo: sh_info: 0
[ 3.244000] elf_dumploadinfo: sh_addralign: 1
[ 3.248000] elf_dumploadinfo: sh_entsize: 0
[ 3.249000] elf_dumploadinfo: Sections 33:
[ 3.249000] elf_dumploadinfo: sh_name: 00000247
[ 3.252000] elf_dumploadinfo: sh_type: 00000001
[ 3.252000] elf_dumploadinfo: sh_flags: 00000000
[ 3.253000] elf_dumploadinfo: sh_addr: 00000000
[ 3.254000] elf_dumploadinfo: sh_offset: 343764
[ 3.254000] elf_dumploadinfo: sh_size: 117865
[ 3.255000] elf_dumploadinfo: sh_link: 0
[ 3.255000] elf_dumploadinfo: sh_info: 0
[ 3.256000] elf_dumploadinfo: sh_addralign: 1
[ 3.259000] elf_dumploadinfo: sh_entsize: 0
[ 3.262000] elf_dumploadinfo: Sections 34:
[ 3.262000] elf_dumploadinfo: sh_name: 00000253
[ 3.262000] elf_dumploadinfo: sh_type: 00000001
[ 3.264000] elf_dumploadinfo: sh_flags: 00000000
[ 3.265000] elf_dumploadinfo: sh_addr: 00000000
[ 3.265000] elf_dumploadinfo: sh_offset: 461629
[ 3.267000] elf_dumploadinfo: sh_size: 11184
[ 3.273000] elf_dumploadinfo: sh_link: 0
[ 3.286000] elf_dumploadinfo: sh_info: 0
[ 3.298000] elf_dumploadinfo: sh_addralign: 1
[ 3.308000] elf_dumploadinfo: sh_entsize: 0
[ 3.321000] elf_dumploadinfo: Sections 35:
[ 3.331000] elf_dumploadinfo: sh_name: 00000262
[ 3.344000] elf_dumploadinfo: sh_type: 00000001
[ 3.358000] elf_dumploadinfo: sh_flags: 00000000
[ 3.370000] elf_dumploadinfo: sh_addr: 00000000
[ 3.381000] elf_dumploadinfo: sh_offset: 472813
[ 3.393000] elf_dumploadinfo: sh_size: 53218
[ 3.405000] elf_dumploadinfo: sh_link: 0
[ 3.416000] elf_dumploadinfo: sh_info: 0
[ 3.430000] elf_dumploadinfo: sh_addralign: 1
[ 3.441000] elf_dumploadinfo: sh_entsize: 0
[ 3.450000] elf_dumploadinfo: Sections 36:
[ 3.458000] elf_dumploadinfo: sh_name: 00000272
[ 3.472000] elf_dumploadinfo: sh_type: 00000001
[ 3.491000] elf_dumploadinfo: sh_flags: 00000000
[ 3.507000] elf_dumploadinfo: sh_addr: 00000000
[ 3.522000] elf_dumploadinfo: sh_offset: 526031
[ 3.533000] elf_dumploadinfo: sh_size: 7809
[ 3.543000] elf_dumploadinfo: sh_link: 0
[ 3.554000] elf_dumploadinfo: sh_info: 0
[ 3.564000] elf_dumploadinfo: sh_addralign: 1
[ 3.578000] elf_dumploadinfo: sh_entsize: 0
[ 3.592000] elf_dumploadinfo: Sections 37:
[ 3.602000] elf_dumploadinfo: sh_name: 00000282
[ 3.612000] elf_dumploadinfo: sh_type: 00000001
[ 3.622000] elf_dumploadinfo: sh_flags: 00000030
[ 3.631000] elf_dumploadinfo: sh_addr: 00000000
[ 3.642000] elf_dumploadinfo: sh_offset: 533840
[ 3.652000] elf_dumploadinfo: sh_size: 12640
[ 3.665000] elf_dumploadinfo: sh_link: 0
[ 3.675000] elf_dumploadinfo: sh_info: 0
[ 3.691000] elf_dumploadinfo: sh_addralign: 1
[ 3.706000] elf_dumploadinfo: sh_entsize: 1
[ 3.717000] elf_dumploadinfo: Sections 38:
[ 3.729000] elf_dumploadinfo: sh_name: 0000028d
[ 3.745000] elf_dumploadinfo: sh_type: 00000001
[ 3.756000] elf_dumploadinfo: sh_flags: 00000030
[ 3.767000] elf_dumploadinfo: sh_addr: 00000000
[ 3.778000] elf_dumploadinfo: sh_offset: 546480
[ 3.789000] elf_dumploadinfo: sh_size: 5747
[ 3.803000] elf_dumploadinfo: sh_link: 0
[ 3.816000] elf_dumploadinfo: sh_info: 0
[ 3.826000] elf_dumploadinfo: sh_addralign: 1
[ 3.836000] elf_dumploadinfo: sh_entsize: 1
[ 3.848000] elf_dumploadinfo: Sections 39:
[ 3.859000] elf_dumploadinfo: sh_name: 0000029d
[ 3.870000] elf_dumploadinfo: sh_type: 00000001
[ 3.884000] elf_dumploadinfo: sh_flags: 00000000
[ 3.892000] elf_dumploadinfo: sh_addr: 00000000
[ 3.896000] elf_dumploadinfo: sh_offset: 552232
[ 3.898000] elf_dumploadinfo: sh_size: 17136
[ 3.909000] elf_dumploadinfo: sh_link: 0
[ 3.912000] elf_dumploadinfo: sh_info: 0
[ 3.920000] elf_dumploadinfo: sh_addralign: 8
[ 3.920000] elf_dumploadinfo: sh_entsize: 0
[ 3.920000] elf_dumploadinfo: Sections 40:
[ 3.920000] elf_dumploadinfo: sh_name: 00000001
[ 3.920000] elf_dumploadinfo: sh_type: 00000002
[ 3.920000] elf_dumploadinfo: sh_flags: 00000000
[ 3.923000] elf_dumploadinfo: sh_addr: 00000000
[ 3.924000] elf_dumploadinfo: sh_offset: 569368
[ 3.924000] elf_dumploadinfo: sh_size: 23016
[ 3.925000] elf_dumploadinfo: sh_link: 41
[ 3.925000] elf_dumploadinfo: sh_info: 644
[ 3.927000] elf_dumploadinfo: sh_addralign: 8
[ 3.930000] elf_dumploadinfo: sh_entsize: 24
[ 3.931000] elf_dumploadinfo: Sections 41:
[ 3.932000] elf_dumploadinfo: sh_name: 00000009
[ 3.933000] elf_dumploadinfo: sh_type: 00000003
[ 3.936000] elf_dumploadinfo: sh_flags: 00000000
[ 3.939000] elf_dumploadinfo: sh_addr: 00000000
[ 3.940000] elf_dumploadinfo: sh_offset: 592384
[ 3.940000] elf_dumploadinfo: sh_size: 7645
[ 3.940000] elf_dumploadinfo: sh_link: 0
[ 3.940000] elf_dumploadinfo: sh_info: 0
[ 3.940000] elf_dumploadinfo: sh_addralign: 1
[ 3.940000] elf_dumploadinfo: sh_entsize: 0
[ 3.940000] elf_dumploadinfo: Sections 42:
[ 3.940000] elf_dumploadinfo: sh_name: 00000011
[ 3.940000] elf_dumploadinfo: sh_type: 00000003
[ 3.941000] elf_dumploadinfo: sh_flags: 00000000
[ 3.942000] elf_dumploadinfo: sh_addr: 00000000
[ 3.946000] elf_dumploadinfo: sh_offset: 600029
[ 3.947000] elf_dumploadinfo: sh_size: 682
[ 3.948000] elf_dumploadinfo: sh_link: 0
[ 3.948000] elf_dumploadinfo: sh_info: 0
[ 3.949000] elf_dumploadinfo: sh_addralign: 1
[ 3.950000] elf_dumploadinfo: sh_entsize: 0
[ 3.957000] load_absmodule: Successfully loaded module /system/bin/init
[ 3.976000] binfmt_dumpmodule: Module:
[ 3.986000] binfmt_dumpmodule: entrypt: 0xc000001a
[ 3.997000] binfmt_dumpmodule: mapped: 0 size=0
[ 4.008000] binfmt_dumpmodule: alloc: 0 0 0
[ 4.018000] binfmt_dumpmodule: addrenv: 0x80209490
[ 4.030000] binfmt_dumpmodule: stacksize: 2048
[ 4.042000] binfmt_dumpmodule: unload: 0
[ 4.053000] exec_module: Executing /system/bin/init
[ 4.053000] binfmt_copyargv: args=0 argsize=0
[ 4.053000] binfmt_copyargv: args=2 argsize=23
[ 4.053000] exec_module: Initialize the user heap (heapsize=528384)
[ 4.054000] riscv_swint: Entry: regs: 0x80206960 cmd: 2
[ 4.054000] up_dump_register: EPC: 0000000080002624
[ 4.054000] up_dump_register: A0: 0000000000000002 A1: 0000000080200b28 A2: 0000000080208110 A3: 0000000080208110
[ 4.054000] up_dump_register: A4: 0000000080209510 A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 4.054000] up_dump_register: T0: 0000000000000003 T1: 0000000000000007 T2: 0000000000000020 T3: 00000000c0202040
[ 4.054000] up_dump_register: T4: 00000000c0202038 T5: 00000000000000ff T6: 000000000000000f
[ 4.054000] up_dump_register: S0: 0000000080200b28 S1: 8000000200046022 S2: 0000000080200cc0 S3: 0000000080200b18
[ 4.054000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.054000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.054000] up_dump_register: SP: 0000000080206b70 FP: 0000000080200b28 TP: 0000000000000000 RA: 0000000080002624
[ 4.054000] riscv_swint: SWInt Return: Context switch!
[ 4.054000] up_dump_register: EPC: 000000008000464c
[ 4.054000] up_dump_register: A0: 0000000000000000 A1: 0000000000000000 A2: 0000000000000000 A3: 0000000000000000
[ 4.054000] up_dump_register: A4: 0000000000000000 A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 4.054000] up_dump_register: T0: 0000000000000000 T1: 0000000000000000 T2: 0000000000000000 T3: 0000000000000000
[ 4.054000] up_dump_register: T4: 0000000000000000 T5: 0000000000000000 T6: 0000000000000000
[ 4.054000] up_dump_register: S0: 0000000000000000 S1: 0000000000000000 S2: 0000000000000000 S3: 0000000000000000
[ 4.054000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.054000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.054000] up_dump_register: SP: 000000008020a800 FP: 0000000000000000 TP: 0000000000000000 RA: 0000000000000000
[ 4.056000] riscv_swint: Entry: regs: 0x8020a540 cmd: 2
[ 4.056000] up_dump_register: EPC: 0000000080003e98
[ 4.056000] up_dump_register: A0: 0000000000000002 A1: 0000000080208110 A2: 0000000080209510 A3: 0000000080200cc0
[ 4.056000] up_dump_register: A4: 0000000000000064 A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 4.056000] up_dump_register: T0: 0000000000000000 T1: 0000000000000000 T2: 0000000000000000 T3: 0000000000000000
[ 4.056000] up_dump_register: T4: 0000000000000000 T5: 0000000000000000 T6: 0000000000000000
[ 4.056000] up_dump_register: S0: 0000000080208110 S1: 0000000080201600 S2: 0000000200042020 S3: 0000000000000001
[ 4.056000] up_dump_register: S4: 0000000080200cc0 S5: 0000000000000002 S6: 0000000000000000 S7: 0000000000000000
[ 4.056000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.056000] up_dump_register: SP: 000000008020a750 FP: 0000000080208110 TP: 0000000000000000 RA: 0000000080003e98
[ 4.056000] riscv_swint: SWInt Return: Context switch!
[ 4.056000] up_dump_register: EPC: 000000008000464c
[ 4.056000] up_dump_register: A0: 0000000000000000 A1: 0000000000000000 A2: 0000000000000000 A3: 0000000000000000
[ 4.056000] up_dump_register: A4: 0000000000000000 A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 4.056000] up_dump_register: T0: 0000000000000000 T1: 0000000000000000 T2: 0000000000000000 T3: 0000000000000000
[ 4.056000] up_dump_register: T4: 0000000000000000 T5: 0000000000000000 T6: 0000000000000000
[ 4.056000] up_dump_register: S0: 0000000000000000 S1: 0000000000000000 S2: 0000000000000000 S3: 0000000000000000
[ 4.056000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.056000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.056000] up_dump_register: SP: 000000008020b410 FP: 0000000000000000 TP: 0000000000000000 RA: 0000000000000000
[ 4.057000] riscv_swint: Entry: regs: 0x8020b1e0 cmd: 4
[ 4.057000] up_dump_register: EPC: 000000008000adee
[ 4.057000] up_dump_register: A0: 0000000000000004 A1: 00000000c000001a A2: 0000000000000001 A3: 00000000c0202010
[ 4.057000] up_dump_register: A4: 00000000c000001a A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 4.057000] up_dump_register: T0: 0000000000000000 T1: 0000000000000000 T2: 0000000000000000 T3: 0000000000000000
[ 4.057000] up_dump_register: T4: 0000000000000000 T5: 0000000000000000 T6: 0000000000000000
[ 4.057000] up_dump_register: S0: 0000000000000000 S1: 0000000000000000 S2: 0000000000000000 S3: 0000000000000000
[ 4.057000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.057000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.057000] up_dump_register: SP: 000000008020b3f0 FP: 0000000000000000 TP: 0000000000000000 RA: 000000008000adee
[ 4.057000] riscv_swint: SWInt Return: 1
[ 4.059000] riscv_swint: Entry: regs: 0x8020b200 cmd: 13
[ 4.059000] up_dump_register: EPC: 00000000c0001744
[ 4.059000] up_dump_register: A0: 000000000000000d A1: 0000000000000000 A2: 00000000c0202bc8 A3: 00000000c0202010
[ 4.059000] up_dump_register: A4: 00000000c0000000 A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 4.059000] up_dump_register: T0: 0000000000000000 T1: 0000000000000000 T2: 0000000000000000 T3: 0000000000000000
[ 4.059000] up_dump_register: T4: 0000000000000000 T5: 0000000000000000 T6: 0000000000000000
[ 4.059000] up_dump_register: S0: 0000000000000001 S1: 00000000c0202010 S2: 0000000000000000 S3: 0000000000000000
[ 4.059000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.059000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.059000] up_dump_register: SP: 00000000c0202bc0 FP: 0000000000000001 TP: 0000000000000000 RA: 00000000c000004a
[ 4.059000] riscv_swint: SWInt Return: 5
[ 4.060000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 4.060000] up_dump_register: EPC: 00000000c000004a
[ 4.060000] up_dump_register: A0: 0000000000000003 A1: 00000000c0202bc8 A2: 0000000000000000 A3: 00000000c0202010
[ 4.060000] up_dump_register: A4: 00000000c0000000 A5: 0000000000000064 A6: 0000000000000000 A7: 0000000000000000
[ 4.060000] up_dump_register: T0: 00000000800077c4 T1: 0000000000000000 T2: 0000000000000000 T3: 0000000000000000
[ 4.060000] up_dump_register: T4: 0000000000000000 T5: 0000000000000000 T6: 0000000000000000
[ 4.060000] up_dump_register: S0: 0000000000000001 S1: 00000000c0202010 S2: 0000000000000000 S3: 0000000000000000
[ 4.060000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.060000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.060000] up_dump_register: SP: 000000008020b200 FP: 0000000000000001 TP: 0000000000000000 RA: 00000000c000004a
[ 4.060000] riscv_swint: SWInt Return: 0
[ 4.061000] riscv_swint: Entry: regs: 0x8020b200 cmd: 68
[ 4.061000] up_dump_register: EPC: 00000000c00092f6
[ 4.061000] up_dump_register: A0: 0000000000000044 A1: 000000000000ff01 A2: 0000000000000000 A3: 00000000c0202010
[ 4.061000] up_dump_register: A4: 0000000000000064 A5: 000000000000ff01 A6: 0000000000000000 A7: 0000000000000000
[ 4.061000] up_dump_register: T0: 00000000800077c4 T1: 0000000000000000 T2: 0000000000000000 T3: 0000000000000000
[ 4.061000] up_dump_register: T4: 0000000000000000 T5: 0000000000000000 T6: 0000000000000000
[ 4.061000] up_dump_register: S0: 0000000000000001 S1: 00000000c0202010 S2: 0000000000000000 S3: 0000000000000000
[ 4.061000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.061000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.061000] up_dump_register: SP: 00000000c0202bc0 FP: 0000000000000001 TP: 0000000000000000 RA: 00000000c0000062
[ 4.061000] riscv_swint: SWInt Return: 3c
[ 4.062000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 4.062000] up_dump_register: EPC: 00000000c0000062
[ 4.062000] up_dump_register: A0: 0000000000000003 A1: 0000000000000000 A2: 0000000000000000 A3: 0000000000000003
[ 4.062000] up_dump_register: A4: 0000000000007fff A5: 0000000000000000 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.062000] up_dump_register: T0: 0000000080007098 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.062000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.062000] up_dump_register: S0: 0000000000000001 S1: 00000000c0202010 S2: 0000000000000000 S3: 0000000000000000
[ 4.062000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.062000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.062000] up_dump_register: SP: 000000008020b200 FP: 0000000000000001 TP: 0000000000000000 RA: 00000000c0000062
[ 4.062000] riscv_swint: SWInt Return: 0
[ 4.063000] riscv_swint: Entry: regs: 0x8020b200 cmd: 11
[ 4.063000] up_dump_register: EPC: 00000000c00016d6
[ 4.063000] up_dump_register: A0: 000000000000000b A1: 0000000000000348 A2: 0000000000000348 A3: 0000000000000003
[ 4.063000] up_dump_register: A4: 7ffffffffffffffe A5: 0000000000000018 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.063000] up_dump_register: T0: 0000000080007098 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.063000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.063000] up_dump_register: S0: 00000000c0200000 S1: 00000000c0200000 S2: 0000000000000350 S3: 00000000c0100000
[ 4.063000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.063000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.063000] up_dump_register: SP: 00000000c0202ac0 FP: 00000000c0200000 TP: 0000000000000000 RA: 00000000c0007c18
[ 4.063000] riscv_swint: SWInt Return: 3
[ 4.064000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 4.064000] up_dump_register: EPC: 00000000c0007c18
[ 4.064000] up_dump_register: A0: 0000000000000003 A1: 0000000000000348 A2: 0000000000000002 A3: 0000000000000003
[ 4.064000] up_dump_register: A4: 0000000000000003 A5: 0000000080209510 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.064000] up_dump_register: T0: 00000000800072d6 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.064000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.064000] up_dump_register: S0: 00000000c0200000 S1: 00000000c0200000 S2: 0000000000000350 S3: 00000000c0100000
[ 4.064000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.064000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.064000] up_dump_register: SP: 000000008020b200 FP: 00000000c0200000 TP: 0000000000000000 RA: 00000000c0007c18
[ 4.064000] riscv_swint: SWInt Return: 2
[ 4.065000] riscv_swint: Entry: regs: 0x8020b200 cmd: 11
[ 4.065000] up_dump_register: EPC: 00000000c00016d6
[ 4.065000] up_dump_register: A0: 000000000000000b A1: 0000000000000348 A2: 0000000000000002 A3: 0000000000000003
[ 4.065000] up_dump_register: A4: 0000000000000003 A5: 0000000080209510 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.065000] up_dump_register: T0: 00000000800072d6 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.065000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.065000] up_dump_register: S0: ffffffffffffffff S1: 00000000c0200000 S2: 0000000000000350 S3: 00000000c0100000
[ 4.065000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.065000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.065000] up_dump_register: SP: 00000000c0202a90 FP: ffffffffffffffff TP: 0000000000000000 RA: 00000000c00011dc
[ 4.065000] riscv_swint: SWInt Return: 3
[ 4.066000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 4.066000] up_dump_register: EPC: 00000000c00011dc
[ 4.066000] up_dump_register: A0: 0000000000000003 A1: 0000000000000348 A2: 0000000000000002 A3: 0000000000000003
[ 4.066000] up_dump_register: A4: 0000000000000003 A5: 0000000080209510 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.066000] up_dump_register: T0: 00000000800072d6 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.066000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.066000] up_dump_register: S0: ffffffffffffffff S1: 00000000c0200000 S2: 0000000000000350 S3: 00000000c0100000
[ 4.066000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.066000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.066000] up_dump_register: SP: 000000008020b200 FP: ffffffffffffffff TP: 0000000000000000 RA: 00000000c00011dc
[ 4.066000] riscv_swint: SWInt Return: 2
[ 4.068000] riscv_swint: Entry: regs: 0x8020b200 cmd: 31
[ 4.068000] up_dump_register: EPC: 00000000c0001732
[ 4.068000] up_dump_register: A0: 000000000000001f A1: 00000000c0200000 A2: 0000000000000002 A3: 0000000000000003
[ 4.068000] up_dump_register: A4: 0000000000000003 A5: 0000000080209510 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.068000] up_dump_register: T0: 00000000800072d6 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.068000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.068000] up_dump_register: S0: 0000000000000348 S1: 00000000c0200000 S2: ffffffffffffff83 S3: fffffffffffffffc
[ 4.068000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.068000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.068000] up_dump_register: SP: 00000000c0202aa0 FP: 0000000000000348 TP: 0000000000000000 RA: 00000000c000122a
[ 4.068000] riscv_swint: SWInt Return: 17
[ 4.069000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 4.069000] up_dump_register: EPC: 00000000c000122a
[ 4.069000] up_dump_register: A0: 0000000000000003 A1: 00000000c0200000 A2: 0000000000000000 A3: 0000000000000003
[ 4.069000] up_dump_register: A4: 0000000000000006 A5: 0000000000000000 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.069000] up_dump_register: T0: 0000000080007552 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.069000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.069000] up_dump_register: S0: 0000000000000348 S1: 00000000c0200000 S2: ffffffffffffff83 S3: fffffffffffffffc
[ 4.069000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.069000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.069000] up_dump_register: SP: 000000008020b200 FP: 0000000000000348 TP: 0000000000000000 RA: 00000000c000122a
[ 4.069000] riscv_swint: SWInt Return: 0
[ 4.070000] riscv_swint: Entry: regs: 0x8020b200 cmd: 11
[ 4.070000] up_dump_register: EPC: 00000000c00016d6
[ 4.070000] up_dump_register: A0: 000000000000000b A1: 00000000c0200000 A2: 0000000000000000 A3: 0000000000000003
[ 4.070000] up_dump_register: A4: 0000000000000006 A5: 0000000000000000 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.070000] up_dump_register: T0: 0000000080007552 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.070000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.070000] up_dump_register: S0: 0000000000000000 S1: 00000000c0200000 S2: ffffffffffffff83 S3: fffffffffffffffc
[ 4.070000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.070000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.070000] up_dump_register: SP: 00000000c0202aa0 FP: 0000000000000000 TP: 0000000000000000 RA: 00000000c0001234
[ 4.070000] riscv_swint: SWInt Return: 3
[ 4.071000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 4.071000] up_dump_register: EPC: 00000000c0001234
[ 4.071000] up_dump_register: A0: 0000000000000003 A1: 00000000c0200000 A2: 0000000000000002 A3: 0000000000000003
[ 4.071000] up_dump_register: A4: 0000000000000003 A5: 0000000080209510 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.071000] up_dump_register: T0: 00000000800072d6 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.071000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.071000] up_dump_register: S0: 0000000000000000 S1: 00000000c0200000 S2: ffffffffffffff83 S3: fffffffffffffffc
[ 4.071000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.071000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.071000] up_dump_register: SP: 000000008020b200 FP: 0000000000000000 TP: 0000000000000000 RA: 00000000c0001234
[ 4.071000] riscv_swint: SWInt Return: 2
[ 4.073000] riscv_swint: Entry: regs: 0x8020b200 cmd: 11
[ 4.073000] up_dump_register: EPC: 00000000c00016d6
[ 4.073000] up_dump_register: A0: 000000000000000b A1: 00000000c02005d0 A2: 000000000000001f A3: 0000000000000000
[ 4.073000] up_dump_register: A4: 0000000000000002 A5: fffffffffffffffe A6: 0000000000000000 A7: fffffffffffffff8
[ 4.073000] up_dump_register: T0: 00000000800072d6 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.073000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.073000] up_dump_register: S0: 0000000000000002 S1: 00000000c0200000 S2: 0000000000000350 S3: 00000000c0100000
[ 4.073000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.073000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.073000] up_dump_register: SP: 00000000c0202a90 FP: 0000000000000002 TP: 0000000000000000 RA: 00000000c00011dc
[ 4.073000] riscv_swint: SWInt Return: 3
[ 4.074000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 4.074000] up_dump_register: EPC: 00000000c00011dc
[ 4.074000] up_dump_register: A0: 0000000000000003 A1: 00000000c02005d0 A2: 0000000000000002 A3: 0000000000000003
[ 4.074000] up_dump_register: A4: 0000000000000003 A5: 0000000080209510 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.074000] up_dump_register: T0: 00000000800072d6 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.074000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.074000] up_dump_register: S0: 0000000000000002 S1: 00000000c0200000 S2: 0000000000000350 S3: 00000000c0100000
[ 4.074000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.074000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.074000] up_dump_register: SP: 000000008020b200 FP: 0000000000000002 TP: 0000000000000000 RA: 00000000c00011dc
[ 4.074000] riscv_swint: SWInt Return: 2
[ 4.076000] riscv_swint: Entry: regs: 0x8020b200 cmd: 27
[ 4.076000] up_dump_register: EPC: 00000000c0001716
[ 4.076000] up_dump_register: A0: 000000000000001b A1: 00000000c0200000 A2: 0000000000000002 A3: 0000000000000003
[ 4.076000] up_dump_register: A4: 0000000000000003 A5: ffffffffffffffff A6: 0000000000000000 A7: fffffffffffffff8
[ 4.076000] up_dump_register: T0: 00000000800072d6 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.076000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.076000] up_dump_register: S0: 00000000c0200000 S1: 00000000c0200000 S2: 0000000000000350 S3: 00000000c0100000
[ 4.076000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.076000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.076000] up_dump_register: SP: 00000000c0202aa0 FP: 00000000c0200000 TP: 0000000000000000 RA: 00000000c0001334
[ 4.076000] riscv_swint: SWInt Return: 13
[ 4.077000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 4.077000] up_dump_register: EPC: 00000000c0001334
[ 4.077000] up_dump_register: A0: 0000000000000003 A1: 00000000c0200000 A2: 0000000000000000 A3: 0000000000000003
[ 4.077000] up_dump_register: A4: 0000000000007fff A5: 0000000000000001 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.077000] up_dump_register: T0: 0000000080007520 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000802080f4
[ 4.077000] up_dump_register: T4: 00000000802080e8 T5: 0000000000000000 T6: 0000000000000000
[ 4.077000] up_dump_register: S0: 00000000c0200000 S1: 00000000c0200000 S2: 0000000000000350 S3: 00000000c0100000
[ 4.077000] up_dump_register: S4: ffffffffffffffff S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.077000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.077000] up_dump_register: SP: 000000008020b200 FP: 00000000c0200000 TP: 0000000000000000 RA: 00000000c0001334
[ 4.077000] riscv_swint: SWInt Return: 0
[ 4.079000] riscv_swint: Entry: regs: 0x8020b200 cmd: 61
[ 4.079000] up_dump_register: EPC: 00000000c000176e
[ 4.079000] up_dump_register: A0: 000000000000003d A1: 0000000000000001 A2: 00000000c000ac20 A3: 000000000000001e
[ 4.079000] up_dump_register: A4: 0000000000000001 A5: 00000000c000ac20 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.079000] up_dump_register: T0: 0000000080007520 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 4.079000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 4.079000] up_dump_register: S0: 00000000c02005d0 S1: 00000000c0202010 S2: 0000000000000000 S3: 0000000000000001
[ 4.079000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.079000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.079000] up_dump_register: SP: 00000000c0202b70 FP: 00000000c02005d0 TP: 0000000000000000 RA: 00000000c00017fc
[ 4.079000] riscv_swint: SWInt Return: 35
NuttShell (NSH) NuttX-12.4.0
[ 4.081000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 4.081000] up_dump_register: EPC: 00000000c00017fc
[ 4.081000] up_dump_register: A0: 0000000000000003 A1: 000000008020b13c A2: 000000000000001e A3: 0000000000000003
[ 4.081000] up_dump_register: A4: 0000000000007fff A5: 0000000000000001 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.081000] up_dump_register: T0: 0000000080007aae T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 4.081000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 4.081000] up_dump_register: S0: 00000000c02005d0 S1: 00000000c0202010 S2: 0000000000000000 S3: 0000000000000001
[ 4.081000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.081000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.081000] up_dump_register: SP: 000000008020b200 FP: 00000000c02005d0 TP: 0000000000000000 RA: 00000000c00017fc
[ 4.081000] riscv_swint: SWInt Return: 1e
[ 4.082000] riscv_swint: Entry: regs: 0x8020b200 cmd: 61
[ 4.082000] up_dump_register: EPC: 00000000c000176e
[ 4.082000] up_dump_register: A0: 000000000000003d A1: 0000000000000001 A2: 00000000c000b4f0 A3: 0000000000000005
[ 4.082000] up_dump_register: A4: 0000000000000001 A5: 00000000c000b4f0 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.082000] up_dump_register: T0: 0000000080007aae T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 4.082000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 4.082000] up_dump_register: S0: 00000000c02005d0 S1: 00000000c02008c8 S2: 00000000c000b4f0 S3: ffffffffffffffff
[ 4.082000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.082000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.082000] up_dump_register: SP: 00000000c0202b70 FP: 00000000c02005d0 TP: 0000000000000000 RA: 00000000c0001822
[ 4.082000] riscv_swint: SWInt Return: 35
nsh> [ 4.084000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 4.084000] up_dump_register: EPC: 00000000c0001822
[ 4.084000] up_dump_register: A0: 0000000000000003 A1: 000000008020b13c A2: 0000000000000005 A3: 0000000000000003
[ 4.084000] up_dump_register: A4: 0000000000007fff A5: 0000000000000001 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.084000] up_dump_register: T0: 0000000080007aae T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 4.084000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 4.084000] up_dump_register: S0: 00000000c02005d0 S1: 00000000c02008c8 S2: 00000000c000b4f0 S3: ffffffffffffffff
[ 4.084000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.084000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.084000] up_dump_register: SP: 000000008020b200 FP: 00000000c02005d0 TP: 0000000000000000 RA: 00000000c0001822
[ 4.084000] riscv_swint: SWInt Return: 5
[ 4.086000] riscv_swint: Entry: regs: 0x8020b200 cmd: 61
[ 4.086000] up_dump_register: EPC: 00000000c000176e
[ 4.086000] up_dump_register: A0: 000000000000003d A1: 0000000000000001 A2: 00000000c000b540 A3: 0000000000000003
[ 4.086000] up_dump_register: A4: 0000000000000001 A5: 00000000c000b540 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.086000] up_dump_register: T0: 0000000080007aae T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 4.086000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 4.086000] up_dump_register: S0: 0000000000000000 S1: 00000000c02008c8 S2: 00000000c0202b40 S3: 0000000000000050
[ 4.086000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.086000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.086000] up_dump_register: SP: 00000000c0202ad0 FP: 0000000000000000 TP: 0000000000000000 RA: 00000000c0002df0
[ 4.086000] riscv_swint: SWInt Return: 35
[ 4.088000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 4.088000] up_dump_register: EPC: 00000000c0002df0
[ 4.088000] up_dump_register: A0: 0000000000000003 A1: 000000008020b13c A2: 0000000000000003 A3: 0000000000000003
[ 4.088000] up_dump_register: A4: 0000000000007fff A5: 0000000000000001 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.088000] up_dump_register: T0: 0000000080007aae T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 4.088000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 4.088000] up_dump_register: S0: 0000000000000000 S1: 00000000c02008c8 S2: 00000000c0202b40 S3: 0000000000000050
[ 4.088000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.088000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.088000] up_dump_register: SP: 000000008020b200 FP: 0000000000000000 TP: 0000000000000000 RA: 00000000c0002df0
[ 4.088000] riscv_swint: SWInt Return: 3
[ 4.089000] riscv_swint: Entry: regs: 0x8020b200 cmd: 60
[ 4.089000] up_dump_register: EPC: 00000000c00094d2
[ 4.089000] up_dump_register: A0: 000000000000003c A1: 0000000000000000 A2: 00000000c0202aaf A3: 0000000000000001
[ 4.089000] up_dump_register: A4: 0000000000000000 A5: 00000000c0202aaf A6: 0000000000000000 A7: fffffffffffffff8
[ 4.089000] up_dump_register: T0: 0000000080007aae T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 4.089000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 4.089000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 4.089000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 4.089000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 0000000000000000 S11: 0000000000000000
[ 4.089000] up_dump_register: SP: 00000000c0202aa0 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 4.089000] riscv_swint: SWInt Return: 34
[ 4.091000] riscv_swint: Entry: regs: 0x8020aee0 cmd: 2
[ 4.091000] up_dump_register: EPC: 0000000080003e98
[ 4.091000] up_dump_register: A0: 0000000000000002 A1: 0000000080209510 A2: 0000000080200b28 A3: 0000000080200cc0
[ 4.091000] up_dump_register: A4: 0000000000000064 A5: 0000000000000000 A6: 0000000000000000 A7: fffffffffffffff8
[ 4.091000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 4.091000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 4.091000] up_dump_register: S0: 0000000080209510 S1: 0000000080200058 S2: 0000000200042020 S3: 0000000000000001
[ 4.091000] up_dump_register: S4: 0000000080200cc0 S5: 0000000200042022 S6: 0000000080200030 S7: 0000000000000000
[ 4.091000] up_dump_register: S8: 0000000000000002 S9: 0000000000000002 S10: 000000000000001b S11: 000000000000005b
[ 4.091000] up_dump_register: SP: 000000008020b0f0 FP: 0000000080209510 TP: 0000000000000000 RA: 0000000080003e98
[ 4.091000] riscv_swint: SWInt Return: Context switch!
[ 4.091000] up_dump_register: EPC: 0000000080002624
[ 4.091000] up_dump_register: A0: 0000000000000002 A1: 0000000080200b28 A2: 0000000080208110 A3: 0000000080208110
[ 4.091000] up_dump_register: A4: 0000000080209510 A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 4.091000] up_dump_register: T0: 0000000000000003 T1: 0000000000000007 T2: 0000000000000020 T3: 00000000c0202040
[ 4.091000] up_dump_register: T4: 00000000c0202038 T5: 00000000000000ff T6: 000000000000000f
[ 4.091000] up_dump_register: S0: 0000000080200b28 S1: 8000000200046022 S2: 0000000080200cc0 S3: 0000000080200b18
[ 4.091000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 4.091000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 4.091000] up_dump_register: SP: 0000000080206b70 FP: 0000000080200b28 TP: 0000000000000000 RA: 0000000080002624
a[ 6.519000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 6.519000] up_dump_register: EPC: 00000000c00019a2
[ 6.519000] up_dump_register: A0: 0000000000000003 A1: 0000000000000001 A2: 0000000000000001 A3: 0000000000000003
[ 6.519000] up_dump_register: A4: 0000000000007fff A5: 0000000000000001 A6: 0000000000000000 A7: fffffffffffffff8
[ 6.519000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 6.519000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 6.519000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 6.519000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 6.519000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 0000000000000000 S11: 0000000000000000
[ 6.519000] up_dump_register: SP: 000000008020b200 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 6.519000] riscv_swint: SWInt Return: 1
[ 6.521000] riscv_swint: Entry: regs: 0x8020b200 cmd: 60
[ 6.521000] up_dump_register: EPC: 00000000c00094d2
[ 6.521000] up_dump_register: A0: 000000000000003c A1: 0000000000000000 A2: 00000000c0202aaf A3: 0000000000000001
[ 6.521000] up_dump_register: A4: 0000000000000000 A5: 00000000c0202aaf A6: 0000000000000000 A7: fffffffffffffff8
[ 6.521000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 6.521000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 6.521000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 6.521000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 6.521000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 0000000000000061 S11: 0000000000000000
[ 6.521000] up_dump_register: SP: 00000000c0202aa0 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 6.521000] riscv_swint: SWInt Return: 34
[ 6.523000] riscv_swint: Entry: regs: 0x8020aee0 cmd: 2
[ 6.523000] up_dump_register: EPC: 0000000080003e98
[ 6.523000] up_dump_register: A0: 0000000000000002 A1: 0000000080209510 A2: 0000000080200b28 A3: 0000000080200cc0
[ 6.523000] up_dump_register: A4: 0000000000000064 A5: 0000000000000000 A6: 0000000000000000 A7: fffffffffffffff8
[ 6.523000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 6.523000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 6.523000] up_dump_register: S0: 0000000080209510 S1: 0000000080200058 S2: 0000000200042020 S3: 0000000000000001
[ 6.523000] up_dump_register: S4: 0000000080200cc0 S5: 0000000200042022 S6: 0000000080200030 S7: 0000000000000000
[ 6.523000] up_dump_register: S8: 0000000000000002 S9: 0000000000000002 S10: 000000000000001b S11: 000000000000005b
[ 6.523000] up_dump_register: SP: 000000008020b0f0 FP: 0000000080209510 TP: 0000000000000000 RA: 0000000080003e98
[ 6.523000] riscv_swint: SWInt Return: Context switch!
[ 6.523000] up_dump_register: EPC: 000000008000aba2
[ 6.523000] up_dump_register: A0: 0000000000000000 A1: 0000000080200b28 A2: 0000000080208110 A3: 0000000080208110
[ 6.523000] up_dump_register: A4: 0000000000000008 A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 6.523000] up_dump_register: T0: 0000000000000003 T1: 0000000000000007 T2: 0000000000000020 T3: 00000000c0202040
[ 6.523000] up_dump_register: T4: 00000000c0202038 T5: 00000000000000ff T6: 000000000000000f
[ 6.523000] up_dump_register: S0: 0000000080200b28 S1: 00000000802018a8 S2: 00000000802018ac S3: 0000000080200b18
[ 6.523000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 6.523000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 6.523000] up_dump_register: SP: 0000000080206b90 FP: 0000000080200b28 TP: 0000000000000000 RA: 0000000080001c34
.[ 6.917000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 6.917000] up_dump_register: EPC: 00000000c00019a2
[ 6.917000] up_dump_register: A0: 0000000000000003 A1: 0000000000000001 A2: 0000000000000001 A3: 0000000000000003
[ 6.917000] up_dump_register: A4: 0000000000007fff A5: 0000000000000001 A6: 0000000000000000 A7: fffffffffffffff8
[ 6.917000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 6.917000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 6.917000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 6.917000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 6.917000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 0000000000000061 S11: 0000000000000000
[ 6.917000] up_dump_register: SP: 000000008020b200 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 6.917000] riscv_swint: SWInt Return: 1
[ 6.918000] riscv_swint: Entry: regs: 0x8020b200 cmd: 60
[ 6.918000] up_dump_register: EPC: 00000000c00094d2
[ 6.918000] up_dump_register: A0: 000000000000003c A1: 0000000000000000 A2: 00000000c0202aaf A3: 0000000000000001
[ 6.918000] up_dump_register: A4: 0000000000000000 A5: 00000000c0202aaf A6: 0000000000000000 A7: fffffffffffffff8
[ 6.918000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 6.918000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 6.918000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 6.918000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 6.918000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 000000000000002e S11: 0000000000000000
[ 6.918000] up_dump_register: SP: 00000000c0202aa0 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 6.918000] riscv_swint: SWInt Return: 34
[ 6.919000] riscv_swint: Entry: regs: 0x8020aee0 cmd: 2
[ 6.919000] up_dump_register: EPC: 0000000080003e98
[ 6.919000] up_dump_register: A0: 0000000000000002 A1: 0000000080209510 A2: 0000000080200b28 A3: 0000000080200cc0
[ 6.919000] up_dump_register: A4: 0000000000000064 A5: 0000000000000000 A6: 0000000000000000 A7: fffffffffffffff8
[ 6.919000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 6.919000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 6.919000] up_dump_register: S0: 0000000080209510 S1: 0000000080200058 S2: 0000000200042020 S3: 0000000000000001
[ 6.919000] up_dump_register: S4: 0000000080200cc0 S5: 0000000200042022 S6: 0000000080200030 S7: 0000000000000000
[ 6.919000] up_dump_register: S8: 0000000000000002 S9: 0000000000000002 S10: 000000000000001b S11: 000000000000005b
[ 6.919000] up_dump_register: SP: 000000008020b0f0 FP: 0000000080209510 TP: 0000000000000000 RA: 0000000080003e98
[ 6.919000] riscv_swint: SWInt Return: Context switch!
[ 6.919000] up_dump_register: EPC: 000000008000aba2
[ 6.919000] up_dump_register: A0: 0000000000000000 A1: 0000000080200b28 A2: 0000000080208110 A3: 0000000080208110
[ 6.919000] up_dump_register: A4: 0000000000000008 A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 6.919000] up_dump_register: T0: 0000000000000003 T1: 0000000000000007 T2: 0000000000000020 T3: 00000000c0202040
[ 6.919000] up_dump_register: T4: 00000000c0202038 T5: 00000000000000ff T6: 000000000000000f
[ 6.919000] up_dump_register: S0: 0000000080200b28 S1: 00000000802018a8 S2: 00000000802018ac S3: 0000000080200b18
[ 6.919000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 6.919000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 6.919000] up_dump_register: SP: 0000000080206b90 FP: 0000000080200b28 TP: 0000000000000000 RA: 0000000080001c34
o[ 7.553000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 7.553000] up_dump_register: EPC: 00000000c00019a2
[ 7.553000] up_dump_register: A0: 0000000000000003 A1: 0000000000000001 A2: 0000000000000001 A3: 0000000000000003
[ 7.553000] up_dump_register: A4: 0000000000007fff A5: 0000000000000001 A6: 0000000000000000 A7: fffffffffffffff8
[ 7.553000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 7.553000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 7.553000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 7.553000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 7.553000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 000000000000002e S11: 0000000000000000
[ 7.553000] up_dump_register: SP: 000000008020b200 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 7.553000] riscv_swint: SWInt Return: 1
[ 7.554000] riscv_swint: Entry: regs: 0x8020b200 cmd: 60
[ 7.554000] up_dump_register: EPC: 00000000c00094d2
[ 7.554000] up_dump_register: A0: 000000000000003c A1: 0000000000000000 A2: 00000000c0202aaf A3: 0000000000000001
[ 7.554000] up_dump_register: A4: 0000000000000000 A5: 00000000c0202aaf A6: 0000000000000000 A7: fffffffffffffff8
[ 7.554000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 7.554000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 7.554000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 7.554000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 7.554000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 000000000000006f S11: 0000000000000000
[ 7.554000] up_dump_register: SP: 00000000c0202aa0 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 7.554000] riscv_swint: SWInt Return: 34
[ 7.555000] riscv_swint: Entry: regs: 0x8020aee0 cmd: 2
[ 7.555000] up_dump_register: EPC: 0000000080003e98
[ 7.555000] up_dump_register: A0: 0000000000000002 A1: 0000000080209510 A2: 0000000080200b28 A3: 0000000080200cc0
[ 7.555000] up_dump_register: A4: 0000000000000064 A5: 0000000000000000 A6: 0000000000000000 A7: fffffffffffffff8
[ 7.555000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 7.555000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 7.555000] up_dump_register: S0: 0000000080209510 S1: 0000000080200058 S2: 0000000200042020 S3: 0000000000000001
[ 7.555000] up_dump_register: S4: 0000000080200cc0 S5: 0000000200042022 S6: 0000000080200030 S7: 0000000000000000
[ 7.555000] up_dump_register: S8: 0000000000000002 S9: 0000000000000002 S10: 000000000000001b S11: 000000000000005b
[ 7.555000] up_dump_register: SP: 000000008020b0f0 FP: 0000000080209510 TP: 0000000000000000 RA: 0000000080003e98
[ 7.555000] riscv_swint: SWInt Return: Context switch!
[ 7.555000] up_dump_register: EPC: 000000008000aba2
[ 7.555000] up_dump_register: A0: 0000000000000000 A1: 0000000080200b28 A2: 0000000080208110 A3: 0000000080208110
[ 7.555000] up_dump_register: A4: 0000000000000008 A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 7.555000] up_dump_register: T0: 0000000000000003 T1: 0000000000000007 T2: 0000000000000020 T3: 00000000c0202040
[ 7.555000] up_dump_register: T4: 00000000c0202038 T5: 00000000000000ff T6: 000000000000000f
[ 7.555000] up_dump_register: S0: 0000000080200b28 S1: 00000000802018a8 S2: 00000000802018ac S3: 0000000080200b18
[ 7.555000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 7.555000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 7.555000] up_dump_register: SP: 0000000080206b90 FP: 0000000080200b28 TP: 0000000000000000 RA: 0000000080001c34
u[ 7.907000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 7.907000] up_dump_register: EPC: 00000000c00019a2
[ 7.907000] up_dump_register: A0: 0000000000000003 A1: 0000000000000001 A2: 0000000000000001 A3: 0000000000000003
[ 7.907000] up_dump_register: A4: 0000000000007fff A5: 0000000000000001 A6: 0000000000000000 A7: fffffffffffffff8
[ 7.907000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 7.907000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 7.907000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 7.907000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 7.907000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 000000000000006f S11: 0000000000000000
[ 7.907000] up_dump_register: SP: 000000008020b200 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 7.907000] riscv_swint: SWInt Return: 1
[ 7.908000] riscv_swint: Entry: regs: 0x8020b200 cmd: 60
[ 7.908000] up_dump_register: EPC: 00000000c00094d2
[ 7.908000] up_dump_register: A0: 000000000000003c A1: 0000000000000000 A2: 00000000c0202aaf A3: 0000000000000001
[ 7.908000] up_dump_register: A4: 0000000000000000 A5: 00000000c0202aaf A6: 0000000000000000 A7: fffffffffffffff8
[ 7.908000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 7.908000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 7.908000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 7.908000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 7.908000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 0000000000000075 S11: 0000000000000000
[ 7.908000] up_dump_register: SP: 00000000c0202aa0 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 7.908000] riscv_swint: SWInt Return: 34
[ 7.909000] riscv_swint: Entry: regs: 0x8020aee0 cmd: 2
[ 7.909000] up_dump_register: EPC: 0000000080003e98
[ 7.909000] up_dump_register: A0: 0000000000000002 A1: 0000000080209510 A2: 0000000080200b28 A3: 0000000080200cc0
[ 7.909000] up_dump_register: A4: 0000000000000064 A5: 0000000000000000 A6: 0000000000000000 A7: fffffffffffffff8
[ 7.909000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 7.909000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 7.909000] up_dump_register: S0: 0000000080209510 S1: 0000000080200058 S2: 0000000200042020 S3: 0000000000000001
[ 7.909000] up_dump_register: S4: 0000000080200cc0 S5: 0000000200042022 S6: 0000000080200030 S7: 0000000000000000
[ 7.909000] up_dump_register: S8: 0000000000000002 S9: 0000000000000002 S10: 000000000000001b S11: 000000000000005b
[ 7.909000] up_dump_register: SP: 000000008020b0f0 FP: 0000000080209510 TP: 0000000000000000 RA: 0000000080003e98
[ 7.909000] riscv_swint: SWInt Return: Context switch!
[ 7.909000] up_dump_register: EPC: 000000008000aba2
[ 7.909000] up_dump_register: A0: 0000000000000000 A1: 0000000080200b28 A2: 0000000080208110 A3: 0000000080208110
[ 7.909000] up_dump_register: A4: 0000000000000008 A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 7.909000] up_dump_register: T0: 0000000000000003 T1: 0000000000000007 T2: 0000000000000020 T3: 00000000c0202040
[ 7.909000] up_dump_register: T4: 00000000c0202038 T5: 00000000000000ff T6: 000000000000000f
[ 7.909000] up_dump_register: S0: 0000000080200b28 S1: 00000000802018a8 S2: 00000000802018ac S3: 0000000080200b18
[ 7.909000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 7.909000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 7.909000] up_dump_register: SP: 0000000080206b90 FP: 0000000080200b28 TP: 0000000000000000 RA: 0000000080001c34
t[ 8.327000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 8.327000] up_dump_register: EPC: 00000000c00019a2
[ 8.327000] up_dump_register: A0: 0000000000000003 A1: 0000000000000001 A2: 0000000000000001 A3: 0000000000000003
[ 8.327000] up_dump_register: A4: 0000000000007fff A5: 0000000000000001 A6: 0000000000000000 A7: fffffffffffffff8
[ 8.327000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 8.327000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 8.327000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 8.327000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 8.327000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 0000000000000075 S11: 0000000000000000
[ 8.327000] up_dump_register: SP: 000000008020b200 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 8.327000] riscv_swint: SWInt Return: 1
[ 8.328000] riscv_swint: Entry: regs: 0x8020b200 cmd: 60
[ 8.328000] up_dump_register: EPC: 00000000c00094d2
[ 8.328000] up_dump_register: A0: 000000000000003c A1: 0000000000000000 A2: 00000000c0202aaf A3: 0000000000000001
[ 8.328000] up_dump_register: A4: 0000000000000000 A5: 00000000c0202aaf A6: 0000000000000000 A7: fffffffffffffff8
[ 8.328000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 8.328000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 8.328000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 8.328000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 8.328000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 0000000000000074 S11: 0000000000000000
[ 8.328000] up_dump_register: SP: 00000000c0202aa0 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 8.328000] riscv_swint: SWInt Return: 34
[ 8.330000] riscv_swint: Entry: regs: 0x8020aee0 cmd: 2
[ 8.330000] up_dump_register: EPC: 0000000080003e98
[ 8.330000] up_dump_register: A0: 0000000000000002 A1: 0000000080209510 A2: 0000000080200b28 A3: 0000000080200cc0
[ 8.330000] up_dump_register: A4: 0000000000000064 A5: 0000000000000000 A6: 0000000000000000 A7: fffffffffffffff8
[ 8.330000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 8.330000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 8.330000] up_dump_register: S0: 0000000080209510 S1: 0000000080200058 S2: 0000000200042020 S3: 0000000000000001
[ 8.330000] up_dump_register: S4: 0000000080200cc0 S5: 0000000200042022 S6: 0000000080200030 S7: 0000000000000000
[ 8.330000] up_dump_register: S8: 0000000000000002 S9: 0000000000000002 S10: 000000000000001b S11: 000000000000005b
[ 8.330000] up_dump_register: SP: 000000008020b0f0 FP: 0000000080209510 TP: 0000000000000000 RA: 0000000080003e98
[ 8.330000] riscv_swint: SWInt Return: Context switch!
[ 8.330000] up_dump_register: EPC: 000000008000aba2
[ 8.330000] up_dump_register: A0: 0000000000000000 A1: 0000000080200b28 A2: 0000000080208110 A3: 0000000080208110
[ 8.330000] up_dump_register: A4: 0000000000000008 A5: 0000000000000000 A6: 0000000000000000 A7: 0000000000000000
[ 8.330000] up_dump_register: T0: 0000000000000003 T1: 0000000000000007 T2: 0000000000000020 T3: 00000000c0202040
[ 8.330000] up_dump_register: T4: 00000000c0202038 T5: 00000000000000ff T6: 000000000000000f
[ 8.330000] up_dump_register: S0: 0000000080200b28 S1: 00000000802018a8 S2: 00000000802018ac S3: 0000000080200b18
[ 8.330000] up_dump_register: S4: 0000000000000000 S5: 0000000000000000 S6: 0000000000000000 S7: 0000000000000000
[ 8.330000] up_dump_register: S8: 0000000000000000 S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 8.330000] up_dump_register: SP: 0000000080206b90 FP: 0000000080200b28 TP: 0000000000000000 RA: 0000000080001c34
[ 8.886000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 8.886000] up_dump_register: EPC: 00000000c00019a2
[ 8.886000] up_dump_register: A0: 0000000000000003 A1: 0000000000000001 A2: 0000000000000001 A3: 0000000000000003
[ 8.886000] up_dump_register: A4: 0000000000007fff A5: 0000000000000001 A6: 0000000000000000 A7: fffffffffffffff8
[ 8.886000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0200918
[ 8.886000] up_dump_register: T4: 00000000c0200910 T5: 0000000000000000 T6: 0000000000000000
[ 8.886000] up_dump_register: S0: 00000000c0202b40 S1: 0000000000000004 S2: 00000000c0202b40 S3: 0000000000000050
[ 8.886000] up_dump_register: S4: 00000000c0101038 S5: ffffffffffffffff S6: 0000000000000008 S7: 000000000000007f
[ 8.886000] up_dump_register: S8: 000000000000001b S9: 000000000000000a S10: 0000000000000074 S11: 0000000000000000
[ 8.886000] up_dump_register: SP: 000000008020b200 FP: 00000000c0202b40 TP: 0000000000000000 RA: 00000000c00019a2
[ 8.886000] riscv_swint: SWInt Return: 1
[ 8.889000] riscv_swint: Entry: regs: 0x8020b200 cmd: 13
[ 8.889000] up_dump_register: EPC: 00000000c0001744
[ 8.889000] up_dump_register: A0: 000000000000000d A1: 0000000000000000 A2: 00000000c0202958 A3: 0000000000000000
[ 8.889000] up_dump_register: A4: 0000000000000000 A5: 0000000000000000 A6: 0000000000000000 A7: fffffffffffffff8
[ 8.889000] up_dump_register: T0: 0000000080007796 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0202b10
[ 8.889000] up_dump_register: T4: 00000000c0202b08 T5: 0000000000000000 T6: 0000000000000000
[ 8.889000] up_dump_register: S0: 00000000c0202988 S1: 00000000c02005d0 S2: 00000000c02008c8 S3: 0000000000000000
[ 8.889000] up_dump_register: S4: 00000000c0202a28 S5: 0000000000000000 S6: 00000000c000b538 S7: 000000000000000a
[ 8.889000] up_dump_register: S8: 000000000000000b S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 8.889000] up_dump_register: SP: 00000000c0202950 FP: 00000000c0202988 TP: 0000000000000000 RA: 00000000c000832a
[ 8.889000] riscv_swint: SWInt Return: 5
[ 8.890000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 8.890000] up_dump_register: EPC: 00000000c000832a
[ 8.890000] up_dump_register: A0: 0000000000000003 A1: 00000000c0202958 A2: 0000000000000000 A3: 0000000000000000
[ 8.890000] up_dump_register: A4: 0000000000000000 A5: 0000000000000064 A6: 0000000000000000 A7: fffffffffffffff8
[ 8.890000] up_dump_register: T0: 00000000800077c4 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0202b10
[ 8.890000] up_dump_register: T4: 00000000c0202b08 T5: 0000000000000000 T6: 0000000000000000
[ 8.890000] up_dump_register: S0: 00000000c0202988 S1: 00000000c02005d0 S2: 00000000c02008c8 S3: 0000000000000000
[ 8.890000] up_dump_register: S4: 00000000c0202a28 S5: 0000000000000000 S6: 00000000c000b538 S7: 000000000000000a
[ 8.890000] up_dump_register: S8: 000000000000000b S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 8.890000] up_dump_register: SP: 000000008020b200 FP: 00000000c0202988 TP: 0000000000000000 RA: 00000000c000832a
[ 8.890000] riscv_swint: SWInt Return: 0
[ 8.891000] riscv_swint: Entry: regs: 0x8020b200 cmd: 14
[ 8.891000] up_dump_register: EPC: 00000000c0009502
[ 8.891000] up_dump_register: A0: 000000000000000e A1: 0000000000000000 A2: 0000000000000000 A3: 0000000000000000
[ 8.891000] up_dump_register: A4: 0000000000000000 A5: 0000000000000064 A6: 0000000000000000 A7: fffffffffffffff8
[ 8.891000] up_dump_register: T0: 00000000800077c4 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0202b10
[ 8.891000] up_dump_register: T4: 00000000c0202b08 T5: 0000000000000000 T6: 0000000000000000
[ 8.891000] up_dump_register: S0: 00000000c0202988 S1: 00000000c02005d0 S2: 00000000c02008c8 S3: 0000000000000000
[ 8.891000] up_dump_register: S4: 00000000c0202a28 S5: 0000000000000000 S6: 00000000c000b538 S7: 000000000000000a
[ 8.891000] up_dump_register: S8: 000000000000000b S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 8.891000] up_dump_register: SP: 00000000c0202950 FP: 00000000c0202988 TP: 0000000000000000 RA: 00000000c0008348
[ 8.891000] riscv_swint: SWInt Return: 6
[ 8.893000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 8.893000] up_dump_register: EPC: 00000000c0008348
[ 8.893000] up_dump_register: A0: 0000000000000003 A1: 0000000000000000 A2: 0000000000000002 A3: 0000000000000000
[ 8.893000] up_dump_register: A4: 0000000000000000 A5: 0000000080209510 A6: 0000000000000000 A7: fffffffffffffff8
[ 8.893000] up_dump_register: T0: 00000000800077d8 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0202b10
[ 8.893000] up_dump_register: T4: 00000000c0202b08 T5: 0000000000000000 T6: 0000000000000000
[ 8.893000] up_dump_register: S0: 00000000c0202988 S1: 00000000c02005d0 S2: 00000000c02008c8 S3: 0000000000000000
[ 8.893000] up_dump_register: S4: 00000000c0202a28 S5: 0000000000000000 S6: 00000000c000b538 S7: 000000000000000a
[ 8.893000] up_dump_register: S8: 000000000000000b S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 8.893000] up_dump_register: SP: 000000008020b200 FP: 00000000c0202988 TP: 0000000000000000 RA: 00000000c0008348
[ 8.893000] riscv_swint: SWInt Return: 2
[ 8.894000] riscv_swint: Entry: regs: 0x8020b200 cmd: 130
[ 8.894000] up_dump_register: EPC: 00000000c0009352
[ 8.894000] up_dump_register: A0: 0000000000000082 A1: 0000000000000000 A2: 0000000000000002 A3: 0000000000000000
[ 8.894000] up_dump_register: A4: 0000000000000000 A5: 0000000000000800 A6: 0000000000000000 A7: fffffffffffffff8
[ 8.894000] up_dump_register: T0: 00000000800077d8 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0202b10
[ 8.894000] up_dump_register: T4: 00000000c0202b08 T5: 0000000000000000 T6: 0000000000000000
[ 8.894000] up_dump_register: S0: 0000000000000000 S1: 00000000c02005d0 S2: 00000000c02008c8 S3: 0000000000000000
[ 8.894000] up_dump_register: S4: 00000000c0202a28 S5: 0000000000000000 S6: 00000000c000b538 S7: 000000000000000a
[ 8.894000] up_dump_register: S8: 000000000000000b S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 8.894000] up_dump_register: SP: 00000000c0202970 FP: 0000000000000000 TP: 0000000000000000 RA: 00000000c0004530
[ 8.894000] riscv_swint: SWInt Return: 7a
[ 8.895000] riscv_swint: Entry: regs: 0x8020aff0 cmd: 3
[ 8.895000] up_dump_register: EPC: 00000000c0004530
[ 8.895000] up_dump_register: A0: 0000000000000003 A1: 0000000000000000 A2: 00000000c0200570 A3: 0000000000000000
[ 8.895000] up_dump_register: A4: 0000000000000000 A5: 00000000802096c0 A6: 0000000000000000 A7: fffffffffffffff8
[ 8.895000] up_dump_register: T0: 0000000080007292 T1: 0000000000000007 T2: 0000000000000000 T3: 00000000c0202b10
[ 8.895000] up_dump_register: T4: 00000000c0202b08 T5: 0000000000000000 T6: 0000000000000000
[ 8.895000] up_dump_register: S0: 0000000000000000 S1: 00000000c02005d0 S2: 00000000c02008c8 S3: 0000000000000000
[ 8.895000] up_dump_register: S4: 00000000c0202a28 S5: 0000000000000000 S6: 00000000c000b538 S7: 000000000000000a
[ 8.895000] up_dump_register: S8: 000000000000000b S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 8.895000] up_dump_register: SP: 000000008020b200 FP: 0000000000000000 TP: 0000000000000000 RA: 00000000c0004530
[ 8.895000] riscv_swint: SWInt Return: c0200570
[ 8.896000] riscv_swint: Entry: regs: 0x8020b200 cmd: 35
[ 8.896000] up_dump_register: EPC: 00000000c00094aa
[ 8.896000] up_dump_register: A0: 0000000000000023 A1: 00000000c0202978 A2: 00000000c02008c8 A3: 00000000c0202980
[ 8.896000] up_dump_register: A4: 00000000c0202988 A5: 00000000c0202a28 A6: 00000000c0200570 A7: 00000000c0202a28
[ 8.896000] up_dump_register: T0: 0000000080007292 T1: 00000000c0202988 T2: 0000000000000000 T3: 00000000c0202980
[ 8.896000] up_dump_register: T4: 00000000c02008c8 T5: 00000000c0202978 T6: 0000000000000000
[ 8.896000] up_dump_register: S0: 0000000000000000 S1: 00000000c02005d0 S2: 00000000c02008c8 S3: 0000000000000000
[ 8.896000] up_dump_register: S4: 00000000c0202a28 S5: 0000000000000000 S6: 00000000c000b538 S7: 000000000000000a
[ 8.896000] up_dump_register: S8: 000000000000000b S9: 0000000000000000 S10: 0000000000000000 S11: 0000000000000000
[ 8.896000] up_dump_register: SP: 00000000c0202970 FP: 0000000000000000 TP: 0000000000000000 RA: 00000000c0004540
[ 8.896000] riscv_swint: SWInt Return: 1b
[ 8.900000] load_absmodule: Loading /system/bin/a.out
[ 8.902000] elf_loadbinary: Loading file: /system/bin/a.out
[ 8.905000] elf_init: filename: /system/bin/a.out loadinfo: 0x8020afa8
[ 8.908000] elf_read: Read 64 bytes from offset 0
[ 8.911000] elf_dumploadinfo: LOAD_INFO:
[ 8.911000] elf_dumploadinfo: textalloc: 00000000
[ 8.918000] elf_dumploadinfo: dataalloc: 00000000
[ 8.926000] elf_dumploadinfo: textsize: 0
[ 8.931000] elf_dumploadinfo: datasize: 0
[ 8.931000] elf_dumploadinfo: textalign: 0
[ 8.932000] elf_dumploadinfo: dataalign: 0
[ 8.934000] elf_dumploadinfo: filelen: 2048
[ 8.937000] elf_dumploadinfo: symtabidx: 0
[ 8.940000] elf_dumploadinfo: strtabidx: 0
[ 8.942000] elf_dumploadinfo: ELF Header:
[ 8.943000] elf_dumploadinfo: e_ident: 7f 45 4c 46
[ 8.949000] elf_dumploadinfo: e_type: 0001
[ 8.954000] elf_dumploadinfo: e_machine: 00f3
[ 8.956000] elf_dumploadinfo: e_version: 00000001
[ 8.960000] elf_dumploadinfo: e_entry: 00000000
[ 8.963000] elf_dumploadinfo: e_phoff: 0
[ 8.966000] elf_dumploadinfo: e_shoff: 1472
[ 8.971000] elf_dumploadinfo: e_flags: 00000004
[ 8.972000] elf_dumploadinfo: e_ehsize: 64
[ 8.976000] elf_dumploadinfo: e_phentsize: 0
[ 8.978000] elf_dumploadinfo: e_phnum: 0
[ 8.980000] elf_dumploadinfo: e_shentsize: 64
[ 8.982000] elf_dumploadinfo: e_shnum: 9
[ 8.984000] elf_dumploadinfo: e_shstrndx: 8
[ 8.986000] elf_load: loadinfo: 0x8020afa8
[ 8.989000] elf_loadphdrs: No programs(?)
[ 8.992000] elf_read: Read 576 bytes from offset 1472
[ 9.002000] elf_loadfile: Loaded sections:
[ 9.005000] elf_read: Read 628 bytes from offset 64
[ 9.007000] elf_loadfile: 1. 00000000->c0000000
[ 9.008000] elf_read: Read 0 bytes from offset 704
[ 9.009000] elf_loadfile: 2. 00000000->c0101000
[ 9.010000] elf_read: Read 18 bytes from offset 704
[ 9.011000] elf_loadfile: 3. 00000000->c0101000
[ 9.011000] elf_loadfile: 4. 00000000->c0101018
[ 9.014000] elf_dumploadinfo: LOAD_INFO:
[ 9.016000] elf_dumploadinfo: textalloc: c0000000
[ 9.018000] elf_dumploadinfo: dataalloc: c0101000
[ 9.021000] elf_dumploadinfo: textsize: 628
[ 9.022000] elf_dumploadinfo: datasize: 24
[ 9.023000] elf_dumploadinfo: textalign: 8
[ 9.023000] elf_dumploadinfo: dataalign: 8
[ 9.025000] elf_dumploadinfo: filelen: 2048
[ 9.027000] elf_dumploadinfo: symtabidx: 0
[ 9.028000] elf_dumploadinfo: strtabidx: 0
[ 9.031000] elf_dumploadinfo: ELF Header:
[ 9.031000] elf_dumploadinfo: e_ident: 7f 45 4c 46
[ 9.033000] elf_dumploadinfo: e_type: 0001
[ 9.033000] elf_dumploadinfo: e_machine: 00f3
[ 9.036000] elf_dumploadinfo: e_version: 00000001
[ 9.037000] elf_dumploadinfo: e_entry: 00000000
[ 9.041000] elf_dumploadinfo: e_phoff: 0
[ 9.044000] elf_dumploadinfo: e_shoff: 1472
[ 9.047000] elf_dumploadinfo: e_flags: 00000004
[ 9.051000] elf_dumploadinfo: e_ehsize: 64
[ 9.055000] elf_dumploadinfo: e_phentsize: 0
[ 9.055000] elf_dumploadinfo: e_phnum: 0
[ 9.055000] elf_dumploadinfo: e_shentsize: 64
[ 9.058000] elf_dumploadinfo: e_shnum: 9
[ 9.060000] elf_dumploadinfo: e_shstrndx: 8
[ 9.060000] elf_dumploadinfo: Sections 0:
[ 9.060000] elf_dumploadinfo: sh_name: 00000000
[ 9.063000] elf_dumploadinfo: sh_type: 00000000
[ 9.063000] elf_dumploadinfo: sh_flags: 00000000
[ 9.064000] elf_dumploadinfo: sh_addr: 00000000
[ 9.066000] elf_dumploadinfo: sh_offset: 0
[ 9.069000] elf_dumploadinfo: sh_size: 0
[ 9.070000] elf_dumploadinfo: sh_link: 0
[ 9.073000] elf_dumploadinfo: sh_info: 0
[ 9.075000] elf_dumploadinfo: sh_addralign: 0
[ 9.079000] elf_dumploadinfo: sh_entsize: 0
[ 9.083000] elf_dumploadinfo: Sections 1:
[ 9.086000] elf_dumploadinfo: sh_name: 00000001
[ 9.089000] elf_dumploadinfo: sh_type: 00000001
[ 9.089000] elf_dumploadinfo: sh_flags: 00000006
[ 9.090000] elf_dumploadinfo: sh_addr: c0000000
[ 9.092000] elf_dumploadinfo: sh_offset: 64
[ 9.093000] elf_dumploadinfo: sh_size: 628
[ 9.093000] elf_dumploadinfo: sh_link: 0
[ 9.093000] elf_dumploadinfo: sh_info: 0
[ 9.093000] elf_dumploadinfo: sh_addralign: 8
[ 9.093000] elf_dumploadinfo: sh_entsize: 0
[ 9.093000] elf_dumploadinfo: Sections 2:
[ 9.094000] elf_dumploadinfo: sh_name: 00000007
[ 9.095000] elf_dumploadinfo: sh_type: 00000001
[ 9.105000] elf_dumploadinfo: sh_flags: 00000003
[ 9.112000] elf_dumploadinfo: sh_addr: c0101000
[ 9.121000] elf_dumploadinfo: sh_offset: 704
[ 9.130000] elf_dumploadinfo: sh_size: 0
[ 9.136000] elf_dumploadinfo: sh_link: 0
[ 9.141000] elf_dumploadinfo: sh_info: 0
[ 9.143000] elf_dumploadinfo: sh_addralign: 8
[ 9.151000] elf_dumploadinfo: sh_entsize: 0
[ 9.157000] elf_dumploadinfo: Sections 3:
[ 9.165000] elf_dumploadinfo: sh_name: 0000000d
[ 9.174000] elf_dumploadinfo: sh_type: 00000001
[ 9.183000] elf_dumploadinfo: sh_flags: 00000003
[ 9.192000] elf_dumploadinfo: sh_addr: c0101000
[ 9.200000] elf_dumploadinfo: sh_offset: 704
[ 9.207000] elf_dumploadinfo: sh_size: 18
[ 9.214000] elf_dumploadinfo: sh_link: 0
[ 9.221000] elf_dumploadinfo: sh_info: 0
[ 9.228000] elf_dumploadinfo: sh_addralign: 8
[ 9.235000] elf_dumploadinfo: sh_entsize: 0
[ 9.243000] elf_dumploadinfo: Sections 4:
[ 9.250000] elf_dumploadinfo: sh_name: 00000016
[ 9.258000] elf_dumploadinfo: sh_type: 00000008
[ 9.266000] elf_dumploadinfo: sh_flags: 00000003