diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2025-05-04 11:07:48 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2025-05-04 11:07:48 +0000 |
| commit | ccb0fcb78c0d22ebaeb9aa37f1941b0d44c98038 (patch) | |
| tree | 266a971084657b0e0eefe3b54a5555efbe50fbed /arch/x86_64/include | |
| parent | 4d4e23116284f41329ea809e2bda86feea1b325c (diff) | |
| download | teachos-ccb0fcb78c0d22ebaeb9aa37f1941b0d44c98038.tar.xz teachos-ccb0fcb78c0d22ebaeb9aa37f1941b0d44c98038.zip | |
move user-mode code into own namespace and linker section
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/interrupt_handling/generic_interrupt_handler.hpp | 2 | ||||
| -rw-r--r-- | arch/x86_64/include/arch/user/main.hpp | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/arch/x86_64/include/arch/interrupt_handling/generic_interrupt_handler.hpp b/arch/x86_64/include/arch/interrupt_handling/generic_interrupt_handler.hpp index 8091a58..2d26668 100644 --- a/arch/x86_64/include/arch/interrupt_handling/generic_interrupt_handler.hpp +++ b/arch/x86_64/include/arch/interrupt_handling/generic_interrupt_handler.hpp @@ -26,7 +26,7 @@ namespace teachos::arch::interrupt_handling * * @param frame Pointer to the interrupt frame containing CPU state. */ - [[gnu::interrupt]] [[gnu::section(".interrupt_text")]] + [[gnu::interrupt]] auto generic_interrupt_handler(interrupt_frame * frame) -> void; } // namespace teachos::arch::interrupt_handling diff --git a/arch/x86_64/include/arch/user/main.hpp b/arch/x86_64/include/arch/user/main.hpp new file mode 100644 index 0000000..7127d07 --- /dev/null +++ b/arch/x86_64/include/arch/user/main.hpp @@ -0,0 +1,10 @@ +#ifndef TEACHOS_ARCH_X86_64_USER_MAIN_HPP +#define TEACHOS_ARCH_X86_64_USER_MAIN_HPP + +namespace teachos::arch::user +{ + auto main() -> void; + +} // namespace teachos::arch::user + +#endif // TEACHOS_ARCH_X86_64_USER_MAIN_HPP
\ No newline at end of file |
