]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Drop CFG_SYS_STACK_SIZE
authorSimon Glass <sjg@chromium.org>
Mon, 31 Jul 2023 03:01:47 +0000 (21:01 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 9 Aug 2023 15:31:12 +0000 (23:31 +0800)
This is only used in one file and the value is the same for both boards
which define it. Use the fixed value of 32KB and drop the CFG. This will
allow removal of the config.h files.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> # Intel Edison
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/physmem.c
include/configs/edison.h
include/configs/x86-common.h

index 1eb97ac5bb17b664763983853d4f7de49d6bad4e..382f768149f448ea9b63aebf11cae005c85f0cd5 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/cpu.h>
 #include <asm/global_data.h>
 #include <linux/compiler.h>
+#include <linux/sizes.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -144,7 +145,7 @@ static void x86_phys_memset_page(phys_addr_t map_addr, uintptr_t offset, int c,
 
        /* Make sure the window is below U-Boot. */
        assert(window + LARGE_PAGE_SIZE <
-              gd->relocaddr - CONFIG_SYS_MALLOC_LEN - CFG_SYS_STACK_SIZE);
+              gd->relocaddr - CONFIG_SYS_MALLOC_LEN - SZ_32K);
        /* Map the page into the window and then memset the appropriate part. */
        x86_phys_map_page(window, map_addr, 1);
        memset((void *)(window + offset), c, size);
index 455a889b64c11c038757a3109310b8b2b8b46f5b..558c74d7b46990c52609bc7136a085a440f6f373 100644 (file)
@@ -8,8 +8,4 @@
 
 #include <asm/ibmpc.h>
 
-/* Miscellaneous configurable options */
-
-#define CFG_SYS_STACK_SIZE                     (32 * 1024)
-
 #endif
index c1c5a09a35c71454e303b242656bfce7a1778c7a..608c5ba7b0a6fd57ea732654c6ba30cccffa17f4 100644 (file)
 #ifndef __CONFIG_X86_COMMON_H
 #define __CONFIG_X86_COMMON_H
 
-/*-----------------------------------------------------------------------
- * CPU Features
- */
-
-#define CFG_SYS_STACK_SIZE                     (32 * 1024)
-
-/*-----------------------------------------------------------------------
- * Environment configuration
- */
-
 /*-----------------------------------------------------------------------
  * USB configuration
  */