Subversion Repositories HelenOS

Rev

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

Rev 4203 Rev 4220
Line 205... Line 205...
205
    if (initialized)
205
    if (initialized)
206
        return;
206
        return;
207
 
207
 
208
    init_sram_begin();
208
    init_sram_begin();
209
       
209
       
210
    ASSERT(strcmp(SRAM_TOC->magic, SRAM_TOC_MAGIC) == 0);
210
    ASSERT(str_cmp(SRAM_TOC->magic, SRAM_TOC_MAGIC) == 0);
211
   
211
   
212
    /* lookup TOC entry with the correct key */
212
    /* lookup TOC entry with the correct key */
213
    uint32_t i;
213
    uint32_t i;
214
    for (i = 0; i < MAX_TOC_ENTRIES; i++) {
214
    for (i = 0; i < MAX_TOC_ENTRIES; i++) {
215
        if (strcmp(SRAM_TOC->keys[i].key, CONSOLE_KEY) == 0)
215
        if (str_cmp(SRAM_TOC->keys[i].key, CONSOLE_KEY) == 0)
216
            break;
216
            break;
217
    }
217
    }
218
    ASSERT(i < MAX_TOC_ENTRIES);
218
    ASSERT(i < MAX_TOC_ENTRIES);
219
   
219
   
220
    sgcn_buffer_begin = sram_begin + SRAM_TOC->keys[i].offset;
220
    sgcn_buffer_begin = sram_begin + SRAM_TOC->keys[i].offset;