Date:2010-01-17 16:38:35 (10 years 4 months ago)
Author:Xiangfu Liu
Commit:7c47ff2ec1fa049d2c64710a6ee4488dca6250e7
Message:From 4939c63a61175f87d93ac0164c7adb40e8410a47 Mon Sep 17 00:00:00 2001 Subject: [PATCH] ix upload zImage

Files: arch/mips/boot/compressed/head.S (1 diff)
arch/mips/boot/compressed/misc.c (1 diff)

Change Details

arch/mips/boot/compressed/head.S
55 */
66
77#include <asm/asm.h>
8#include <asm/cacheops.h>
98#include <asm/cachectl.h>
109#include <asm/regdef.h>
1110
arch/mips/boot/compressed/misc.c
103103
104104#include "../../../../lib/inflate.c"
105105
106static void *malloc(int size)
107{
108    void *p;
109
110    if (size <0) error("Malloc error\n");
111    if (free_mem_ptr == 0) error("Memory error\n");
112
113    free_mem_ptr = (free_mem_ptr + 3) & ~3; /* Align */
114
115    p = (void *)free_mem_ptr;
116    free_mem_ptr += size;
117
118    if (free_mem_ptr >= free_mem_end_ptr)
119        error("\nOut of memory\n");
120
121    return p;
122}
123
124static void free(void *where)
125{ /* Don't care */
126}
127
128106static void gzip_mark(void **ptr)
129107{
130108    *ptr = (void *) free_mem_ptr;

Archive Download the corresponding diff file



interactive