X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=second%2Ffs_of.c;h=0d554c56c571f5cf9f46aa40693f94a791393bb4;hp=76474ee29744dc85158efee7b14bfb6fb63f9628;hb=0c0a18b7a1a6b44963da4469d21428e76f9c2b30;hpb=a2b7bb030d78c61ef150f8c9f6926c9558a6f1b5 diff --git a/second/fs_of.c b/second/fs_of.c index 76474ee..0d554c5 100644 --- a/second/fs_of.c +++ b/second/fs_of.c @@ -44,9 +44,8 @@ #include "errors.h" #include "debug.h" -#define LOAD_BUFFER_POS 0x600000 -/* this cannot be safely increased any further */ -#define LOAD_BUFFER_SIZE 0x600000 +#define LOAD_BUFFER_POS 0x00000000 +#define LOAD_BUFFER_SIZE 0x01000000 static int of_open(struct boot_file_t* file, const char* dev_name, struct partition_t* part, const char* file_name); @@ -166,7 +165,9 @@ of_net_open(struct boot_file_t* file, const char* dev_name, return FILE_ERR_BAD_FSYS; } - file->buffer = prom_claim((void *)LOAD_BUFFER_POS, LOAD_BUFFER_SIZE, 0); + + file->buffer = prom_claim_chunk((void *)LOAD_BUFFER_POS, + LOAD_BUFFER_SIZE, 0); if (file->buffer == (void *)-1) { prom_printf("Can't claim memory for TFTP download\n"); prom_close(file->of_device);