Manipulate 64-bit value with 32-bit registers How to add and subtract a 32-bit unsigned number to/from a 62-bit unsigned number stored in two registers. 2023-04-15 Algorithms & Data Structures #RISC-V #Register
Peripheral Interrupt Procedure in RISC-V Some notes on PLIC and external interrupt in machine mode. 2023-04-02 Operating System & Architecture #RISC-V #QEMU #Emulation #Peripheral #Interrupt #PLIC #FDT
Align Number to Multiple Aligning an integer to its closest muplitple of number m is easy. But if m is a power of 2, using bitwise operations can help a lot. 2023-03-12 Algorithms & Data Structures #Optimization #Memory #Alignment #Bitwise Operation #xv6
Read and Write by Polling with UART Exhilarating 'Hello world'. 2023-02-28 Operating System & Architecture #Register #C #xv6 #QEMU #Emulation #UART #Baud Rate #Polling #Peripheral
RISC-V Machine Boot Code Basic boot process of a RISC-V hardware, with sample bootstrap assembly code explained. 2023-02-23 Operating System & Architecture #RISC-V #Register #C #Memory #xv6 #Bootstrap #Assembly #Stack #QEMU #Emulation
Test Malloc Failure with Macros in C To improve robustness 2022-12-07 Programming Language #C #Memory #Debug #Dynamic Memory Allocation #Robustness #Testing #C Macro #C Preprocessor
Advanced Concatenate with Sqlite3 Do advanced CONCAT by powerful SQL 2022-10-27 Database #SQL #SQLite