:: commit 9386536c64992413c58bfdf98a5215ec76771718

mintsuki <mintsuki@protonmail.com> — 2021-03-13 08:45

parents: 7ee7e3425c

uefi: We don't do PXE

diff --git a/stage23/fs/file.s2.c b/stage23/fs/file.s2.c
index a369bf2d..aae2c727 100644
--- a/stage23/fs/file.s2.c
+++ b/stage23/fs/file.s2.c
@@ -26,6 +26,7 @@ bool fs_get_guid(struct guid *guid, struct volume *part) {
 int fopen(struct file_handle *ret, struct volume *part, const char *filename) {
     ret->is_memfile = false;
 
+#if defined (bios)
     if (part->pxe) {
         struct tftp_file_handle *fd = ext_mem_alloc(sizeof(struct tftp_file_handle));
 
@@ -39,6 +40,7 @@ int fopen(struct file_handle *ret, struct volume *part, const char *filename) {
 
         return 0;
     }
+#endif
 
     if (iso9660_check_signature(part)) {
         struct iso9660_file_handle *fd = ext_mem_alloc(sizeof(struct iso9660_file_handle));
tab: 248 wrap: offon