u-boot-brain/arch
Masahiro Yamada 2fa863e9aa x86: limit the fs segment to the pointer size
The fs segment is only used to get the global data pointer.
If it is accessed beyond sizeof(new_gd->arch.gd_addr), it is a bug.

To specify the byte-granule limit size, drop the G bit, so the
flag field is 0x8093 instead of 0xc093, and set the limit field
to sizeof(new_gd->arch.gd_addr) - 1.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: fixed the comments about FS segement]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
2020-02-04 01:19:26 +08:00
..
arc common: Move reset_cpu() to the CPU header 2020-01-24 23:06:49 +05:30
arm Merge tag 'u-boot-rockchip-20200130' of https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip 2020-02-01 15:31:04 -05:00
m68k common: Move clock functions into a new file 2020-01-24 23:06:48 +05:30
microblaze common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
mips common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
nds32 asm: dma-mapping.h: Fix dma mapping functions 2020-01-25 12:04:36 -05:00
nios2 common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
powerpc common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
riscv asm: dma-mapping.h: Fix dma mapping functions 2020-01-25 12:04:36 -05:00
sandbox common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
sh common: Move reset_cpu() to the CPU header 2020-01-24 23:06:49 +05:30
x86 x86: limit the fs segment to the pointer size 2020-02-04 01:19:26 +08:00
xtensa common: Move relocate_code() to init.h 2020-01-24 23:06:48 +05:30
.gitignore
Kconfig x86: Enable pinctrl in SPL and TPL 2019-12-15 11:44:24 +08:00