diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-20 22:37:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-05-20 22:37:44 +0000 |
commit | 8cb464f1c028f6167531e836c289fa61ea372093 (patch) | |
tree | b0960a9f5156c0946d88ae454e8370f652ecec37 /sys/arch/amd64 | |
parent | fbeb82e76b47d9b664f28df8429022494d0fa4b3 (diff) |
push a BOOTARG_BOOTMAC (what PXE says is the MAC address of the interface
we are booting from) out towards the kernel; tested by reyk
crank the version too
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/stand/libsa/pxe.c | 8 | ||||
-rw-r--r-- | sys/arch/amd64/stand/pxeboot/conf.c | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/arch/amd64/stand/libsa/pxe.c b/sys/arch/amd64/stand/libsa/pxe.c index c11b3a00086..58de9a8d305 100644 --- a/sys/arch/amd64/stand/libsa/pxe.c +++ b/sys/arch/amd64/stand/libsa/pxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pxe.c,v 1.3 2005/03/13 22:31:49 tom Exp $ */ +/* $OpenBSD: pxe.c,v 1.4 2006/05/20 22:37:43 deraadt Exp $ */ /* $NetBSD: pxe.c,v 1.5 2003/03/11 18:29:00 drochner Exp $ */ /* @@ -97,6 +97,9 @@ #include <lib/libsa/net.h> #include <lib/libsa/bootp.h> +#include <stand/boot/bootarg.h> +#include <machine/biosvar.h> + #include "pxeboot.h" #include "pxe.h" #include "pxe_netif.h" @@ -221,12 +224,13 @@ pxe_netif_open() pxe_call(PXENV_UDP_OPEN); if (uo->status != PXENV_STATUS_SUCCESS) { - printf("pxe_netif_open: PXENV_UDP_OPEN failed: 0x%x\n", + printf("\npxe_netif_open: PXENV_UDP_OPEN failed: 0x%x\n", uo->status); return -1; } bcopy(bootplayer.CAddr, desc.myea, ETHER_ADDR_LEN); + addbootarg(BOOTARG_BOOTMAC, sizeof(bios_bootmac_t), bootplayer.CAddr); /* * Since the PXE BIOS has already done DHCP, make sure we diff --git a/sys/arch/amd64/stand/pxeboot/conf.c b/sys/arch/amd64/stand/pxeboot/conf.c index 8856243779d..b560722bddb 100644 --- a/sys/arch/amd64/stand/pxeboot/conf.c +++ b/sys/arch/amd64/stand/pxeboot/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.9 2006/01/02 00:26:29 tom Exp $ */ +/* $OpenBSD: conf.c,v 1.10 2006/05/20 22:37:43 deraadt Exp $ */ /* * Copyright (c) 2004 Tom Cosgrove @@ -45,7 +45,7 @@ #include "pxeboot.h" #include "pxe_net.h" -const char version[] = "1.08"; +const char version[] = "1.09"; int debug = 0; #undef _TEST |