| Last change
                  on this file since 350 was
                  292,
                  checked in by cfuguet, 13 years ago | 
        
          | 
Changing directory structure of the TSAR boot loader.A README.txt file has been included to explain the new structure
 and the MAKEFILE parameters.
 
 
Erasing the heap segment for the boot elf loader. All the work spaceis allocated in the stack.
 
 
The stack size is defined in the include/defs.h.
 
Important modification in the reset.S file. The non-boot processors (processor id != 0) wait in a low comsumption energy
 mode to be wake up by processor 0 using an IPI. Each processor
 has a private mailbox in the local XICU. The value written in
 the mailbox will be used as address to jump by the processors.
 
 
The waking up of non-boot processors is not done in this boot loaderso it must be done in the application loaded.
 
 
The boot_loader_elf function loads into memory an executable .elf filewhich must be placed in the BOOT_LOADER_LBA block of the disk. This
 constant can be defined in the include/defs.h file.
 
 | 
        | File size:
            616 bytes | 
      
      
        
  | Line |  | 
|---|
| 1 | /********************************************************** | 
|---|
| 2 | File   : ldscript | 
|---|
| 3 | Author : Cesar Fuguet | 
|---|
| 4 | Date   : June 2011 | 
|---|
| 5 | **********************************************************/ | 
|---|
| 6 |  | 
|---|
| 7 | /* Definition of the base address for all segments */ | 
|---|
| 8 |  | 
|---|
| 9 | seg_stack_base    = 0x00010000; | 
|---|
| 10 | seg_boot_base     = 0xBFC00000;       /* le code de boot */ | 
|---|
| 11 |  | 
|---|
| 12 | /* Grouping sections into segments */ | 
|---|
| 13 |  | 
|---|
| 14 | ENTRY(boot) | 
|---|
| 15 | SECTIONS | 
|---|
| 16 | { | 
|---|
| 17 | . = seg_boot_base; | 
|---|
| 18 | .text : { | 
|---|
| 19 | *(.boot) | 
|---|
| 20 | *(.reset) | 
|---|
| 21 | } | 
|---|
| 22 |  | 
|---|
| 23 | .data ALIGN(0x4) : { | 
|---|
| 24 | *(.reset_data) | 
|---|
| 25 | . = ALIGN(0x4); | 
|---|
| 26 | dtb_addr = .; | 
|---|
| 27 | INCLUDE "build/platform.ld"; | 
|---|
| 28 | } | 
|---|
| 29 | } | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.