Rev 2985 | Rev 2992 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2985 | Rev 2990 | ||
---|---|---|---|
Line 99... | Line 99... | ||
99 | int elf_create_pcb(elf_info_t *info) |
99 | int elf_create_pcb(elf_info_t *info) |
100 | { |
100 | { |
101 | pcb_t *pcb; |
101 | pcb_t *pcb; |
102 | void *a; |
102 | void *a; |
103 | 103 | ||
104 | pcb = (pcb_t *)PCB_ADDRESS; |
104 | pcb = __pcb_get(); |
105 | 105 | ||
106 | a = as_area_create(pcb, sizeof(pcb_t), AS_AREA_READ | AS_AREA_WRITE); |
106 | a = as_area_create(pcb, sizeof(pcb_t), AS_AREA_READ | AS_AREA_WRITE); |
107 | if (a == (void *)(-1)) { |
107 | if (a == (void *)(-1)) { |
108 | printf("elf_create_pcb: memory mapping failed\n"); |
108 | printf("elf_create_pcb: memory mapping failed\n"); |
109 | return EE_MEMORY; |
109 | return EE_MEMORY; |