Changeset 623 for trunk/hal/generic/hal_vmm.h
- Timestamp:
- Mar 6, 2019, 4:37:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_vmm.h
r457 r623 1 1 /* 2 * hal_vmm.h - GenericVirtual Memory Manager initialisation2 * hal_vmm.h - Kernel Virtual Memory Manager initialisation 3 3 * 4 * Authors Alain Greiner (2016,2017 )4 * Authors Alain Greiner (2016,2017,2018,2019) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 22 22 */ 23 23 24 #ifndef _HAL_ PPM_H_25 #define _HAL_ PPM_H_24 #ifndef _HAL_VMM_H_ 25 #define _HAL_VMM_H_ 26 26 27 27 #include <hal_kernel_types.h> … … 29 29 30 30 ///////////////////////////////////////////////////////////////////////////////////////// 31 // GenericVirtual Memory Manager initialisation (implementation in hal_vmm.c)31 // Kernel Virtual Memory Manager initialisation (implementation in hal_vmm.c) 32 32 // 33 33 // Any arch-specific implementation must implement this API. … … 36 36 /**** Forward declarations ****/ 37 37 38 struct vmm_s; 38 struct process_s; 39 struct boot_info_s; 39 40 40 41 /**************************************************************************************** 41 * This function makes all architecture specific initialisations 42 * in the VSL (Virtual segments List) and in the GPT (Generic Page Table). 42 * Depending on the hardware architecture, this function creates (i.e. allocates memory 43 * and initializes) the VSL (Virtual segments List) and the GPT (Generic Page Table), 44 * for all vsegs required by the kernel process. 43 45 **************************************************************************************** 44 * @ vmm : pointer on virtual memory manager.46 * @ info : local pointer on boot_info (for kernel segments base & size). 45 47 * @ return 0 if success / return ENOMEM if failure. 46 48 ***************************************************************************************/ 47 error_t hal_vmm_ init( struct vmm_s * vmm);49 error_t hal_vmm_kernel_init( struct boot_info_s * info ); 48 50 49 #endif /* HAL_PPM_H_ */ 51 /**************************************************************************************** 52 * Depending on the hardware architecture, this function updates the VMM of an user 53 * process identified by the <process> argument. It registers in VSL and GPT all 54 * kernel vsegs required by this architecture. 55 **************************************************************************************** 56 * @ process : local pointer on user process descriptor. 57 * @ return 0 if success / return ENOMEM if failure. 58 ***************************************************************************************/ 59 error_t hal_vmm_kernel_update( struct process_s * process ); 60 61 #endif /* HAL_VMM_H_ */
Note: See TracChangeset
for help on using the changeset viewer.