From cc055d5ee74a3ea85744a634936957d67dd2d783 Mon Sep 17 00:00:00 2001 From: hpa Date: Wed, 12 Jun 2002 06:16:58 +0000 Subject: [PATCH] Add an API call to invoke the PXE stack directly. --- comboot.doc | 10 ++++++++++ comboot.inc | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/comboot.doc b/comboot.doc index 97bb89f..50b9720 100644 --- a/comboot.doc +++ b/comboot.doc @@ -298,3 +298,13 @@ AX=0008h Close file will probably crash the system. +AX=0009h Call PXE Stack [PXELINUX ONLY] + + Input: AX 0009h + BX PXE function number + ES:DI PXE data buffer + Output: AX PXE return status code + + Invoke an arbitrary PXE stack function. On SYSLINUX/ISOLINUX, + this function returns with an error (CF=1) and no action is + taken. diff --git a/comboot.inc b/comboot.inc index e8ec32c..2804927 100644 --- a/comboot.inc +++ b/comboot.inc @@ -357,6 +357,17 @@ comapi_close: clc ret +; +; INT 22h AX=0009h Call PXE stack +; +%if IS_PXELINUX + call far [PXENVEntry] + clc + ret +%else + stc ; Function not available + ret +%endif align 2, db 0 int22_table: @@ -369,4 +380,5 @@ int22_table: dw comapi_open ; 0006 open file dw comapi_read ; 0007 read file dw comapi_close ; 0008 close file + dw comapi_pxecall ; 0009 call PXE stack int22_count equ ($-int22_table)/2 -- 2.7.4