Changeset 6598
- Timestamp:
- 2007-03-18T10:32:22+01:00 (11 years ago)
- Location:
- trunk/target/linux/generic-2.6/image/lzma-loader/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/target/linux/generic-2.6/image/lzma-loader/src/Makefile
r6502 r6598 5 5 # See /LICENSE for more information. 6 6 # 7 RAMSTART = 0x80000000 8 RAMSIZE = 0x00100000 # 1MB 7 9 LOADADDR = 0x80400000 # RAM start + 4M 8 10 KERNEL_ENTRY = 0x80001000 9 RAMSIZE = 0x00100000 # 1MB10 11 IMAGE_COPY:=0 11 12 … … 13 14 14 15 OBJCOPY:= $(CROSS_COMPILE)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S 15 CFLAGS := -fno-builtin -Os -G 0 -ffunction-sections -mno-abicalls -fno-pic -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Wall -DRAMS IZE=${RAMSIZE} -DKERNEL_ENTRY=${KERNEL_ENTRY} -D_LZMA_IN_CB16 CFLAGS := -fno-builtin -Os -G 0 -ffunction-sections -mno-abicalls -fno-pic -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -Wall -DRAMSTART=${RAMSTART} -DRAMSIZE=${RAMSIZE} -DKERNEL_ENTRY=${KERNEL_ENTRY} -D_LZMA_IN_CB 16 17 ifeq ($(IMAGE_COPY),1) 17 18 CFLAGS += -DLOADADDR=${LOADADDR} -DIMAGE_COPY=1 -
trunk/target/linux/generic-2.6/image/lzma-loader/src/decompress.c
r6502 r6598 97 97 } 98 98 99 static char *buffer = (char *)0x80C00000; 99 /* This puts lzma workspace 128k below RAM end. 100 * That should be enough for both lzma and stack 101 */ 102 static char *buffer = (char *)(RAMSTART + RAMSIZE - 0x00020000); 100 103 extern char lzma_start[]; 101 104 extern char lzma_end[]; -
trunk/target/linux/generic-2.6/image/lzma-loader/src/start.S
r6502 r6598 42 42 43 43 /* set up stack */ 44 li sp, 0xa0000000+ RAMSIZE - 1644 li sp, RAMSTART + RAMSIZE - 16 45 45 46 46 #ifdef IMAGE_COPY
Note: See TracChangeset
for help on using the changeset viewer.