All of lore.kernel.org
 help / color / mirror / Atom feed
* A few EFI code questions
@ 2014-12-03 21:02 Daniel Kiper
  2014-12-04  9:35 ` Jan Beulich
  0 siblings, 1 reply; 13+ messages in thread
From: Daniel Kiper @ 2014-12-03 21:02 UTC (permalink / raw)
  To: andrew.cooper3, ian.campbell, jbeulich, konrad.wilk, keir,
	roy.franz, stefano.stabellini, xen-devel

Hey,

1) Why is there in EFI code so many functions (e.g. efi_start(),
   efi_arch_edd(), ...) with local variables declared as a static?
   Though some of them have also regular local variables. I do not
   why it was decided that some of them must be the static and
   some of do not. It is a bit confusing. As I can see there is
   only one place which have to have local static (place_string()).
   Other seems to me as thing to save space on the stack but I do
   not think we need that. According to UEFI spec there will be
   "128 KiB or more of available stack space" when system runs in
   boot services mode. It is a lot of space. So, I think we can
   safely convert most of local static variables to normal local
   variables. Am I right?

2) I am going to add EDID support to EFI code. Should it be x86
   specific code or common one? As I can see EDID is defined as
   part of GOP so I think that EDID code should be placed in
   xen/common/efi/boot.c.

3) Should not we change xen/arch/*/efi/efi-boot.h to
   xen/arch/*/efi/efi-boot.c? efi-boot.h contains more
   code than definitions, declarations and short static
   functions. So, I think that it is more regular *.c file
   than header file.

Daniel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-12-08  8:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-03 21:02 A few EFI code questions Daniel Kiper
2014-12-04  9:35 ` Jan Beulich
2014-12-04 21:22   ` Roy Franz
2014-12-05  7:37     ` Jan Beulich
2014-12-05  9:33       ` Ian Campbell
2014-12-05  9:47         ` Jan Beulich
2014-12-05  9:52           ` Ian Campbell
2014-12-05 14:51   ` Daniel Kiper
2014-12-05 15:00     ` Jan Beulich
2014-12-05 16:40       ` Daniel Kiper
2014-12-05 17:00         ` Jan Beulich
2014-12-05 17:59           ` Daniel Kiper
2014-12-08  8:55             ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.