OS
-
[OS] 18. InterruptsOS/OS from Scratch 2021. 7. 3. 16:43
서론 이번 강의에서는 Interrupt Service를 구현해보겠습니다. 해당 Github 강의는 다음과 같습니다. https://github.com/cfenollosa/os-tutorial/tree/master/18-interrupts cfenollosa/os-tutorial How to create an OS from scratch. Contribute to cfenollosa/os-tutorial development by creating an account on GitHub. github.com 이론 ISR (Interrupt Service Routine) CPU가 A 작업을 하고 있다가 키보드 입력과 같은 Interrupt을 받으면 CPU는 현재 진행 중인 A 작업을 멈추고 Interrupt S..
-
[OS] 17. Video ScrollOS/OS from Scratch 2021. 7. 2. 22:34
서론 이번 강의에서는 화면에서 스크롤을 구현해보겠습니다. 해당 Github 강의는 다음과 같습니다. https://github.com/cfenollosa/os-tutorial/tree/master/17-video-scroll cfenollosa/os-tutorial How to create an OS from scratch. Contribute to cfenollosa/os-tutorial development by creating an account on GitHub. github.com 코드 이번 강의에서 구현할 기능은 Scroll 기능입니다. 본 강의에서의 Scroll은 화면에 문자열이 마지막 행까지 가득 찬 상태에서 문자열을 더 출력하려는 경우, 스크린의 행들을 이전 행으로 하나씩 밀어 마지막 행..
-
[OS] 16. Video DriverOS/OS from Scratch 2021. 7. 2. 14:08
서론 이번 강의에서는 이전 강의에서 사용했던 이론과 코드를 응용해 화면에 문자열을 출력해보겠습니다. 해당 Github 강의는 다음과 같습니다. https://github.com/jschang0215/os-tutorial/tree/master/16-video-driver jschang0215/os-tutorial How to create an OS from scratch. Contribute to jschang0215/os-tutorial development by creating an account on GitHub. github.com 코드 screen.h #define VIDEO_ADDRESS 0xb8000 #define MAX_ROWS 25 #define MAX_COLS 80 #define WHIT..
-
[OS] 15. Video PortsOS/OS from Scratch 2021. 6. 30. 20:19
서론 이번 강의에서는 VGA와 Data Ports의 사용법에 대해 공부하겠습니다. 해당 Github 강의는 다음과 같습니다. https://github.com/cfenollosa/os-tutorial/tree/master/15-video-ports cfenollosa/os-tutorial How to create an OS from scratch. Contribute to cfenollosa/os-tutorial development by creating an account on GitHub. github.com 이론 I/O Programming Input/Output을 담당하는 하드웨어 장치는 Controller Chip을 통해 CPU와 상호작용합니다. Controller Chip에는 CPU가 읽고 쓸..
-
[OS] 14. CheckpointOS/OS from Scratch 2021. 6. 28. 01:35
서론 이번 강의에서는 앞으로의 강의를 진행하기 위해 코드들을 reformat 하겠습니다. 해당 Github 강의는 다음과 같습니다. https://github.com/cfenollosa/os-tutorial/tree/master/14-checkpoint cfenollosa/os-tutorial How to create an OS from scratch. Contribute to cfenollosa/os-tutorial development by creating an account on GitHub. github.com 이론 Monolithic/Micro Kernel Monolithic Kernel은 애플리케이션을 제외한 모든 시스템 기능들이 커널의 각 영역에 들어가 있는 형태를 의미합니다. Linux K..
-
[OS] 13. Kernel BarebonesOS/OS from Scratch 2021. 6. 27. 15:07
서론 이번 강의에서는 Kernel과 boot sector를 연결해 kernel을 실행시켜 보겠습니다. 해당 Github 강의는 다음과 같습니다. https://github.com/cfenollosa/os-tutorial/tree/master/13-kernel-barebones cfenollosa/os-tutorial How to create an OS from scratch. Contribute to cfenollosa/os-tutorial development by creating an account on GitHub. github.com 이론 Kernel Kernel은 하드웨어 바로 위 단계에서 작동하며 애플리케이션들의 CPU와 메모리 등의 리소스를 관리하는 메모리에 항상 상주하고 있는 프로그램입니다..
-
[OS] 12. Kernel COS/OS from Scratch 2021. 6. 26. 15:41
서론 이번 강의에서는 C언어로 지금까지 작성했던 Low-Level 코드들을 만들겠습니다. 해당 Github 강의는 다음과 같습니다. https://github.com/cfenollosa/os-tutorial/tree/master/12-kernel-c cfenollosa/os-tutorial How to create an OS from scratch. Contribute to cfenollosa/os-tutorial development by creating an account on GitHub. github.com 이론 Linking 이 블로그에서 Linking에 대해 알기 쉽게 설명해 놓았습니다. A.cpp라는 파일을 컴파일하면 A.o라는 Object Code가 생성되는데, 이 Object Code는 ..
-
[OS] 11. Kernel Cross CompilerOS/OS from Scratch 2021. 6. 23. 13:39
서론 이번 강의에서는 Kernel 개발 환경을 세팅하겠습니다. 해당 Github 강의는 다음과 같습니다. https://github.com/cfenollosa/os-tutorial/tree/master/11-kernel-crosscompiler cfenollosa/os-tutorial How to create an OS from scratch. Contribute to cfenollosa/os-tutorial development by creating an account on GitHub. github.com 이론 Cross Compiler Cross Compiler는 한 플랫폼에서 다른 플랫폼의 실행 파일을 만들어주는 컴파일러 입니다. 예를 들어 Linux환경에서 Embedded환경의 실행 파일을 만들..