|
@@ -19,6 +19,7 @@
|
19
|
19
|
FILE_LICENCE ( GPL2_OR_LATER );
|
20
|
20
|
|
21
|
21
|
#include <gpxe/uaccess.h>
|
|
22
|
+#include <gpxe/init.h>
|
22
|
23
|
#include <registers.h>
|
23
|
24
|
#include <biosint.h>
|
24
|
25
|
#include <pxe.h>
|
|
@@ -403,7 +404,7 @@ static uint8_t pxe_checksum ( void *data, size_t size ) {
|
403
|
404
|
* Initialise !PXE and PXENV+ structures
|
404
|
405
|
*
|
405
|
406
|
*/
|
406
|
|
-void pxe_init_structures ( void ) {
|
|
407
|
+static void pxe_init_structures ( void ) {
|
407
|
408
|
uint32_t rm_cs_phys = ( rm_cs << 4 );
|
408
|
409
|
uint32_t rm_ds_phys = ( rm_ds << 4 );
|
409
|
410
|
|
|
@@ -429,6 +430,11 @@ void pxe_init_structures ( void ) {
|
429
|
430
|
pxenv.Checksum -= pxe_checksum ( &pxenv, sizeof ( pxenv ) );
|
430
|
431
|
}
|
431
|
432
|
|
|
433
|
+/** PXE structure initialiser */
|
|
434
|
+struct init_fn pxe_init_fn __init_fn ( INIT_NORMAL ) = {
|
|
435
|
+ .initialise = pxe_init_structures,
|
|
436
|
+};
|
|
437
|
+
|
432
|
438
|
/**
|
433
|
439
|
* Start PXE NBP at 0000:7c00
|
434
|
440
|
*
|