Consolidate four efi_next_descriptor() definitions.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
35a22bcbf7
commit
944e0bab86
@ -637,9 +637,6 @@ S_vmtotal(size_t l2, void *p)
|
||||
}
|
||||
|
||||
#ifdef __amd64__
|
||||
#define efi_next_descriptor(ptr, size) \
|
||||
((struct efi_md *)(((uint8_t *) ptr) + size))
|
||||
|
||||
static int
|
||||
S_efi_map(size_t l2, void *p)
|
||||
{
|
||||
|
@ -1056,9 +1056,6 @@ bios_add_smap_entries(struct bios_smap *smapbase, u_int32_t smapsize,
|
||||
}
|
||||
}
|
||||
|
||||
#define efi_next_descriptor(ptr, size) \
|
||||
((struct efi_md *)(((uint8_t *) ptr) + size))
|
||||
|
||||
static void
|
||||
add_efi_map_entries(struct efi_map_header *efihdr, vm_paddr_t *physmap,
|
||||
int *physmap_idx)
|
||||
|
@ -1398,9 +1398,6 @@ set_stackptrs(int cpu)
|
||||
#endif
|
||||
|
||||
#ifdef EFI
|
||||
#define efi_next_descriptor(ptr, size) \
|
||||
((struct efi_md *)(((uint8_t *) ptr) + size))
|
||||
|
||||
static void
|
||||
add_efi_map_entries(struct efi_map_header *efihdr, struct mem_region *mr,
|
||||
int *mrcnt)
|
||||
|
@ -699,9 +699,6 @@ add_fdt_mem_regions(struct mem_region *mr, int mrcnt, vm_paddr_t *physmap,
|
||||
}
|
||||
#endif
|
||||
|
||||
#define efi_next_descriptor(ptr, size) \
|
||||
((struct efi_md *)(((uint8_t *) ptr) + size))
|
||||
|
||||
static void
|
||||
add_efi_map_entries(struct efi_map_header *efihdr, vm_paddr_t *physmap,
|
||||
u_int *physmap_idxp)
|
||||
|
@ -90,6 +90,9 @@ struct efi_md {
|
||||
#define EFI_MD_ATTR_RT 0x8000000000000000UL
|
||||
};
|
||||
|
||||
#define efi_next_descriptor(ptr, size) \
|
||||
((struct efi_md *)(((uint8_t *)(ptr)) + (size)))
|
||||
|
||||
struct efi_tm {
|
||||
uint16_t tm_year; /* 1998 - 20XX */
|
||||
uint8_t tm_mon; /* 1 - 12 */
|
||||
|
Loading…
Reference in New Issue
Block a user