From 776a3710652f78b44718450406d0683974aef72a Mon Sep 17 00:00:00 2001 From: Alejandro Sior Date: Thu, 19 May 2022 08:45:26 +0200 Subject: bios: stub calls interrupt number; simplified bios.ha main interface Instead of having the bios.call stub calling a function, make it directly call an interrupt that is changed dynamically by modifying the code at runtime. Simplify the bios.ha interface and document it. Next up: implementing a high level drive interface for the BIOS using BIOS interrupts --- bios/drive/+x86_64/drive.s | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 bios/drive/+x86_64/drive.s (limited to 'bios/drive/+x86_64/drive.s') diff --git a/bios/drive/+x86_64/drive.s b/bios/drive/+x86_64/drive.s new file mode 100644 index 0000000..1f3828e --- /dev/null +++ b/bios/drive/+x86_64/drive.s @@ -0,0 +1,7 @@ +.code16 + +.globl bios.drive.read +bios.drive.read: + mov $0x2, %ah + int $0x13 + ret -- cgit v1.2.3