Path: blob/master/arch/mips/boot/compressed/head.S
10818 views
/*1* This file is subject to the terms and conditions of the GNU General Public2* License. See the file "COPYING" in the main directory of this archive3* for more details.4*5* Copyright (C) 1994, 1995 Waldorf Electronics6* Written by Ralf Baechle and Andreas Busse7* Copyright (C) 1995 - 1999 Ralf Baechle8* Copyright (C) 1996 Paul M. Antoine9* Modified for DECStation and hence R3000 support by Paul M. Antoine10* Further modifications by David S. Miller and Harald Koerfgen11* Copyright (C) 1999 Silicon Graphics, Inc.12*/1314#include <asm/asm.h>15#include <asm/regdef.h>1617.set noreorder18.cprestore19LEAF(start)20start:21/* Save boot rom start args */22move s0, a023move s1, a124move s2, a225move s3, a32627/* Clear BSS */28PTR_LA a0, _edata29PTR_LA a2, _end301: sw zero, 0(a0)31bne a2, a0, 1b32addiu a0, a0, 43334PTR_LA a0, (.heap) /* heap address */35PTR_LA sp, (.stack + 8192) /* stack address */3637PTR_LA ra, 2f38PTR_LA k0, decompress_kernel39jr k040nop412:42move a0, s043move a1, s144move a2, s245move a3, s346PTR_LI k0, KERNEL_ENTRY47jr k048nop493:50b 3b51nop52END(start)5354.comm .heap,BOOT_HEAP_SIZE,455.comm .stack,4096*2,4565758