From dde29ddf155139799c9e8ac653fabd37ebb10b43 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Sat, 4 Dec 2021 16:01:10 +0000 Subject: [PATCH] [KERNEL] Document eth_input function git-svn-id: svn://kolibrios.org@9394 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/network/ethernet.inc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/kernel/trunk/network/ethernet.inc b/kernel/trunk/network/ethernet.inc index b17eaaf8e9..7141108e62 100644 --- a/kernel/trunk/network/ethernet.inc +++ b/kernel/trunk/network/ethernet.inc @@ -62,17 +62,18 @@ macro eth_init { } -;-----------------------------------------------------------------; -; ; -; eth_input: This function is called by ethernet drivers. ; -; Push the received ethernet packet onto the ethernet input queue.; -; ; -; IN: [esp] = Pointer to buffer ; -; ; -; OUT: / ; -; ; -;-----------------------------------------------------------------; align 4 +; This function is called by ethernet drivers. +; Push the received ethernet packet onto the ethernet input queue. +; +; Input: +; [esp + 4] = Pointer to buffer +; [esp + 8] = Return address (yes, really) +; +; Example: +; push .retaddr +; push buf_addr +; jmp eth_input eth_input: pop eax