trap(5)
-
[RISC-V] System Call
PA2: System Call System calls are interfaces that allow user applications to request various services from the operating system kernel. This project aims to explore and understand how system calls are implemented in the xv6 operating system.git-hub: https://github.com/snu-csl/os-pa2/ 📌 start.cxv6 kernel boot up code 리눅스 커널의 초기화 과정을 담당 커널이 부팅될 때 가장 먼저 실행되어, 초기 환경을 설정#include "types.h"#include..
2025.05.03 -
[FreeBSD] Traps and Interrupts
3.3 Traps and InterruptsTraps, like system calls, occur synchronously for a process. Traps normally occur because of unintentional errors, such as division by zero or indirection through an invalid pointer. The process becomes aware of the problem either by catching a signal or by being terminated. Traps can also occur because of a page fault, in which case the system makes the page available an..
2024.07.10 -
[FreeBSD] Run-time structure of the kernel
Run-Time OrganizationThe kernel can be logically divided into a top half and a bottom halfThe top half of the kernel provides services to processes in response to system calls or traps. This software can be thought of as a library of routines shared by all processes. The top half of the kernel executes in a privileged execution mode, in which it has access both to kernel data structures and to t..
2024.07.10 -
[FreeBSD] Kernel Organization
3.1 Kernel OrganizationThe FreeBSD kernel can be viewed as a service provider to user processes. Processes usually access these services through system calls. Some services, such as process scheduling and memory management, are implemented as processes that execute in kernel mode or as routines that execute periodically within the kernel.In this chapter, we describe how kernel services are provi..
2024.07.09 -
[운영체제] CPU Interrupt
Interrupt handler - 인터럽트를 해결하는 func - ISR (interrupt service routine) - 인터럽트 발생! -> 운영체제가 수행됨 ⭐️ 인터럽트의 3가지 종류 1) Interrupt - Hardware interrupt - asynchronous - 비동기로 처리된다. - CPU는 이 작업(인터럽트)를 기다리지 않는다 -> 다른 작업 수행 -> 다시 돌아옴 == acync - ex) 키보드 인터럽트, timer interrupt 2) Trap - Software interrupt - Application process - Sync 동기적으로 처리된다. - ex) System Call -> App이 디스크에서 데이터 읽어달라고 OS에게 도움 요청 (캡슐화, 인터페이스 ..
2023.03.25