misc.c (05668381140309088443bf5dc53add4104610fbb) | misc.c (9d4436a6fbc8c5eccdfcb8f5884e0a7b4a57f6d2) |
---|---|
1/* 2 * arch/sh/boot/compressed/misc.c 3 * 4 * This is a collection of several routines from gzip-1.0.3 5 * adapted for Linux. 6 * 7 * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994 8 * 9 * Adapted for SH by Stuart Menefy, Aug 1999 10 * 11 * Modified to use standard LinuxSH BIOS by Greg Banks 7Jul2000 12 */ 13 14#include <asm/uaccess.h> | 1/* 2 * arch/sh/boot/compressed/misc.c 3 * 4 * This is a collection of several routines from gzip-1.0.3 5 * adapted for Linux. 6 * 7 * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994 8 * 9 * Adapted for SH by Stuart Menefy, Aug 1999 10 * 11 * Modified to use standard LinuxSH BIOS by Greg Banks 7Jul2000 12 */ 13 14#include <asm/uaccess.h> |
15#include <asm/addrspace.h> |
|
15#ifdef CONFIG_SH_STANDARD_BIOS 16#include <asm/sh_bios.h> 17#endif 18 19/* 20 * gzip declarations 21 */ 22 --- 200 unchanged lines hidden (view full) --- 223 224#define STACK_SIZE (4096) 225long user_stack [STACK_SIZE]; 226long* stack_start = &user_stack[STACK_SIZE]; 227 228void decompress_kernel(void) 229{ 230 output_data = 0; | 16#ifdef CONFIG_SH_STANDARD_BIOS 17#include <asm/sh_bios.h> 18#endif 19 20/* 21 * gzip declarations 22 */ 23 --- 200 unchanged lines hidden (view full) --- 224 225#define STACK_SIZE (4096) 226long user_stack [STACK_SIZE]; 227long* stack_start = &user_stack[STACK_SIZE]; 228 229void decompress_kernel(void) 230{ 231 output_data = 0; |
231 output_ptr = (unsigned long)&_text+0x20001000; | 232 output_ptr = P2SEGADDR((unsigned long)&_text+0x1000); |
232 free_mem_ptr = (unsigned long)&_end; 233 free_mem_end_ptr = free_mem_ptr + HEAP_SIZE; 234 235 makecrc(); 236 puts("Uncompressing Linux... "); 237 gunzip(); 238 puts("Ok, booting the kernel.\n"); 239} | 233 free_mem_ptr = (unsigned long)&_end; 234 free_mem_end_ptr = free_mem_ptr + HEAP_SIZE; 235 236 makecrc(); 237 puts("Uncompressing Linux... "); 238 gunzip(); 239 puts("Ok, booting the kernel.\n"); 240} |