Move Process & Thread to the object folder.
This commit is contained in:
		
							parent
							
								
									4e278a4664
								
							
						
					
					
						commit
						b5ad454ad1
					
				|  | @ -15,12 +15,12 @@ add_executable(zion | ||||||
|   memory/physical_memory.cpp |   memory/physical_memory.cpp | ||||||
|   memory/user_stack_manager.cpp |   memory/user_stack_manager.cpp | ||||||
|   memory/virtual_memory.cpp |   memory/virtual_memory.cpp | ||||||
|  |   object/process.cpp | ||||||
|  |   object/thread.cpp | ||||||
|   scheduler/context_switch.s |   scheduler/context_switch.s | ||||||
|   scheduler/jump_user_space.s |   scheduler/jump_user_space.s | ||||||
|   scheduler/process.cpp |  | ||||||
|   scheduler/process_manager.cpp |   scheduler/process_manager.cpp | ||||||
|   scheduler/scheduler.cpp |   scheduler/scheduler.cpp | ||||||
|   scheduler/thread.cpp |  | ||||||
|   syscall/syscall.cpp |   syscall/syscall.cpp | ||||||
|   syscall/syscall_enter.s |   syscall/syscall_enter.s | ||||||
|   zion.cpp) |   zion.cpp) | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| #include "capability/capability.h" | #include "capability/capability.h" | ||||||
| 
 | 
 | ||||||
| #include "scheduler/process.h" | #include "object/process.h" | ||||||
| #include "scheduler/thread.h" | #include "object/thread.h" | ||||||
| 
 | 
 | ||||||
| template <> | template <> | ||||||
| Process& Capability::obj<Process>() { | Process& Capability::obj<Process>() { | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <stdint.h> | #include <stdint.h> | ||||||
| 
 | 
 | ||||||
| #include "scheduler/process.h" | #include "object/process.h" | ||||||
| 
 | 
 | ||||||
| // Loads the elf program and returns its entry point.
 | // Loads the elf program and returns its entry point.
 | ||||||
| uint64_t LoadElfProgram(Process& dest_proc, uint64_t base, uint64_t length); | uint64_t LoadElfProgram(Process& dest_proc, uint64_t base, uint64_t length); | ||||||
|  |  | ||||||
|  | @ -5,9 +5,9 @@ | ||||||
| #include "lib/ref_ptr.h" | #include "lib/ref_ptr.h" | ||||||
| #include "loader/elf_loader.h" | #include "loader/elf_loader.h" | ||||||
| #include "memory/paging_util.h" | #include "memory/paging_util.h" | ||||||
| #include "scheduler/process.h" | #include "object/process.h" | ||||||
|  | #include "object/thread.h" | ||||||
| #include "scheduler/process_manager.h" | #include "scheduler/process_manager.h" | ||||||
| #include "scheduler/thread.h" |  | ||||||
| 
 | 
 | ||||||
| namespace { | namespace { | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <stdint.h> | #include <stdint.h> | ||||||
| 
 | 
 | ||||||
| #include "scheduler/process.h" | #include "object/process.h" | ||||||
| 
 | 
 | ||||||
| void InitializePml4(uint64_t pml4_physical_addr); | void InitializePml4(uint64_t pml4_physical_addr); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,11 +1,11 @@ | ||||||
| #include "scheduler/process.h" | #include "object/process.h" | ||||||
| 
 | 
 | ||||||
| #include "debug/debug.h" | #include "debug/debug.h" | ||||||
| #include "include/zcall.h" | #include "include/zcall.h" | ||||||
| #include "memory/paging_util.h" | #include "memory/paging_util.h" | ||||||
| #include "memory/physical_memory.h" | #include "memory/physical_memory.h" | ||||||
|  | #include "object/thread.h" | ||||||
| #include "scheduler/scheduler.h" | #include "scheduler/scheduler.h" | ||||||
| #include "scheduler/thread.h" |  | ||||||
| 
 | 
 | ||||||
| namespace { | namespace { | ||||||
| 
 | 
 | ||||||
|  | @ -1,10 +1,10 @@ | ||||||
| #include "scheduler/thread.h" | #include "object/thread.h" | ||||||
| 
 | 
 | ||||||
| #include "common/gdt.h" | #include "common/gdt.h" | ||||||
| #include "debug/debug.h" | #include "debug/debug.h" | ||||||
| #include "loader/elf_loader.h" | #include "loader/elf_loader.h" | ||||||
| #include "memory/paging_util.h" | #include "memory/paging_util.h" | ||||||
| #include "scheduler/process.h" | #include "object/process.h" | ||||||
| #include "scheduler/scheduler.h" | #include "scheduler/scheduler.h" | ||||||
| 
 | 
 | ||||||
| namespace { | namespace { | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
| 
 | 
 | ||||||
| #include "lib/linked_list.h" | #include "lib/linked_list.h" | ||||||
| #include "lib/ref_ptr.h" | #include "lib/ref_ptr.h" | ||||||
| #include "scheduler/process.h" | #include "object/process.h" | ||||||
| 
 | 
 | ||||||
| class ProcessManager { | class ProcessManager { | ||||||
|  public: |  public: | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include "scheduler/process.h" | #include "object/process.h" | ||||||
| #include "scheduler/thread.h" | #include "object/thread.h" | ||||||
| 
 | 
 | ||||||
| class Scheduler { | class Scheduler { | ||||||
|  public: |  public: | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ | ||||||
| #include "include/zcall.h" | #include "include/zcall.h" | ||||||
| #include "include/zerrors.h" | #include "include/zerrors.h" | ||||||
| #include "loader/elf_loader.h" | #include "loader/elf_loader.h" | ||||||
| #include "scheduler/process.h" | #include "object/process.h" | ||||||
| #include "scheduler/process_manager.h" | #include "scheduler/process_manager.h" | ||||||
| #include "scheduler/scheduler.h" | #include "scheduler/scheduler.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue