Skip to content

Commit 8a27efc

Browse files
author
Ian Seyler
committed
Doc / comment updates
1 parent 66ebd71 commit 8a27efc

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

doc/Kernel API.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,21 @@ Return the number of bits per pixel. This should return 32.
316316
OUT: RAX = Bits per pixel
317317
All other registers preserved
318318

319-
#### MAC_GET
319+
#### NET_STATUS
320320

321321
Return the MAC address of the network device.
322322

323-
IN: Nothing
324-
OUT: RAX = MAC address (bits 0-47)
323+
IN: RDX = Interface ID
324+
OUT: RAX = MAC Address (bits 0-47) if net is enabled, otherwise 0
325+
All other registers preserved
326+
327+
#### NET_CONFIG
328+
329+
Configure an interface
330+
331+
IN: RDX = Interface ID
332+
RAX = Base for receive descriptors
333+
OUT: Nothing
325334
All other registers preserved
326335

327336
#### BUS_READ

src/syscalls/net.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
; -----------------------------------------------------------------------------
1010
; b_net_status -- Check if network access is available
1111
; IN: RDX = Interface ID
12-
; OUT: RAX = MAC Address if net is enabled, otherwise 0
12+
; OUT: RAX = MAC Address (bits 0-47) if net is enabled, otherwise 0
1313
b_net_status:
1414
push rsi
1515
push rcx
@@ -41,7 +41,7 @@ b_net_status_end:
4141

4242

4343
; -----------------------------------------------------------------------------
44-
; b_net_config -- Check if network access is available
44+
; b_net_config -- Configure an interface
4545
; IN: RDX = Interface ID
4646
; RAX = Base for receive descriptors
4747
; OUT: Nothing

0 commit comments

Comments
 (0)