OSDN Git Service

rx: reduce memory config
authorYoshinori Sato <yo-satoh@sios.com>
Fri, 28 Jan 2022 12:30:50 +0000 (21:30 +0900)
committerYoshinori Sato <yo-satoh@sios.com>
Sat, 29 Jan 2022 07:42:49 +0000 (16:42 +0900)
Signed-off-by: Yoshinori Sato <yo-satoh@sios.com>
arch/rx/Kconfig
arch/rx/kernel/vmlinux.lds.S

index d9baaaa..ce5ef87 100644 (file)
@@ -159,16 +159,13 @@ config RX_ICUA
 config CPU_LITTLE_ENDIAN
        def_bool y
 
-menu "memory map"
 config RAMSTART
-       hex "RAM start address"
-config RAMEND
-       hex "RAM end address"
-config INITIAL_STACK
-       hex "Initial stack address"
+       hex
+         default 0x01000000 if RX_QEMU
+
 config BOOT_LINK_OFFSET
        hex "Link offset of zImage"
-endmenu
+         default 0x00800000
 
 endmenu
 
index d042b87..19a7506 100644 (file)
@@ -6,11 +6,6 @@
 #define EXCEPTION_FIXED 0xffffff80
 
 RAMTOP = CONFIG_RAMSTART;
-RAMSIZE = CONFIG_RAMEND - CONFIG_RAMSTART;
-
-#if defined(CONFIG_RX_GDB_SIM)
-/*INPUT(romfs.o)*/
-#endif
 
 jiffies = jiffies_64;
 
@@ -52,7 +47,6 @@ SECTIONS
        _ebss = .;              /* uClinux MTD sucks */
        _end = . ;
        _ramstart = .;
-       . = RAMTOP + RAMSIZE;
        _ramend = .;
        DISCARDS
 }