/* * Copyright (C) 2006, Intel Corporation * * This file is part of the Linux-ready Firmware Developer Kit * * This program file is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by the * Free Software Foundation;version 2.1 of the License. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License * for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program in a file named COPYING; if not, write to the * Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA */ /* * This test checks if there is a OS/2 memory hole that breaks linux bootloaders */ #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void run_test(void) { start_test("os2gap", "OS/2 memory hole test", "This test checks if the OS/2 15Mb memory hole is absent"); if (e820_is_reserved(15*1024*1024)) report_result("os2gap", FAIL, "The memory map has a memory hole between 15Mb and 16Mb", NULL, "e820://"); else report_result("os2gap", PASS, "Successfully found no 15mb memory hole", NULL, NULL); finish_test("os2gap"); }