X-Git-Url: https://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=second%2Ffs_of.c;fp=second%2Ffs_of.c;h=77113b14ed8bb68f1f8e83a8aacda769c2510d74;hp=5961cfecd57a09b45702444f7628382541427aed;hb=62a97dcb9075e6ad3e30a60235254927f3aca2b2;hpb=b5f28817d6d68c2cb2a3e5eaefe4633b085557b6 diff --git a/second/fs_of.c b/second/fs_of.c index 5961cfe..77113b1 100644 --- a/second/fs_of.c +++ b/second/fs_of.c @@ -44,7 +44,6 @@ #include "errors.h" #include "debug.h" -#define LOAD_BUFFER_POS 0x1000000 #define LOAD_BUFFER_SIZE 0x1800000 static int of_open(struct boot_file_t* file, @@ -208,8 +207,7 @@ of_net_open(struct boot_file_t* file, } - file->buffer = prom_claim_chunk((void *)LOAD_BUFFER_POS, - LOAD_BUFFER_SIZE, 0); + file->buffer = prom_claim_chunk_top(LOAD_BUFFER_SIZE, 0); if (file->buffer == (void *)-1) { prom_printf("Can't claim memory for TFTP download\n"); prom_close(file->of_device);