summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorH. Peter Anvin2008-03-26 23:10:56 +0100
committerH. Peter Anvin2008-03-26 23:10:56 +0100
commitd62e89d776095767d075a75ceffc884ed267f685 (patch)
tree83e12ddb9e620e53a6293fe6067eefbd092bcd50 /src/arch
parent[DHCP] Save precious packet-aligned memory by copying DHCP responses (diff)
downloadipxe-d62e89d776095767d075a75ceffc884ed267f685.tar.gz
ipxe-d62e89d776095767d075a75ceffc884ed267f685.tar.xz
ipxe-d62e89d776095767d075a75ceffc884ed267f685.zip
[PXEXT] Add FILE_API_CHECK API function
Add FILE_API_CHECK to the PXEXT API so the NBP can query the availability and status of the API.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/interface/pxe/pxe_call.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/i386/interface/pxe/pxe_call.c b/src/arch/i386/interface/pxe/pxe_call.c
index b9c21ce5..5b307d40 100644
--- a/src/arch/i386/interface/pxe/pxe_call.c
+++ b/src/arch/i386/interface/pxe/pxe_call.c
@@ -97,6 +97,7 @@ union pxenv_call {
PXENV_EXIT_t ( * file_read ) ( struct s_PXENV_FILE_READ * );
PXENV_EXIT_t ( * get_file_size ) ( struct s_PXENV_GET_FILE_SIZE * );
PXENV_EXIT_t ( * file_exec ) ( struct s_PXENV_FILE_EXEC * );
+ PXENV_EXIT_t ( * file_api_check ) ( struct s_PXENV_FILE_API_CHECK * );
};
/**
@@ -299,6 +300,10 @@ __cdecl void pxe_api_call ( struct i386_all_regs *ix86 ) {
pxenv_call.file_exec = pxenv_file_exec;
param_len = sizeof ( pxenv_any.file_exec );
break;
+ case PXENV_FILE_API_CHECK:
+ pxenv_call.file_api_check = pxenv_file_api_check;
+ param_len = sizeof ( pxenv_any.file_api_check );
+ break;
default:
DBG ( "PXENV_UNKNOWN_%hx", opcode );
pxenv_call.unknown = pxenv_unknown;