coreboot-kgpe-d16/src/include
Furquan Shaikh 1908340b69 memranges: Change align attribute to be log2 of required alignment
This change updates the align attribute of memranges to be represented
as log2 of the required alignment. This makes it consistent with how
alignment is stored in struct resource as well.

Additionally, since memranges only allow power of 2 alignments, this
change allows getting rid of checks at runtime and hence failure cases
for non-power of 2 alignments.

This change also updates the type of align to be unsigned char.

BUG=b:149186922

Signed-off-by: Furquan Shaikh <furquan@google.com>
Change-Id: Ie4d3868cdff55b2c7908b9b3ccd5f30a5288e62f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39810
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2020-03-30 08:44:53 +00:00
..
boot src: Use 'include <boot/coreboot_tables.h>' when appropriate 2019-10-27 17:48:30 +00:00
console create stdio.h and stdarg.h for {,v}snprintf 2020-03-25 23:38:46 +00:00
cpu src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
device Rework map_oprom_vendev to add revision check and mapping 2020-03-25 10:49:08 +00:00
efi src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
pc80 src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
smp coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
superio src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
sys
adainit.h src/include: Fix typos 2020-01-08 12:57:31 +00:00
assert.h assert.h: add assertions with descriptive failures 2020-03-18 22:14:46 +00:00
b64_decode.h src/include: Fix typos 2020-01-08 12:57:31 +00:00
base3.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
bcd.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
boardid.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
boot_device.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
bootblock_common.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
bootmem.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
bootmode.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
bootsplash.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
bootstate.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
cbfs.h src/device: Add option to look at revision in option roms 2020-03-25 10:48:21 +00:00
cbmem.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
cper.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
crc_byte.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
ctype.h add ctype.h header 2019-06-24 21:15:14 +00:00
delay.h cpu/x86/lapic: Refactor timer_fsb() 2019-09-19 09:28:55 +00:00
device_tree.h src/include: Fix typos 2020-01-18 10:55:45 +00:00
dimm_info_util.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
edid.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
elog.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
endian.h Drop ROMCC code and header guards 2019-12-19 03:25:05 +00:00
fallback.h drivers/pc80/rtc: Clean up some headers 2020-01-07 18:40:02 +00:00
fit.h fit: Add overlay support 2019-06-21 09:22:31 +00:00
fit_payload.h
fmap.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
gic.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
gpio.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
halt.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
imd.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
inttypes.h include, lib: Add <inttypes.h> printf macros 2019-08-10 08:47:08 +00:00
ip_checksum.h
kconfig.h kconfig: Drop IS_ENABLED() macro 2019-06-04 13:33:40 +00:00
lib.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
list.h
main_decl.h
memlayout.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
memory_info.h src/soc/intel/common/smbios: Add addtional infos to dimm_info 2019-06-06 11:32:52 +00:00
memrange.h memranges: Change align attribute to be log2 of required alignment 2020-03-30 08:44:53 +00:00
mrc_cache.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
nhlt.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
option.h drivers/pc80/rtc: Move sanitize_cmos() 2020-01-10 15:28:41 +00:00
program_loading.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
ramdetect.h lib: ramdetect: Register exception handlers for ARMv8 2019-08-26 07:14:03 +00:00
random.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
reg_script.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
region_file.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
reset.h reset: Finalize move to new API 2018-10-31 15:29:42 +00:00
rmodule.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
romstage_handoff.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
rtc.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
rules.h kill CAR_GLOBAL_MIGRATION leftovers 2019-11-30 16:12:04 +00:00
sar.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
sdram_mode.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
smbios.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
smmstore.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
spd.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
spd_bin.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
spd_ddr2.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
spi-generic.h src/include: Fix typos 2020-01-18 10:55:45 +00:00
spi_bitbang.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
spi_flash.h drivers/spi/spi_flash: remove spi flash names 2020-01-28 14:44:37 +00:00
spi_sdcard.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
stage_cache.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
stdarg.h create stdio.h and stdarg.h for {,v}snprintf 2020-03-25 23:38:46 +00:00
stdbool.h Drop ROMCC code and header guards 2019-12-19 03:25:05 +00:00
stddef.h Drop ROMCC code and header guards 2019-12-19 03:25:05 +00:00
stdint.h include/stdint.h: Remove old reference to ROMCC 2020-02-25 10:17:49 +00:00
stdio.h create stdio.h and stdarg.h for {,v}snprintf 2020-03-25 23:38:46 +00:00
stdlib.h lib/malloc: Implement a simple free() only for last malloc() 2020-01-02 18:22:53 +00:00
string.h create stdio.h and stdarg.h for {,v}snprintf 2020-03-25 23:38:46 +00:00
swab.h Drop ROMCC code and header guards 2019-12-19 03:25:05 +00:00
symbols.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
thread.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
timer.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
timestamp.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
trace.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
types.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
uuid.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00
vbe.h src: Use 'include <boot/coreboot_tables.h>' when appropriate 2019-10-27 17:48:30 +00:00
version.h ACPI: Correct asl_compiler_revision value 2019-02-21 19:07:31 +00:00
watchdog.h coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
wrdd.h src (minus soc and mainboard): Remove copyright notices 2020-03-17 18:26:34 +00:00