Changeset 2b70a6e in mainline


Ignore:
Timestamp:
2009-01-03T16:18:32Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8ce14e3
Parents:
8b4d6cb
Message:

More ia64 cleanup.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ia64/loader/main.c

    r8b4d6cb r2b70a6e  
    4545}
    4646
    47 #define DEFAULT_MEMORY_BASE 0x4000000
    48 #define DEFAULT_MEMORY_SIZE 0x4000000
    49 #define DEFAULT_LEGACY_IO_BASE 0x00000FFFFC000000
    50 #define DEFAULT_LEGACY_IO_SIZE 0x4000000
     47#define DEFAULT_MEMORY_BASE             0x4000000
     48#define DEFAULT_MEMORY_SIZE             0x4000000
     49#define DEFAULT_LEGACY_IO_BASE          0x00000FFFFC000000
     50#define DEFAULT_LEGACY_IO_SIZE          0x4000000
    5151
    52 #define DEFAULT_FREQ_SCALE 0x0000000100000001 // 1/1
    53 #define DEFAULT_SYS_FREQ 100000000 //100MHz
    54 
     52#define DEFAULT_FREQ_SCALE              0x0000000100000001 /* 1/1 */
     53#define DEFAULT_SYS_FREQ                100000000 /* 100MHz */
    5554
    5655#ifdef REVISION
     
    6968static void version_print(void)
    7069{
    71         printf("HelenOS IA64 Bootloader\nRelease %s%s%s\nCopyright (c) 2006 HelenOS project\n", release, revision, timestamp);
     70        printf("HelenOS IA64 Bootloader\nRelease %s%s%s\n"
     71            "Copyright (c) 2006 HelenOS project\n", release, revision,
     72            timestamp);
    7273}
    7374
    7475void bootstrap(void)
    7576{
    76 
    7777        int ii;
    78        
    79        
    80         bootinfo_t *bootinfo=&binfo;
    81        
    82        
    83 
     78        bootinfo_t *bootinfo = &binfo;
    8479
    8580        version_print();
    8681
    87        
    8882        init_components(components);
    8983
     
    9791                    components[i].name, components[i].size);
    9892
    99         if(!bootinfo->hello_configured)
    100         {
     93        if (!bootinfo->hello_configured) {
    10194                /*
    102                  * Load configuration defaults for simulators
     95                 * Load configuration defaults for simulators.
    10396                 */
    104                  bootinfo->memmap_items=0;
     97                 bootinfo->memmap_items = 0;
    10598                 
    106                  bootinfo->memmap[bootinfo->memmap_items].base=DEFAULT_MEMORY_BASE;
    107                  bootinfo->memmap[bootinfo->memmap_items].size=DEFAULT_MEMORY_SIZE;
    108                  bootinfo->memmap[bootinfo->memmap_items].type=EFI_MEMMAP_FREE_MEM;
     99                 bootinfo->memmap[bootinfo->memmap_items].base =
     100                     DEFAULT_MEMORY_BASE;
     101                 bootinfo->memmap[bootinfo->memmap_items].size =
     102                     DEFAULT_MEMORY_SIZE;
     103                 bootinfo->memmap[bootinfo->memmap_items].type =
     104                     EFI_MEMMAP_FREE_MEM;
    109105                 bootinfo->memmap_items++;
    110106
    111                  bootinfo->memmap[bootinfo->memmap_items].base=DEFAULT_LEGACY_IO_BASE;
    112                  bootinfo->memmap[bootinfo->memmap_items].size=DEFAULT_LEGACY_IO_SIZE;
    113                  bootinfo->memmap[bootinfo->memmap_items].type=EFI_MEMMAP_IO_PORTS;
     107                 bootinfo->memmap[bootinfo->memmap_items].base =
     108                     DEFAULT_LEGACY_IO_BASE;
     109                 bootinfo->memmap[bootinfo->memmap_items].size =
     110                     DEFAULT_LEGACY_IO_SIZE;
     111                 bootinfo->memmap[bootinfo->memmap_items].type =
     112                     EFI_MEMMAP_IO_PORTS;
    114113                 bootinfo->memmap_items++;
    115114                 
    116115                 bootinfo->freq_scale = DEFAULT_FREQ_SCALE;
    117116                 bootinfo->sys_freq = DEFAULT_SYS_FREQ;
    118                  
    119117        }
    120 
    121 
    122118
    123119        bootinfo->taskmap.count = 0;
    124120        for (i = 0; i < COMPONENTS; i++) {
    125 
    126121                if (i > 0) {
    127                         bootinfo->taskmap.tasks[bootinfo->taskmap.count].addr = components[i].start;
    128                         bootinfo->taskmap.tasks[bootinfo->taskmap.count].size = components[i].size;
     122                        bootinfo->taskmap.tasks[bootinfo->taskmap.count].addr =
     123                            components[i].start;
     124                        bootinfo->taskmap.tasks[bootinfo->taskmap.count].size =
     125                            components[i].size;
    129126                        bootinfo->taskmap.count++;
    130127                }
     
    132129
    133130        jump_to_kernel(bootinfo);
    134 
    135 
    136131}
    137132
  • kernel/arch/ia64/src/ia64.c

    r8b4d6cb r2b70a6e  
    100100static void iosapic_init(void)
    101101{
    102 
    103102        uint64_t IOSAPIC = PA2KA((unative_t)(iosapic_base)) | FW_OFFSET;
    104103        int i;
    105104       
    106         int myid,myeid;
     105        int myid, myeid;
    107106       
    108107        myid = ia64_get_cpu_id();
Note: See TracChangeset for help on using the changeset viewer.