diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-04-15 08:55:03 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-04-15 08:55:03 +0200 |
| commit | 1fa31688a0e237dec1170dcea9e8f0a0571a25e5 (patch) | |
| tree | 47670a4f05f50d45be078e6429950ff5c0b3ca48 /libs/acpi/test_data/tables.hpp | |
| parent | eacc1becd1308a01a7ffcddf7c8910c8dc708939 (diff) | |
| download | teachos-1fa31688a0e237dec1170dcea9e8f0a0571a25e5.tar.xz teachos-1fa31688a0e237dec1170dcea9e8f0a0571a25e5.zip | |
acpi: add basic MADT tests
Diffstat (limited to 'libs/acpi/test_data/tables.hpp')
| -rw-r--r-- | libs/acpi/test_data/tables.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libs/acpi/test_data/tables.hpp b/libs/acpi/test_data/tables.hpp new file mode 100644 index 0000000..2b3874f --- /dev/null +++ b/libs/acpi/test_data/tables.hpp @@ -0,0 +1,25 @@ +#ifndef ACPI_TEST_DATA_TABLES_HPP +#define ACPI_TEST_DATA_TABLES_HPP + +#include <cstddef> +#include <span> + +#define TABLE(name) \ + extern "C" std::byte const name##_start; \ + extern "C" std::byte const name##_end; \ + auto inline name()->std::span<std::byte const> \ + { \ + return {&name##_start, &name##_end}; \ + } + +namespace acpi::test_data::tables +{ + + TABLE(basic_madt); + TABLE(basic_rsdt); + +} // namespace acpi::test_data::tables + +#undef TABLE + +#endif |
