stand/efi: Simpler construct
Use 'sizeof(long) == 8' for a compile time constant that can be used as an initializer rather than #ifdefs. Sponsored by: Netflix
This commit is contained in:
parent
9ca7ca92f3
commit
eca818c872
@ -316,7 +316,7 @@ bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp, bool exit_bs)
|
|||||||
vm_offset_t size;
|
vm_offset_t size;
|
||||||
char *rootdevname;
|
char *rootdevname;
|
||||||
int howto;
|
int howto;
|
||||||
bool is64;
|
bool is64 = sizeof(long) == 8;
|
||||||
#if defined(LOADER_FDT_SUPPORT)
|
#if defined(LOADER_FDT_SUPPORT)
|
||||||
vm_offset_t dtbp;
|
vm_offset_t dtbp;
|
||||||
int dtb_size;
|
int dtb_size;
|
||||||
@ -336,12 +336,6 @@ bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp, bool exit_bs)
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
#ifdef __LP64__
|
|
||||||
is64 = true;
|
|
||||||
#else
|
|
||||||
is64 = false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
howto = bi_getboothowto(args);
|
howto = bi_getboothowto(args);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user