rellermeyer / course_os

CS 439 course OS
BSD 3-Clause "New" or "Revised" License
38 stars 26 forks source link

Process abstraction #6

Open rellermeyer opened 10 years ago

rellermeyer commented 10 years ago

We need a proper process abstraction, i.e., some implementation of a PCB and some initial implementation of context-switching into a process.

ronso-rage commented 10 years ago

I volunteer to work on this. Anybody else game?

bigfuss commented 10 years ago

I will also work on this.

ronso-rage commented 10 years ago

So, we've hit a wall with the process abstraction. Currently, we have a rudimentary pcb struct implemented. Assuming the major pieces of a process abstraction (e.g. the program code and data) exist in main memory, where does the input, specifically the address of the executable image come from? I'm assuming from the ELF group, perhaps?

rellermeyer commented 10 years ago

I would say the "process support" should allocate this memory as an initial address space. ELF parsing and loading should map the sections into this given memory region so that the dispatcher (i.e., the initial implementation of context-switching) can start a process of the program image. Does this make sense?