aboutsummaryrefslogtreecommitdiffstats
path: root/core/pxelinux.asm
diff options
context:
space:
mode:
Diffstat (limited to 'core/pxelinux.asm')
-rw-r--r--core/pxelinux.asm18
1 files changed, 15 insertions, 3 deletions
diff --git a/core/pxelinux.asm b/core/pxelinux.asm
index 5e593d75..b4a61e94 100644
--- a/core/pxelinux.asm
+++ b/core/pxelinux.asm
@@ -218,6 +218,7 @@ pxe_unload_stack_pkt_len equ $-pxe_unload_stack_pkt
; BOOTP/DHCP packet buffer
section .bss16
+ global packet_buf
alignb 16
packet_buf resb 2048 ; Transfer packet
packet_buf_size equ $-packet_buf
@@ -448,6 +449,11 @@ close_file:
mov word [si],0 ; Not in use
.closed: ret
+%if 0
+searchdir:
+ pm_call searchdir_c
+ ret
+%else
;
; searchdir:
;
@@ -781,6 +787,8 @@ searchdir:
jmp .ret
+
+
%if GPXE
.gpxe:
push bx ; Socket pointer
@@ -813,6 +821,8 @@ searchdir:
jmp .got_file
%endif ; GPXE
+%endif
+
%if GPXE
;
; is_gpxe: Return CF=0 if and only if the buffer pointed to by
@@ -1190,7 +1200,7 @@ pxe_udp_read_pkt:
%if GPXE
section .data16
-
+ global gpxe_file_api_check
gpxe_file_api_check:
.status: dw 0 ; Status
.size: dw 20 ; Size in bytes
@@ -1200,7 +1210,8 @@ gpxe_file_api_check:
.flags: dd 0
section .bss16
- global gpxe_file_read
+ global gpxe_file_read, gpxe_get_file_size
+ global gpxe_file_open
gpxe_file_open:
.status: resw 1 ; Status
@@ -1259,6 +1270,7 @@ tftp_opts equ ($-tftp_opt_table)/6
; Error packet to return on TFTP protocol error
; Most of our errors are OACK parsing errors, so use that error code
;
+ global tftp_proto_err, tftp_proto_err_len
tftp_proto_err dw TFTP_ERROR ; ERROR packet
dw TFTP_EOPTNEG ; ERROR 8: OACK error
db 'TFTP protocol error', 0 ; Error message
@@ -1270,7 +1282,7 @@ ack_packet_buf: dw TFTP_ACK, 0 ; TFTP ACK packet
;
; IP information (initialized to "unknown" values)
- global MyIP, ServerIP, Netmask, Gateway
+ global MyIP, ServerIP, Netmask, Gateway, ServerPort
MyIP dd 0 ; My IP address
ServerIP dd 0 ; IP address of boot server
Netmask dd 0 ; Netmask of this subnet