Skip to content

Commit 72024bb

Browse files
author
Ian Seyler
committed
API re-org. Disk functions to be implemented at 0x4*.
1 parent 8f1ad08 commit 72024bb

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

api/libBareMetal.asm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ SCREEN_Y_GET equ 0x22
3838
SCREEN_PPSL_GET equ 0x23
3939
SCREEN_BPP_GET equ 0x24
4040
MAC_GET equ 0x30
41-
BUS_READ equ 0x40
42-
BUS_WRITE equ 0x41
43-
STDOUT_SET equ 0x42
44-
STDOUT_GET equ 0x43
41+
BUS_READ equ 0x50
42+
BUS_WRITE equ 0x51
43+
STDOUT_SET equ 0x52
44+
STDOUT_GET equ 0x53
4545
DUMP_MEM equ 0x70
4646
DUMP_RAX equ 0x71
4747
DELAY equ 0x72

api/libBareMetal.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ u64 b_system(u64 function, u64 var1, u64 var2);
5151
#define SCREEN_PPSL_GET 0x23
5252
#define SCREEN_BPP_GET 0x24
5353
#define MAC_GET 0x30
54-
#define BUS_READ 0x40
55-
#define BUS_WRITE 0x41
56-
#define STDOUT_SET 0x42
57-
#define STDOUT_GET 0x43
54+
#define BUS_READ 0x50
55+
#define BUS_WRITE 0x51
56+
#define STDOUT_SET 0x52
57+
#define STDOUT_GET 0x53
5858
#define DUMP_MEM 0x70
5959
#define DUMP_RAX 0x71
6060
#define DELAY 0x72

src/syscalls/system.asm

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,11 @@ b_system_table:
379379
dw none ; 0x3E
380380
dw none ; 0x3F
381381

382-
; PCI
383-
dw b_system_pci_read ; 0x40
384-
dw b_system_pci_write ; 0x41
385-
386-
; Standard Output
387-
dw b_system_stdout_set ; 0x42
388-
dw b_system_stdout_get ; 0x43
382+
; Storage
383+
dw none ; 0x40
384+
dw none ; 0x41
385+
dw none ; 0x42
386+
dw none ; 0x43
389387
dw none ; 0x44
390388
dw none ; 0x45
391389
dw none ; 0x46
@@ -398,10 +396,12 @@ b_system_table:
398396
dw none ; 0x4D
399397
dw none ; 0x4E
400398
dw none ; 0x4F
401-
dw none ; 0x50
402-
dw none ; 0x51
403-
dw none ; 0x52
404-
dw none ; 0x53
399+
400+
; Misc
401+
dw b_system_pci_read ; 0x50
402+
dw b_system_pci_write ; 0x51
403+
dw b_system_stdout_set ; 0x52
404+
dw b_system_stdout_get ; 0x53
405405
dw none ; 0x54
406406
dw none ; 0x55
407407
dw none ; 0x56

0 commit comments

Comments
 (0)