Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80415
b: refs/heads/master
c: 818a08f
h: refs/heads/master
i:
  80413: ed1912b
  80411: b52add8
  80407: 5349f00
  80399: ca04fc3
  80383: e13e23c
v: v3
  • Loading branch information
Ian Campbell authored and Ingo Molnar committed Jan 30, 2008
1 parent 16a8b24 commit a012f64
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b3c0426a765dcae277ce9eb06d865a2f109cf48
refs/heads/master: 818a08f8a5681d54532af8263099bb5561afa0c1
20 changes: 13 additions & 7 deletions trunk/arch/x86/boot/compressed/misc_32.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
/*
* misc.c
*
* This is a collection of several routines from gzip-1.0.3
*
* This is a collection of several routines from gzip-1.0.3
* adapted for Linux.
*
* malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994
* puts by Nick Holloway 1993, better puts by Martin Mares 1995
* High loaded stuff by Hans Lermen & Werner Almesberger, Feb. 1996
*/

/*
* we have to be careful, because no indirections are allowed here, and
* paravirt_ops is a kind of one. As it will only run in baremetal anyway,
* we just keep it from happening
*/
#undef CONFIG_PARAVIRT
#include <linux/linkage.h>
#include <linux/vmalloc.h>
Expand Down Expand Up @@ -261,7 +266,7 @@ static void putstr(const char *s)
y--;
}
} else {
vidmem [ ( x + cols * y ) * 2 ] = c;
vidmem [(x + cols * y) * 2] = c;
if ( ++x >= cols ) {
x = 0;
if ( ++y >= lines ) {
Expand Down Expand Up @@ -345,7 +350,8 @@ static void error(char *x)
}

asmlinkage void decompress_kernel(void *rmode, unsigned long end,
uch *input_data, unsigned long input_len, uch *output)
uch *input_data, unsigned long input_len,
uch *output)
{
real_mode = rmode;

Expand All @@ -360,10 +366,10 @@ asmlinkage void decompress_kernel(void *rmode, unsigned long end,
lines = RM_SCREEN_INFO.orig_video_lines;
cols = RM_SCREEN_INFO.orig_video_cols;

window = output; /* Output buffer (Normally at 1M) */
free_mem_ptr = end; /* Heap */
window = output; /* Output buffer (Normally at 1M) */
free_mem_ptr = end; /* Heap */
free_mem_end_ptr = end + HEAP_SIZE;
inbuf = input_data; /* Input buffer */
inbuf = input_data; /* Input buffer */
insize = input_len;
inptr = 0;

Expand Down
13 changes: 7 additions & 6 deletions trunk/arch/x86/boot/compressed/misc_64.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* misc.c
*
* This is a collection of several routines from gzip-1.0.3
*
* This is a collection of several routines from gzip-1.0.3
* adapted for Linux.
*
* malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994
Expand Down Expand Up @@ -260,7 +260,7 @@ static void putstr(const char *s)
y--;
}
} else {
vidmem [ ( x + cols * y ) * 2 ] = c;
vidmem [(x + cols * y) * 2] = c;
if ( ++x >= cols ) {
x = 0;
if ( ++y >= lines ) {
Expand Down Expand Up @@ -344,7 +344,8 @@ static void error(char *x)
}

asmlinkage void decompress_kernel(void *rmode, unsigned long heap,
uch *input_data, unsigned long input_len, uch *output)
uch *input_data, unsigned long input_len,
uch *output)
{
real_mode = rmode;

Expand All @@ -359,8 +360,8 @@ asmlinkage void decompress_kernel(void *rmode, unsigned long heap,
lines = RM_SCREEN_INFO.orig_video_lines;
cols = RM_SCREEN_INFO.orig_video_cols;

window = output; /* Output buffer (Normally at 1M) */
free_mem_ptr = heap; /* Heap */
window = output; /* Output buffer (Normally at 1M) */
free_mem_ptr = heap; /* Heap */
free_mem_end_ptr = heap + HEAP_SIZE;
inbuf = input_data; /* Input buffer */
insize = input_len;
Expand Down

0 comments on commit a012f64

Please sign in to comment.