Re: [U-Boot] [PATCH 4/9] efi_loader: Add boot time services

2016-01-15 Thread Leif Lindholm
On Fri, Jan 15, 2016 at 01:13:15AM +0100, Alexander Graf wrote: > On 26.12.15 19:09, Leif Lindholm wrote: > >> diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c > >> new file mode 100644 > >> index 000..ed95962 > >> --- /dev/null > >> +++

Re: [U-Boot] [PATCH 4/9] efi_loader: Add boot time services

2016-01-15 Thread Leif Lindholm
On Fri, Jan 15, 2016 at 03:14:54PM +0100, Alexander Graf wrote: > On 15.01.16 14:02, Leif Lindholm wrote: > >>> U-Boot question: is gd->relocaddr always the offset from start of RAM? > >>> How does this work with gaps in memory map? > >> > >> U-Boot always relocates itself at TOM (or at least what

Re: [U-Boot] [PATCH 4/9] efi_loader: Add boot time services

2016-01-15 Thread Alexander Graf
On 15.01.16 14:02, Leif Lindholm wrote: > On Fri, Jan 15, 2016 at 01:13:15AM +0100, Alexander Graf wrote: >> On 26.12.15 19:09, Leif Lindholm wrote: diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c new file mode 100644 index 000..ed95962 ---

Re: [U-Boot] [PATCH 4/9] efi_loader: Add boot time services

2016-01-15 Thread Alexander Graf
On 15.01.16 15:21, Leif Lindholm wrote: > On Fri, Jan 15, 2016 at 03:14:54PM +0100, Alexander Graf wrote: >> On 15.01.16 14:02, Leif Lindholm wrote: > U-Boot question: is gd->relocaddr always the offset from start of RAM? > How does this work with gaps in memory map? U-Boot

Re: [U-Boot] [PATCH 4/9] efi_loader: Add boot time services

2016-01-14 Thread Alexander Graf
On 26.12.15 19:09, Leif Lindholm wrote: > On Tue, Dec 22, 2015 at 02:57:51PM +0100, Alexander Graf wrote: >> When an EFI application runs, it has access to a few descriptor and callback >> tables to instruct the EFI compliant firmware to do things for it. The bulk >> of those interfaces are

Re: [U-Boot] [PATCH 4/9] efi_loader: Add boot time services

2016-01-14 Thread Alexander Graf
On 26.12.15 19:09, Leif Lindholm wrote: > On Tue, Dec 22, 2015 at 02:57:51PM +0100, Alexander Graf wrote: [...] >> +break; >> +case 2: >> +/* Exact address, grant it. The addr is already in *memory. */ > > As far as I can tell, this is why GRUB works. Because it

Re: [U-Boot] [PATCH 4/9] efi_loader: Add boot time services

2015-12-26 Thread Leif Lindholm
On Tue, Dec 22, 2015 at 02:57:51PM +0100, Alexander Graf wrote: > When an EFI application runs, it has access to a few descriptor and callback > tables to instruct the EFI compliant firmware to do things for it. The bulk > of those interfaces are "boot time services". They handle all object >

Re: [U-Boot] [PATCH 4/9] efi_loader: Add boot time services

2015-12-22 Thread Alexander Graf
On 22.12.15 15:15, Andreas Färber wrote: > Am 22.12.2015 um 14:57 schrieb Alexander Graf: >> diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c >> new file mode 100644 >> index 000..ed95962 >> --- /dev/null >> +++ b/lib/efi_loader/efi_boottime.c > [...] >> +/* >> + *

Re: [U-Boot] [PATCH 4/9] efi_loader: Add boot time services

2015-12-22 Thread Andreas Färber
Am 22.12.2015 um 14:57 schrieb Alexander Graf: > diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c > new file mode 100644 > index 000..ed95962 > --- /dev/null > +++ b/lib/efi_loader/efi_boottime.c [...] > +/* > + * The "gd" pointer lives in a register on ARM and

[U-Boot] [PATCH 4/9] efi_loader: Add boot time services

2015-12-22 Thread Alexander Graf
When an EFI application runs, it has access to a few descriptor and callback tables to instruct the EFI compliant firmware to do things for it. The bulk of those interfaces are "boot time services". They handle all object management, and memory allocation. This patch adds support for the boot