Gabe Black (gabeblack(a)chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3760
-gerrit
commit a74123eb15a1ca7b248e2ae4d48c6a16b044dce0
Author: Gabe Black <gabeblack(a)google.com>
Date: Sun Jul 7 13:52:37 2013 -0700
Move the HAVE_ARCH_* config options from src/arch/x86 to src/.
The options that keep track of whether there are arch versions of the standard
string functions shouldn't be in the arch/x86 directory since they apply to
all architectures. Move them into the higher level, shared Kconfig defaulting
to off. Then, in each applicable arch (currently all of them) they can be
selected to on.
Change-Id: I7ea64a583230fdc28773f17fd7cc23e0f0a5f3d6
Signed-off-by: Gabe Black <gabeblack(a)chromium.org>
---
src/Kconfig | 8 ++++++++
src/arch/armv7/Kconfig | 15 +++++++--------
src/arch/x86/Kconfig | 14 ++++++--------
3 files changed, 21 insertions(+), 16 deletions(-)
diff --git a/src/Kconfig b/src/Kconfig
index fdf40e5..14e7801 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -236,6 +236,14 @@ if ARCH_ARMV7
source src/arch/armv7/Kconfig
endif
+config HAVE_ARCH_MEMSET
+ bool
+ default n
+
+config HAVE_ARCH_MEMCPY
+ bool
+ default n
+
menu "Chipset"
comment "CPU"
diff --git a/src/arch/armv7/Kconfig b/src/arch/armv7/Kconfig
index 633c5ef..130acb4 100644
--- a/src/arch/armv7/Kconfig
+++ b/src/arch/armv7/Kconfig
@@ -1,5 +1,12 @@
menu "Architecture (armv7)"
+
+config ARM_ARCH_OPTIONS
+ bool
+ default y
+ select HAVE_ARCH_MEMSET
+ select HAVE_ARCH_MEMCPY
+
# Maximum reboot count
# TODO: Improve description.
config MAX_REBOOT_CNT
@@ -32,12 +39,4 @@ config UPDATE_IMAGE
is a suitable file for further processing.
The bootblock will not be modified.
-config HAVE_ARCH_MEMSET
- bool
- default y
-
-config HAVE_ARCH_MEMCPY
- bool
- default y
-
endmenu
diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index 95fc172..287e2bc 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -1,5 +1,11 @@
menu "Architecture (x86)"
+config X86_ARCH_OPTIONS
+ bool
+ default y
+ select HAVE_ARCH_MEMSET
+ select HAVE_ARCH_MEMCPY
+
config MARK_GRAPHICS_MEM_WRCOMB
bool "Mark graphics memory as write-combining."
default n
@@ -95,14 +101,6 @@ config CMOS_DEFAULT_FILE
config BOOTBLOCK_SOUTHBRIDGE_INIT
string
-config HAVE_ARCH_MEMSET
- bool
- default y
-
-config HAVE_ARCH_MEMCPY
- bool
- default y
-
config IOAPIC_INTERRUPTS_ON_FSB
bool
default y if !IOAPIC_INTERRUPTS_ON_APIC_SERIAL_BUS
Gabe Black (gabeblack(a)chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3760
-gerrit
commit 01cd9684034c03671c421b02369e6263f65cf8a8
Author: Gabe Black <gabeblack(a)google.com>
Date: Sun Jul 7 13:52:37 2013 -0700
Move the HAVE_ARCH_* config options from src/arch/x86 to src/.
The options that keep track of whether there are arch versions of the standard
string functions shouldn't be in the arch/x86 directory since they apply to
all architectures. Move them into the higher level, shared Kconfig defaulting
to off. Then, in each applicable arch (currently all of them) they can be
selected to on.
Change-Id: I7ea64a583230fdc28773f17fd7cc23e0f0a5f3d6
Signed-off-by: Gabe Black <gabeblack(a)chromium.org>
---
src/Kconfig | 8 ++++++++
src/arch/armv7/Kconfig | 7 +++++++
src/arch/x86/Kconfig | 14 ++++++--------
3 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/src/Kconfig b/src/Kconfig
index fdf40e5..14e7801 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -236,6 +236,14 @@ if ARCH_ARMV7
source src/arch/armv7/Kconfig
endif
+config HAVE_ARCH_MEMSET
+ bool
+ default n
+
+config HAVE_ARCH_MEMCPY
+ bool
+ default n
+
menu "Chipset"
comment "CPU"
diff --git a/src/arch/armv7/Kconfig b/src/arch/armv7/Kconfig
index 633c5ef..048f069 100644
--- a/src/arch/armv7/Kconfig
+++ b/src/arch/armv7/Kconfig
@@ -1,5 +1,12 @@
menu "Architecture (armv7)"
+
+config ARM_ARCH_OPTIONS
+ bool
+ default y
+ select HAVE_ARCH_MEMSET
+ select HAVE_ARCH_MEMCPY
+
# Maximum reboot count
# TODO: Improve description.
config MAX_REBOOT_CNT
diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index 95fc172..287e2bc 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -1,5 +1,11 @@
menu "Architecture (x86)"
+config X86_ARCH_OPTIONS
+ bool
+ default y
+ select HAVE_ARCH_MEMSET
+ select HAVE_ARCH_MEMCPY
+
config MARK_GRAPHICS_MEM_WRCOMB
bool "Mark graphics memory as write-combining."
default n
@@ -95,14 +101,6 @@ config CMOS_DEFAULT_FILE
config BOOTBLOCK_SOUTHBRIDGE_INIT
string
-config HAVE_ARCH_MEMSET
- bool
- default y
-
-config HAVE_ARCH_MEMCPY
- bool
- default y
-
config IOAPIC_INTERRUPTS_ON_FSB
bool
default y if !IOAPIC_INTERRUPTS_ON_APIC_SERIAL_BUS
Gabe Black (gabeblack(a)chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3759
-gerrit
commit 3501f5f6213249ada283d9b3fecc6dfc10a3c12c
Author: Gabe Black <gabeblack(a)google.com>
Date: Sun Jul 7 13:35:37 2013 -0700
arm: Add a W() macro for use in kernel assembler.
Some kernel assembly code uses a W macro to optionally add a .w to
instructions that need to be 32 bit thumb. The gnu assembler doesn't seem to
need the .w and won't assemble if it's provided.
Change-Id: I0a288177788b5c61810ee7bd3d2debea66835de2
Signed-off-by: Gabe Black <gabeblack(a)chromium.org>
---
src/arch/armv7/include/assembler.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/arch/armv7/include/assembler.h b/src/arch/armv7/include/assembler.h
index 7acf0f4..10363c4 100644
--- a/src/arch/armv7/include/assembler.h
+++ b/src/arch/armv7/include/assembler.h
@@ -58,3 +58,5 @@
* Cache aligned
*/
#define CALGN(code...) code
+
+#define W(instr) instr