diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2025-04-17 14:15:39 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2025-04-17 14:15:39 +0000 |
| commit | 65718b1470a9b6bfac3520587263c5374f4a4419 (patch) | |
| tree | cfd952c4bec62cc5210faa0aacd10f3381026943 /arch/x86_64/src/context_switching/main.cpp | |
| parent | 8975c5fe091150245fd58a0a42a83b4f41d454e0 (diff) | |
| parent | 576a7a95b2462ec4938de9fe344657ca04b2ba34 (diff) | |
| download | teachos-65718b1470a9b6bfac3520587263c5374f4a4419.tar.xz teachos-65718b1470a9b6bfac3520587263c5374f4a4419.zip | |
Merge branch 'syscall_interrupt_handler' into feat_inital_context_switching
Diffstat (limited to 'arch/x86_64/src/context_switching/main.cpp')
| -rw-r--r-- | arch/x86_64/src/context_switching/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/src/context_switching/main.cpp b/arch/x86_64/src/context_switching/main.cpp index 486a09f..7be286a 100644 --- a/arch/x86_64/src/context_switching/main.cpp +++ b/arch/x86_64/src/context_switching/main.cpp @@ -51,6 +51,9 @@ namespace teachos::arch::context_switching auto user_mode_main() -> void { kernel::cpu::validate_segment_registers(USER_DATA_SEGMENT_SELECTOR, USER_CODE_SEGMENT_SELECTOR); + + asm volatile("INT $0x80"); + video::vga::text::write("Successfully entered user mode!", video::vga::text::common_attributes::green_on_black); } |
