Subversion Repositories HelenOS

Rev

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

Rev 2972 Rev 2977
Line 343... Line 343...
343
 
343
 
344
    left = entry->p_filesz;
344
    left = entry->p_filesz;
345
    dp = (uint8_t *)(entry->p_vaddr + bias);
345
    dp = (uint8_t *)(entry->p_vaddr + bias);
346
 
346
 
347
    while (left > 0) {
347
    while (left > 0) {
348
        now = 4096;
348
        now = 16384;
349
        if (now > left) now=left;
349
        if (now > left) now=left;
350
        printf("read %d...", now);
350
        printf("read %d...", now);
351
        rc = read(elf->fd, dp, now);
351
        rc = read(elf->fd, dp, now);
352
        if (rc < 0) { printf("read error\n"); return EE_INVALID; }
352
        if (rc < 0) { printf("read error\n"); return EE_INVALID; }
353
        printf("->%d\n", rc);
353
        printf("->%d\n", rc);