Our great sponsors
-
toaruos
Discontinued A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
There is no correct way to use inline assembly here. You need a stub written in assembly that will save those registers to the stack and pass a pointer to a handler written in C. You may also want to define a struct that matches the stack layout to make it easier to access the stack contents. This is not my code. If you want to use this code in your OS, you must follow the license requirements.