Subversion Repositories HelenOS

Rev

Rev 3588 | Rev 4338 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3588 Rev 3674
Line 42... Line 42...
42
void write(const char *str, const int len)
42
void write(const char *str, const int len)
43
{
43
{
44
    return;
44
    return;
45
}
45
}
46
 
46
 
-
 
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 
-
 
51
 
-
 
52
#define DEFAULT_FREQ_SCALE 0x0000000100000001 // 1/1
-
 
53
#define DEFAULT_SYS_FREQ 100000000 //100MHz
-
 
54
 
47
 
55
 
48
#ifdef REVISION
56
#ifdef REVISION
49
    char *revision = ", revision " REVISION;
57
    char *revision = ", revision " REVISION;
50
#else
58
#else
51
    char *revision = "";
59
    char *revision = "";
Line 76... Line 84...
76
   
84
   
77
    //((int *)(0x100000))[0]++;
85
    //((int *)(0x100000))[0]++;
78
   
86
   
79
 
87
 
80
 
88
 
81
 
-
 
82
    version_print();
89
    version_print();
83
 
90
 
84
   
91
   
85
    init_components(components);
92
    init_components(components);
86
 
93
 
Line 91... Line 98...
91
    unsigned int i;
98
    unsigned int i;
92
    for (i = 0; i < COMPONENTS; i++)
99
    for (i = 0; i < COMPONENTS; i++)
93
        printf(" %P: %s image (size %d bytes)\n", components[i].start,
100
        printf(" %P: %s image (size %d bytes)\n", components[i].start,
94
            components[i].name, components[i].size);
101
            components[i].name, components[i].size);
95
 
102
 
-
 
103
    if(!bootinfo->hello_configured)
-
 
104
    {
-
 
105
        /*
-
 
106
         * Load configuration defaults for simulators
-
 
107
         */
-
 
108
         bootinfo->memmap_items=0;
-
 
109
         
-
 
110
         bootinfo->memmap[bootinfo->memmap_items].base=DEFAULT_MEMORY_BASE;
-
 
111
         bootinfo->memmap[bootinfo->memmap_items].size=DEFAULT_MEMORY_SIZE;
-
 
112
         bootinfo->memmap[bootinfo->memmap_items].type=EFI_MEMMAP_FREE_MEM;
-
 
113
         bootinfo->memmap_items++;
-
 
114
 
-
 
115
         bootinfo->memmap[bootinfo->memmap_items].base=DEFAULT_LEGACY_IO_BASE;
-
 
116
         bootinfo->memmap[bootinfo->memmap_items].size=DEFAULT_LEGACY_IO_SIZE;
-
 
117
         bootinfo->memmap[bootinfo->memmap_items].type=EFI_MEMMAP_IO_PORTS;
-
 
118
         bootinfo->memmap_items++;
-
 
119
         
-
 
120
         bootinfo->freq_scale = DEFAULT_FREQ_SCALE;
-
 
121
         bootinfo->sys_freq = DEFAULT_SYS_FREQ;
-
 
122
         
-
 
123
    }
-
 
124
 
-
 
125
 
96
 
126
 
97
    bootinfo->taskmap.count = 0;
127
    bootinfo->taskmap.count = 0;
98
    for (i = 0; i < COMPONENTS; i++) {
128
    for (i = 0; i < COMPONENTS; i++) {
99
 
129
 
100
        if (i > 0) {
130
        if (i > 0) {