Hello CK HU,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/46383
to review the following change.
Change subject: soc/mediatek/mt8192: Set BL31 platform mt8192
......................................................................
soc/mediatek/mt8192: Set BL31 platform mt8192
Change-Id: I80d4a339b4a75647f55a699af447dcd362aab7b5
Signed-off-by: CK Hu <ck.hu(a)mediatek.com>
---
M src/soc/mediatek/mt8192/Makefile.inc
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/83/46383/1
diff --git a/src/soc/mediatek/mt8192/Makefile.inc b/src/soc/mediatek/mt8192/Makefile.inc
index 20acd24..8bc7b74 100644
--- a/src/soc/mediatek/mt8192/Makefile.inc
+++ b/src/soc/mediatek/mt8192/Makefile.inc
@@ -49,6 +49,8 @@
cbfs-files-y += $(DRAM_CBFS)
endif
+BL31_MAKEARGS += PLAT=mt8192
+
CPPFLAGS_common += -Isrc/soc/mediatek/mt8192/include
CPPFLAGS_common += -Isrc/soc/mediatek/common/include
--
To view, visit https://review.coreboot.org/c/coreboot/+/46383
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I80d4a339b4a75647f55a699af447dcd362aab7b5
Gerrit-Change-Number: 46383
Gerrit-PatchSet: 1
Gerrit-Owner: Yidi Lin <yidi.lin(a)mediatek.com>
Gerrit-Reviewer: CK HU <ck.hu(a)mediatek.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange
Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47602 )
Change subject: [WIP] arch/x86: Use intermediate .id section
......................................................................
[WIP] arch/x86: Use intermediate .id section
The strings in id.S are the same as those defined in
lib/version.c. Eliminating the calculation of reverse
offsets allows the references across linker sections and
dropping the duplicate strings in id.S.
TBD: util/cbfstool needs to post-process and invert
the offsets in .id section.
Change-Id: I35d3312336e9c66d657d2ca619cf30fd79e18fd4
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
---
M src/arch/x86/id.S
1 file changed, 4 insertions(+), 18 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/02/47602/1
diff --git a/src/arch/x86/id.S b/src/arch/x86/id.S
index 4ff397d..545232a 100644
--- a/src/arch/x86/id.S
+++ b/src/arch/x86/id.S
@@ -4,23 +4,9 @@
.section ".id", "a", @progbits
-ver:
- .asciz COREBOOT_VERSION
-vendor:
- .asciz CONFIG_MAINBOARD_VENDOR
-part:
- .asciz CONFIG_MAINBOARD_PART_NUMBER
-
-#if ENV_X86_64
-.long 0xffffffff - ver + 1 /* Reverse offset to the version */
-.long 0xffffffff - vendor + 1 /* Reverse offset to the vendor id */
-.long 0xffffffff - part + 1 /* Reverse offset to the part number */
-#else
-.long - ver /* Reverse offset to the version */
-.long - vendor /* Reverse offset to the vendor id */
-.long - part /* Reverse offset to the part number */
-#endif
-
-.long CONFIG_ROM_SIZE /* Size of this romimage */
+.long coreboot_version /* Reverse offset to the version */
+.long mainboard_vendor /* Reverse offset to the vendor id */
+.long mainboard_part_number /* Reverse offset to the part number */
+.long CONFIG_ROM_SIZE /* Size of this romimage */
.previous
--
To view, visit https://review.coreboot.org/c/coreboot/+/47602
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I35d3312336e9c66d657d2ca619cf30fd79e18fd4
Gerrit-Change-Number: 47602
Gerrit-PatchSet: 1
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-MessageType: newchange
Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47965 )
Change subject: arch/x86: Link gdt_init.S into bootblock
......................................................................
arch/x86: Link gdt_init.S into bootblock
Followup work forces gdtptr and gdt towards the top of
bootblock. They need to be realmode-addressable, i.e.
within top 64 KiB or same segment with .reset.
Change-Id: Ib6f23b2808d0a7e0d277d00a9b0f30c49fdefdd5
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
---
M src/arch/x86/Makefile.inc
M src/arch/x86/c_start.S
M src/cpu/x86/16bit/entry16.inc
M src/cpu/x86/32bit/entry32.inc
4 files changed, 4 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/47965/1
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index 5157564..00917f0 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -98,6 +98,7 @@
bootblock-$(CONFIG_COLLECT_TIMESTAMPS_TSC) += timestamp.c
bootblock-$(CONFIG_X86_TOP4G_BOOTMEDIA_MAP) += mmap_boot.c
bootblock-$(CONFIG_BOOTBLOCK_NORMAL) += bootblock_normal.c
+bootblock-y += gdt_init.S
bootblock-y += id.S
bootblock-$(CONFIG_HAVE_CF9_RESET) += cf9_reset.c
@@ -160,8 +161,6 @@
romstage-y += boot.c
romstage-y += post.c
-# gdt_init.S is included by entry32.inc when romstage is the first C
-# environment.
romstage-y += gdt_init.S
romstage-y += cpu_common.c
romstage-$(CONFIG_IDT_IN_EVERY_STAGE) += exception.c
diff --git a/src/arch/x86/c_start.S b/src/arch/x86/c_start.S
index a7af64f..8bebf87 100644
--- a/src/arch/x86/c_start.S
+++ b/src/arch/x86/c_start.S
@@ -142,10 +142,10 @@
/* This is the gdt for GCC part of coreboot.
* It is different from the gdt in ASM part of coreboot
- * which is defined in entry32.inc
+ * which is defined in gdt_init.S
*
* When the machine is initially started, we use a very simple
- * gdt from ROM (that in entry32.inc) which only contains those
+ * gdt from ROM (that in gdt_init.S) which only contains those
* entries we need for protected mode.
*
* When we're executing code from RAM, we want to do more complex
diff --git a/src/cpu/x86/16bit/entry16.inc b/src/cpu/x86/16bit/entry16.inc
index 2665cc6..5e90da1 100644
--- a/src/cpu/x86/16bit/entry16.inc
+++ b/src/cpu/x86/16bit/entry16.inc
@@ -124,7 +124,7 @@
ljmpl $ROM_CODE_SEG, $__protected_start
/**
- * The gdt is defined in entry32.inc, it has a 4 Gb code segment
+ * The gdt is defined in gdt_init.S, it has a 4 Gb code segment
* at 0x08, and a 4 GB data segment at 0x10;
*/
__gdtptr:
diff --git a/src/cpu/x86/32bit/entry32.inc b/src/cpu/x86/32bit/entry32.inc
index 8509448..873a809 100644
--- a/src/cpu/x86/32bit/entry32.inc
+++ b/src/cpu/x86/32bit/entry32.inc
@@ -4,7 +4,6 @@
#include <arch/rom_segs.h>
#include <cpu/x86/post_code.h>
-#include <arch/x86/gdt_init.S>
.code32
/*
--
To view, visit https://review.coreboot.org/c/coreboot/+/47965
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib6f23b2808d0a7e0d277d00a9b0f30c49fdefdd5
Gerrit-Change-Number: 47965
Gerrit-PatchSet: 1
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange