lkml.org 
[lkml]   [2013]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/6] Add shared update_fdt() function for ARM/ARM64
From
Date
On Thu, 2013-10-03 at 10:52 +0100, Matt Fleming wrote:
> > +#if defined(CONFIG_ARM) || defined(CONFIG_ARM64)
> > +static efi_status_t update_fdt(efi_system_table_t *sys_table, void *orig_fdt,
> > + void *fdt, int new_fdt_size, char *cmdline_ptr,
> > + u64 initrd_addr, u64 initrd_size,
> > + efi_memory_desc_t *memory_map,
> > + unsigned long map_size, unsigned long desc_size,
> > + u32 desc_ver)
>
> Hmm... does this function really belong in efi-stub-helper.c? That file
> should be for architecture independent functionality only.
>

It isn't really arm-specific although arm is the only user right now.
We're using the FDT to pass EFI boot info that is passed in the boot
params block on x86. So potentially other architectures could use the
same code. How about making it someting like:

#ifdef ARCH_NEEDS_EFI_FDT
static efi_status_t update_fdt(efi_system_table_t *sys_table, void *orig_fdt,
...
#endif

so the architecture can decide whether to include it or not.

--Mark




\
 
 \ /
  Last update: 2013-10-03 16:01    [W:0.941 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site