Writing a Simple Operating System — from Scratch
CHAPTER 5. WRITING, BUILDING, AND LOADING YOUR KERNEL 57 # This builds the binary of our kernel from two object files: # - the k ...
CHAPTER 5. WRITING, BUILDING, AND LOADING YOUR KERNEL 58 # Automatically expand to a list of existing files that # match the pat ...
CHAPTER 5. WRITING, BUILDING, AND LOADING YOUR KERNEL 59 # Run bochs to simulate booting of our code. run: all bochs # This is t ...
CHAPTER 5. WRITING, BUILDING, AND LOADING YOUR KERNEL 60 float radius = 3.0; float circumference = 2 * radius * 3.141592; The pr ...
CHAPTER 5. WRITING, BUILDING, AND LOADING YOUR KERNEL 61 // this function ’s interface. int output = external_function (5, "Hell ...
Chapter 6 Developing Essential Device Drivers and a Filesystem INTRO PART. 6.1 Hardware Input/Output By writing to the screen we ...
CHAPTER 6. DEVELOPING ESSENTIAL DEVICE DRIVERS AND A FILESYSTEM 63 Internally, controller chips usually have several registers t ...
CHAPTER 6. DEVELOPING ESSENTIAL DEVICE DRIVERS AND A FILESYSTEM 64 A problem with port I/O is that we cannot express these low-l ...
CHAPTER 6. DEVELOPING ESSENTIAL DEVICE DRIVERS AND A FILESYSTEM 65 6.1.3 Direct Memory Access Since port I/O involves reading or ...
CHAPTER 6. DEVELOPING ESSENTIAL DEVICE DRIVERS AND A FILESYSTEM 66 a driver interface file,screen.h, in ourdriversfolder. Due to ...
CHAPTER 6. DEVELOPING ESSENTIAL DEVICE DRIVERS AND A FILESYSTEM 67 int rows = offset / (2* MAX_COLS ); offset = get_screen_offse ...
CHAPTER 6. DEVELOPING ESSENTIAL DEVICE DRIVERS AND A FILESYSTEM 68 // reg 14: which is the high byte of the cursor ’s offset // ...
CHAPTER 6. DEVELOPING ESSENTIAL DEVICE DRIVERS AND A FILESYSTEM 69 Another useful, but not too difficult function, isclearscreen ...
CHAPTER 6. DEVELOPING ESSENTIAL DEVICE DRIVERS AND A FILESYSTEM 70 int i; for (i=0; i<no_bytes; i++) { *(dest + i) = *( sourc ...
Chapter 7 Implementing Processes 7.1 Single Processing 7.2 Multi-processing 71 ...
Chapter 8 Summary 72 ...
Bibliography 73 ...
«
1
2
3
4
»
Free download pdf