-
- Downloads
boot: refactor allocation of rootserver objects
Prior to this change, the boot process would dynamically allocate memory for root server objects based on the order of initialisation. Allocation was a best-fit algorithm. This change preallocates all memory for root server objects to an aligned untyped just after the user image. By allocating the objects in order of size, allocation is greatly simplified and the ability to reproduce the allocation offline based on the kernel and user image sizes is increased.
Showing
- include/kernel/boot.h 46 additions, 7 deletionsinclude/kernel/boot.h
- include/plat/pc99/plat/machine/intel-vtd.h 5 additions, 6 deletionsinclude/plat/pc99/plat/machine/intel-vtd.h
- src/arch/arm/32/kernel/vspace.c 14 additions, 23 deletionssrc/arch/arm/32/kernel/vspace.c
- src/arch/arm/64/kernel/vspace.c 11 additions, 25 deletionssrc/arch/arm/64/kernel/vspace.c
- src/arch/arm/kernel/boot.c 35 additions, 39 deletionssrc/arch/arm/kernel/boot.c
- src/arch/riscv/kernel/boot.c 6 additions, 10 deletionssrc/arch/riscv/kernel/boot.c
- src/arch/riscv/kernel/vspace.c 14 additions, 23 deletionssrc/arch/riscv/kernel/vspace.c
- src/arch/x86/32/kernel/vspace.c 13 additions, 17 deletionssrc/arch/x86/32/kernel/vspace.c
- src/arch/x86/64/kernel/vspace.c 18 additions, 27 deletionssrc/arch/x86/64/kernel/vspace.c
- src/arch/x86/kernel/boot.c 26 additions, 25 deletionssrc/arch/x86/kernel/boot.c
- src/kernel/boot.c 124 additions, 189 deletionssrc/kernel/boot.c
- src/plat/pc99/machine/intel-vtd.c 68 additions, 44 deletionssrc/plat/pc99/machine/intel-vtd.c
Loading
Please register or sign in to comment