diff options
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/boot/compressed/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/boot/compressed/misc.c b/arch/x86_64/boot/compressed/misc.c index b38d5b8b5fb8..0e10fd84c7cc 100644 --- a/arch/x86_64/boot/compressed/misc.c +++ b/arch/x86_64/boot/compressed/misc.c | |||
@@ -83,7 +83,7 @@ static unsigned char *real_mode; /* Pointer to real-mode data */ | |||
83 | #endif | 83 | #endif |
84 | #define SCREEN_INFO (*(struct screen_info *)(real_mode+0)) | 84 | #define SCREEN_INFO (*(struct screen_info *)(real_mode+0)) |
85 | 85 | ||
86 | extern char input_data[]; | 86 | extern unsigned char input_data[]; |
87 | extern int input_len; | 87 | extern int input_len; |
88 | 88 | ||
89 | static long bytes_out = 0; | 89 | static long bytes_out = 0; |
@@ -288,7 +288,7 @@ void setup_normal_output_buffer(void) | |||
288 | #else | 288 | #else |
289 | if ((ALT_MEM_K > EXT_MEM_K ? ALT_MEM_K : EXT_MEM_K) < 1024) error("Less than 2MB of memory"); | 289 | if ((ALT_MEM_K > EXT_MEM_K ? ALT_MEM_K : EXT_MEM_K) < 1024) error("Less than 2MB of memory"); |
290 | #endif | 290 | #endif |
291 | output_data = (char *)__PHYSICAL_START; /* Normally Points to 1M */ | 291 | output_data = (unsigned char *)__PHYSICAL_START; /* Normally Points to 1M */ |
292 | free_mem_end_ptr = (long)real_mode; | 292 | free_mem_end_ptr = (long)real_mode; |
293 | } | 293 | } |
294 | 294 | ||
@@ -305,7 +305,7 @@ void setup_output_buffer_if_we_run_high(struct moveparams *mv) | |||
305 | #else | 305 | #else |
306 | if ((ALT_MEM_K > EXT_MEM_K ? ALT_MEM_K : EXT_MEM_K) < (3*1024)) error("Less than 4MB of memory"); | 306 | if ((ALT_MEM_K > EXT_MEM_K ? ALT_MEM_K : EXT_MEM_K) < (3*1024)) error("Less than 4MB of memory"); |
307 | #endif | 307 | #endif |
308 | mv->low_buffer_start = output_data = (char *)LOW_BUFFER_START; | 308 | mv->low_buffer_start = output_data = (unsigned char *)LOW_BUFFER_START; |
309 | low_buffer_end = ((unsigned int)real_mode > LOW_BUFFER_MAX | 309 | low_buffer_end = ((unsigned int)real_mode > LOW_BUFFER_MAX |
310 | ? LOW_BUFFER_MAX : (unsigned int)real_mode) & ~0xfff; | 310 | ? LOW_BUFFER_MAX : (unsigned int)real_mode) & ~0xfff; |
311 | low_buffer_size = low_buffer_end - LOW_BUFFER_START; | 311 | low_buffer_size = low_buffer_end - LOW_BUFFER_START; |