diff options
-rw-r--r-- | common/subarch.h | 2 | ||||
-rw-r--r-- | tip22/tftpload.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/common/subarch.h b/common/subarch.h index eba5ef0..788cc8d 100644 --- a/common/subarch.h +++ b/common/subarch.h @@ -30,7 +30,7 @@ struct kernel_load_block { struct kernel_load_block kernel_load[] = { { /* IP22 */ .base = 0x88002000, - .reserved = 0x800000, + .reserved = 0x1700000, }, { /* IP32 */ .base = 0x80004000, diff --git a/tip22/tftpload.c b/tip22/tftpload.c index 86bf111..37ca7d1 100644 --- a/tip22/tftpload.c +++ b/tip22/tftpload.c @@ -320,7 +320,12 @@ void _start(LONG argc, CHAR * argv[], CHAR * envp[]) kernel_entry = (void (*)(int, CHAR *[], CHAR *[]))CopyKernel(&kernel_end); /* align to page boundary */ +#if (SUBARCH != IP22) rd_vaddr = (char*)(((kernel_end + PAGE_SIZE) / PAGE_SIZE ) * PAGE_SIZE); +#else + rd_vaddr = (char*)0x88800000; +#endif + copyRamdisk( rd_vaddr, (char*)&__rd_start, rd_size); /* tell the kernel about the ramdisk */ |