diff options
Diffstat (limited to 'arch/x86/msr')
| -rw-r--r-- | arch/x86/msr/CMakeLists.txt | 18 | ||||
| -rw-r--r-- | arch/x86/msr/Msr.cpp | 18 | ||||
| -rw-r--r-- | arch/x86/msr/Msr.h | 18 |
3 files changed, 54 insertions, 0 deletions
diff --git a/arch/x86/msr/CMakeLists.txt b/arch/x86/msr/CMakeLists.txt index 86d3330..3f4fd8a 100644 --- a/arch/x86/msr/CMakeLists.txt +++ b/arch/x86/msr/CMakeLists.txt @@ -1,3 +1,21 @@ +#[[ + * Copyright (c) 2026 Alexey Gavrilov <alexey.gavrilov@mail.com> + * + * This file is part of ObjectiveOS. + * + * ObjectiveOS is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * ObjectiveOS 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * ObjectiveOS. If not, see <https://www.gnu.org/licenses/>. + ]] + add_library(MSR STATIC) target_link_libraries(MSR PUBLIC CXX_COMPILER_REQUIREMENTS) diff --git a/arch/x86/msr/Msr.cpp b/arch/x86/msr/Msr.cpp index 7420ab7..19dd1d6 100644 --- a/arch/x86/msr/Msr.cpp +++ b/arch/x86/msr/Msr.cpp @@ -1,3 +1,21 @@ +/** + * Copyright (c) 2026 Alexey Gavrilov <alexey.gavrilov@mail.com> + * + * This file is part of ObjectiveOS. + * + * ObjectiveOS is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * ObjectiveOS 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * ObjectiveOS. If not, see <https://www.gnu.org/licenses/>. + */ + #include "Msr.h" #include "../cpuid/Cpuid.h" diff --git a/arch/x86/msr/Msr.h b/arch/x86/msr/Msr.h index 8262757..e6c90b2 100644 --- a/arch/x86/msr/Msr.h +++ b/arch/x86/msr/Msr.h @@ -1,3 +1,21 @@ +/** + * Copyright (c) 2026 Alexey Gavrilov <alexey.gavrilov@mail.com> + * + * This file is part of ObjectiveOS. + * + * ObjectiveOS is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. + * + * ObjectiveOS 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * ObjectiveOS. If not, see <https://www.gnu.org/licenses/>. + */ + // Tasks: // 1) Implement msr write and save functions // 2) Ia32ApicBase field |
