Skip to content

Instantly share code, notes, and snippets.

View hack3ric's full-sized avatar
🐝

Eric Long hack3ric

🐝
View GitHub Profile
@hack3ric
hack3ric / README.md
Created May 24, 2023 11:43
Generate syscall info for Lurk
  • get-syscalls.py generates syscall informations.
  • syscalls-table-riscv.rs is an example of using get-syscalls.py to generate ones for RISC-V, with manual modifications noted.
@hack3ric
hack3ric / README.md
Created April 19, 2023 16:11
Deno riscv64 debug
ERROR TSLS = Error: Could not find source file: 'file:///<working_dir>/$deno$repl.ts'.
    at getValidSourceFile (ext:deno_tsc/00_typescript.js:133358:23)
    at Object.getSemanticDiagnostics (ext:deno_tsc/00_typescript.js:133600:32)
    at serverRequest (ext:deno_tsc/99_main_compiler.js:1059:34)
    at [ext:cli/lsp/tsc.rs:3496:26]:1:12

How $deno$repl.ts is opened by LSP (probably):

@hack3ric
hack3ric / README.md
Last active July 6, 2023 07:03
PyPy bootstrap for Arch Linux riscv64
  • Since Arch Linux removed Python 2 from its official repository, we need to use AUR scripts. Build [python2] from AUR. Note that there's one failed test (test_gdbm), but it should be fine with --nocheck.

  • Build [python2-cffi], [python2-setuptools], [python2-pycparser], [python2-ply] from AUR.

  • Use pypy-bootstrap-riscv64.patch below to build first version of pypy on riscv64 with something like:

    $ pwd
    .../archriscv/pypy/repos/community-x86_64
    

$ extra-riscv64-build -- -d "/tmp/pkgcache:/var/cache/pacman/pkg/" \