Unified-OS
  • #️Unified OS
  • 🚀Getting Started
    • Installation
    • Booting
  • Architecture
    • Overview
    • ACPI
    • APIC
    • Constructors
    • ELF - Executables
    • Higher Kernel
    • IDT (Interrupts)
    • IPC
    • Kernel Objects and Watchers
    • Memory Management
    • PCI
    • PIT
    • Scheduling
    • Serial
    • Signals
    • SMP
    • Spinlocks
    • Syscalls
    • UFEI Bootloader and Setup
  • Drivers
    • SATA
    • Video
  • Other
    • FAT-32
    • Filesystem
    • Heap
    • Page
  • Processes
    • Libraries
      • MLibc
      • Libunified
    • OS-Based Processes
      • Daemon
      • Window Manager
  • Contributing
    • Contributing
Powered by GitBook
On this page
  1. Architecture

Signals

Signals are a form of inter-process communication. However they differ as the kernel is the one to execute a signal, and they are not quite avoidable.

More notable signals are like Sigkill where the process can be killed even though it is not a parent process. Signals are handled over syscalls

Example: Signal trampoline that is defined for each process.

BITS 64

global signalTrampolineStart
global signalTrampolineEnd
signalTrampolineStart:
    mov rbp, rsp ; Set up stack frame
    mov rax, qword [rbp]
    call rax
    mov rsp, rbp
    mov rax, 105 ; Signal return syscall
    int 0x69 ; Execute syscall
signalTrampolineEnd:
PreviousSerialNextSMP

Last updated 1 year ago