[fallback] Try to execute the first new boot option.

I'm told rebooting is sometimes unreliable when called here, and we'll
get bootx64.efi loaded anyway.  I'll just assume that's true and try to
load the first option, since it's clearly what we'd prefer happens next.

Signed-off-by: Peter Jones <pjones@redhat.com>
Pass parameters correctly when booting.

Signed-off-by: Peter Jones <pjones@redhat.com>
Fix some minor type errors.

Signed-off-by: Peter Jones <pjones@redhat.com>
Remove some unnecessary code.

Signed-off-by: Peter Jones <pjones@redhat.com>
Add some error messages when things don't work.

Signed-off-by: Peter Jones <pjones@redhat.com>
Use the correct define on Open.

The value here doesn't actually change any, but we should still use the
right name.

Signed-off-by: Peter Jones <pjones@redhat.com>
Use MS ABI instead of terrible wrappers.

This means that we now require gnu-efi 3.0s

Signed-off-by: Peter Jones <pjones@redhat.com>
Bump version to 0.3

Signed-off-by: Peter Jones <pjones@redhat.com>
Don't use MMX and SSE registers, they aren't initialized.

GCC 4.8.0 will try to use these by default, and you'll wind up looping
across the (uninitialized!) trap handler for uninitialized instructions.

Signed-off-by: Peter Jones <pjones@redhat.com>
EFI_PXE_BASE_CODE_DHCPV6_PACKET is in gnu-efi-3.0t
Make sure all the Makefiles use the same arguments for mmx/sse/ms_abi.

Signed-off-by: Peter Jones <pjones@redhat.com>