unsafe_ops
is a low-level utility library designed to provide direct access to hardware and memory operations. It is tailored for developers working on embedded systems, operating systems, and performance-critical applications where low-level control and performance optimization are crucial.
- Instruction Injection
- Injection of instruction sequence on the host CPU directly and dynamically on runtime.
- Direct Hardware I/O Access
- Read and write to hardware ports (e.g., port_read8, port_write8).
- Memory Operations
- Allocate, align, and protect memory regions for specific purposes (e.g., executable memory or read-only memory).
- Support for cache control operations (e.g., flushing and prefetching).
- Endianness Handling
- Convert between big-endian and little-endian formats for buffers and individual values.
- Interrupt Handling
- Simplify device interrupt handling with callbacks and status register manipulation.
- Volatile Operations
- Atomic read and write operations on volatile memory regions.
Full Changelog: v1.2...v1.3