Commit d5791008 authored by Paul Mackerras's avatar Paul Mackerras

PPC32: Increase max kernel size in boot wrapper, fix compile warnings

parent 8588e951
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <stdarg.h> /* for va_ bits */ #include <stdarg.h> /* for va_ bits */
#include <linux/config.h> #include <linux/config.h>
#include <linux/string.h>
#include "zlib.h" #include "zlib.h"
#include "nonstdio.h" #include "nonstdio.h"
......
...@@ -21,12 +21,9 @@ extern FILE *stdin, *stdout; ...@@ -21,12 +21,9 @@ extern FILE *stdin, *stdout;
extern int getc(void); extern int getc(void);
extern int printf(const char *format, ...); extern int printf(const char *format, ...);
extern int strlen(const char *s);
extern int sprintf(char *str, const char *format, ...); extern int sprintf(char *str, const char *format, ...);
extern int tstc(void); extern int tstc(void);
extern void exit(void); extern void exit(void);
extern void *memcpy(void *dest, const void *src, int n);
extern void *memmove(void *dest, const void *src, int n);
extern void outb(int port, unsigned char val); extern void outb(int port, unsigned char val);
extern void putc(const char c); extern void putc(const char c);
extern void puthex(unsigned long val); extern void puthex(unsigned long val);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* as published by the Free Software Foundation; either version * as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#include <linux/string.h>
#include "nonstdio.h" #include "nonstdio.h"
#include "of1275.h" #include "of1275.h"
#include <asm/processor.h> #include <asm/processor.h>
...@@ -34,7 +35,7 @@ char *avail_high; ...@@ -34,7 +35,7 @@ char *avail_high;
#define RAM_FREE ((unsigned long)(_end+0x1000)&~0xFFF) #define RAM_FREE ((unsigned long)(_end+0x1000)&~0xFFF)
#define PROG_START 0x00010000 #define PROG_START 0x00010000
#define PROG_SIZE 0x00400000 /* 4MB */ #define PROG_SIZE 0x007f0000 /* 8MB */
#define SCRATCH_SIZE (128 << 10) #define SCRATCH_SIZE (128 << 10)
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* as published by the Free Software Foundation; either version * as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#include <linux/string.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/page.h> #include <asm/page.h>
...@@ -35,7 +36,7 @@ char *avail_high; ...@@ -35,7 +36,7 @@ char *avail_high;
#define RAM_END (RAM_START + 0x800000) /* only 8M mapped with BATs */ #define RAM_END (RAM_START + 0x800000) /* only 8M mapped with BATs */
#define PROG_START RAM_START #define PROG_START RAM_START
#define PROG_SIZE 0x00400000 #define PROG_SIZE 0x00700000
#define SCRATCH_SIZE (128 << 10) #define SCRATCH_SIZE (128 << 10)
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "zlib.h" #include "zlib.h"
#include "nonstdio.h" #include "nonstdio.h"
#include "of1275.h" #include "of1275.h"
#include <linux/string.h>
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
#include <asm/page.h> #include <asm/page.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* as published by the Free Software Foundation; either version * as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#include <linux/string.h>
#include "nonstdio.h" #include "nonstdio.h"
#include "of1275.h" #include "of1275.h"
#include <asm/processor.h> #include <asm/processor.h>
...@@ -30,7 +31,7 @@ char *avail_high; ...@@ -30,7 +31,7 @@ char *avail_high;
#define RAM_END (16 << 20) #define RAM_END (16 << 20)
#define PROG_START 0x00010000 #define PROG_START 0x00010000
#define PROG_SIZE 0x003f0000 #define PROG_SIZE 0x007f0000
#define SCRATCH_SIZE (128 << 10) #define SCRATCH_SIZE (128 << 10)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment