Merge from Etherboot 5.4
[people/dverkamp/gpxe.git] / src / arch / i386 / core / elf.c
index 40a18a1..fbb4032 100644 (file)
@@ -74,7 +74,7 @@ struct Elf_Bhdr *prepare_boot_params(void *header)
        notes.nf1.n_descsz = sizeof(notes.nf1_bootp_data);
        notes.nf1.n_type   = EB_BOOTP_DATA;
        CP(notes.nf1_name,   EB_PARAM_NOTE);
-       notes.nf1_bootp_data = virt_to_phys(BOOTP_DATA_ADDR);
+       notes.nf1_bootp_data = virt_to_phys(&bootp_data);
 
        notes.nf2.n_namesz = sizeof(EB_PARAM_NOTE);
        notes.nf2.n_descsz = sizeof(notes.nf2_header);