Changeset 27 for trunk/kernel
- Timestamp:
- Jun 19, 2017, 8:13:59 PM (8 years ago)
- Location:
- trunk/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kernel.ld
r14 r27 1 /******************************************************************************* ***************2 * This is the linker script for the ALMOS-MK kernel.1 /******************************************************************************* 2 * This is the linker script for the ALMOS-MKH TSAR kernel. 3 3 * It describes the memory layout for the "kernel.elf" binary file. 4 ****************************************************************************** ***************/4 ******************************************************************************/ 5 5 6 /* define the kernel code base address */ 7 6 /* Define the kernel code base address */ 8 7 kernel_base = 0x4000; 9 8 10 /* Set the entry point of the boot-loader (e_entry field in the "boot.elf" file header) */ 9 /* 10 * Set the entry point of the boot-loader (e_entry field in the "boot.elf" 11 * file header) 12 */ 11 13 12 14 ENTRY(kernel_init) 13 15 14 /* Describe how to group the sections */ 15 16 /* 17 * Describe how to group the sections 18 */ 16 19 SECTIONS 17 20 { 18 . = kernel_base; 19 seg_kcode : 20 { 21 *(.text) 22 *(.rodata*) 23 } 24 . = ALIGN(0x1000); 25 seg_kdata : 26 { 27 *(.kinfo) 28 *(.kidle) 29 *(.kdata*) 30 *(.data*) 31 } 21 . = kernel_base; 22 seg_kcode : 23 { 24 *(.text) 25 *(.rodata*) 26 } 27 28 . = ALIGN(0x1000); 29 30 seg_kdata : 31 { 32 *(.kinfo) 33 *(.kidle) 34 *(.kdata*) 35 *(.data*) 36 } 32 37 } -
trunk/kernel/kernel_x86.ld
r26 r27 1 1 /******************************************************************************* 2 * This is the linker script for the ALMOS-MKH kernel.2 * This is the linker script for the ALMOS-MKH x86_64 kernel. 3 3 * It describes the memory layout for the "kernel.elf" binary file. 4 4 ******************************************************************************/
Note: See TracChangeset
for help on using the changeset viewer.