Changeset 27 for trunk/kernel/kernel.ld


Ignore:
Timestamp:
Jun 19, 2017, 8:13:59 PM (5 years ago)
Author:
max@…
Message:

cosmetic

File:
1 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.
    33 * It describes the memory layout for the "kernel.elf" binary file.
    4  *********************************************************************************************/
     4 ******************************************************************************/
    55
    6 /* define the kernel code base address */
    7 
     6/* Define the kernel code base address */
    87kernel_base = 0x4000;
    98
    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 */
    1113
    1214ENTRY(kernel_init)
    1315
    14 /* Describe how to group the sections */
    15 
     16/*
     17 * Describe how to group the sections
     18 */
    1619SECTIONS
    1720{
    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        }
    3237}
Note: See TracChangeset for help on using the changeset viewer.