malta.c (8df525a558e85aee7a2c757dd7654173ef369544) malta.c (acab36ca25101930b263dd9e8afd9b244354d338)
1/*
2 * QEMU Malta board support
3 *
4 * Copyright (c) 2006 Aurelien Jarno
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 1063 unchanged lines hidden (view full) ---

1072 if (loaderparams.initrd_filename) {
1073 initrd_size = get_image_size(loaderparams.initrd_filename);
1074 if (initrd_size > 0) {
1075 /*
1076 * The kernel allocates the bootmap memory in the low memory after
1077 * the initrd. It takes at most 128kiB for 2GB RAM and 4kiB
1078 * pages.
1079 */
1/*
2 * QEMU Malta board support
3 *
4 * Copyright (c) 2006 Aurelien Jarno
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 1063 unchanged lines hidden (view full) ---

1072 if (loaderparams.initrd_filename) {
1073 initrd_size = get_image_size(loaderparams.initrd_filename);
1074 if (initrd_size > 0) {
1075 /*
1076 * The kernel allocates the bootmap memory in the low memory after
1077 * the initrd. It takes at most 128kiB for 2GB RAM and 4kiB
1078 * pages.
1079 */
1080 initrd_offset = (loaderparams.ram_low_size - initrd_size
1081 - (128 * KiB)
1082 - ~INITRD_PAGE_MASK) & INITRD_PAGE_MASK;
1080 initrd_offset = ROUND_UP(loaderparams.ram_low_size
1081 - (initrd_size + 128 * KiB),
1082 INITRD_PAGE_SIZE);
1083 if (kernel_high >= initrd_offset) {
1084 error_report("memory too small for initial ram disk '%s'",
1085 loaderparams.initrd_filename);
1086 exit(1);
1087 }
1088 initrd_size = load_image_targphys(loaderparams.initrd_filename,
1089 initrd_offset,
1090 ram_size - initrd_offset);

--- 374 unchanged lines hidden ---
1083 if (kernel_high >= initrd_offset) {
1084 error_report("memory too small for initial ram disk '%s'",
1085 loaderparams.initrd_filename);
1086 exit(1);
1087 }
1088 initrd_size = load_image_targphys(loaderparams.initrd_filename,
1089 initrd_offset,
1090 ram_size - initrd_offset);

--- 374 unchanged lines hidden ---