Changeset ef5de6d in mainline
- Timestamp:
- 2008-12-31T13:13:26Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2f08ff55
- Parents:
- f58321c4
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ia64/loader/main.c
rf58321c4 ref5de6d 80 80 bootinfo_t *bootinfo=&binfo; 81 81 82 //for(ii=0;ii<KERNEL_SIZE;ii++) ((char *)(0x100000))[ii] = ((char *)KERNEL_START)[ii+1];83 84 85 //((int *)(0x100000))[0]++;86 82 87 83 -
kernel/arch/ia64/Makefile.inc
rf58321c4 ref5de6d 89 89 ARCH_SOURCES += arch/$(ARCH)/src/ski/ski.c 90 90 DEFS += -DSKI 91 # BFD = elf64-ia64-little92 91 BFD = binary 93 92 endif -
kernel/arch/ia64/src/ia64.c
rf58321c4 ref5de6d 75 75 /* Setup usermode init tasks. */ 76 76 77 //#ifdef I460GX78 77 unsigned int i; 79 78 … … 84 83 init.tasks[i].size = bootinfo->taskmap.tasks[i].size; 85 84 } 86 /*87 #else88 init.cnt = 8;89 init.tasks[0].addr = INIT0_ADDRESS;90 init.tasks[0].size = INIT0_SIZE;91 init.tasks[1].addr = INIT0_ADDRESS + 0x400000;92 init.tasks[1].size = INIT0_SIZE;93 init.tasks[2].addr = INIT0_ADDRESS + 0x800000;94 init.tasks[2].size = INIT0_SIZE;95 init.tasks[3].addr = INIT0_ADDRESS + 0xc00000;96 init.tasks[3].size = INIT0_SIZE;97 init.tasks[4].addr = INIT0_ADDRESS + 0x1000000;98 init.tasks[4].size = INIT0_SIZE;99 init.tasks[5].addr = INIT0_ADDRESS + 0x1400000;100 init.tasks[5].size = INIT0_SIZE;101 init.tasks[6].addr = INIT0_ADDRESS + 0x1800000;102 init.tasks[6].size = INIT0_SIZE;103 init.tasks[7].addr = INIT0_ADDRESS + 0x1c00000;104 init.tasks[7].size = INIT0_SIZE;105 #endif*/106 85 } 107 86 -
kernel/arch/ia64/src/mm/frame.c
rf58321c4 ref5de6d 41 41 #include <macros.h> 42 42 43 /*44 * This is Ski-specific and certainly not sufficient45 * for real ia64 systems that provide memory map.46 */47 #define MEMORY_SIZE (256 * 1024 * 1024)48 #define MEMORY_BASE (0 * 64 * 1024 * 1024)49 50 43 #define KERNEL_RESERVED_AREA_BASE (0x4400000) 51 44 #define KERNEL_RESERVED_AREA_SIZE (16*1024*1024) … … 84 77 } 85 78 86 //zone_create(MEMORY_BASE >> FRAME_WIDTH, SIZE2FRAMES(MEMORY_SIZE), (MEMORY_SIZE) >> FRAME_WIDTH, 0);87 88 79 /* 89 80 * Blacklist ROM regions. -
kernel/arch/ia64/src/mm/tlb.c
rf58321c4 ref5de6d 136 136 break; 137 137 case 1: /*cnt 4-15*/ 138 /*cnt=((cnt-1)/4)+1;*/139 138 ps = PAGE_WIDTH+2; 140 139 va &= ~((1<<ps)-1); 141 140 break; 142 141 case 2: /*cnt 16-63*/ 143 /*cnt=((cnt-1)/16)+1;*/144 142 ps = PAGE_WIDTH+4; 145 143 va &= ~((1<<ps)-1); 146 144 break; 147 145 case 3: /*cnt 64-255*/ 148 /*cnt=((cnt-1)/64)+1;*/149 146 ps = PAGE_WIDTH+6; 150 147 va &= ~((1<<ps)-1); 151 148 break; 152 149 case 4: /*cnt 256-1023*/ 153 /*cnt=((cnt-1)/256)+1;*/154 150 ps = PAGE_WIDTH+8; 155 151 va &= ~((1<<ps)-1); 156 152 break; 157 153 case 5: /*cnt 1024-4095*/ 158 /*cnt=((cnt-1)/1024)+1;*/159 154 ps = PAGE_WIDTH+10; 160 155 va &= ~((1<<ps)-1); 161 156 break; 162 157 case 6: /*cnt 4096-16383*/ 163 /*cnt=((cnt-1)/4096)+1;*/164 158 ps = PAGE_WIDTH+12; 165 159 va &= ~((1<<ps)-1); … … 167 161 case 7: /*cnt 16384-65535*/ 168 162 case 8: /*cnt 65536-(256K-1)*/ 169 /*cnt=((cnt-1)/16384)+1;*/170 163 ps = PAGE_WIDTH+14; 171 164 va &= ~((1<<ps)-1); 172 165 break; 173 166 default: 174 /*cnt=((cnt-1)/(16384*16))+1;*/175 167 ps=PAGE_WIDTH+18; 176 168 va&=~((1<<ps)-1); 177 169 break; 178 170 } 179 /*cnt+=(page!=va);*/180 171 for(; va<(page+cnt*(PAGE_SIZE)); va += (1<<ps)) { 181 172 asm volatile ( … … 503 494 uint64_t io_page=(va & ((1<<IO_PAGE_WIDTH)-1)) >> (USPACE_IO_PAGE_WIDTH); 504 495 if(is_io_page_accessible(io_page)){ 505 //printf("Insert %llX\n",va);506 507 496 uint64_t page,frame; 508 497 … … 522 511 entry.pl = PL_USER; 523 512 entry.ar = AR_READ | AR_WRITE; 524 entry.ppn = frame >> PPN_SHIFT; //MUSIM spocitat frame513 entry.ppn = frame >> PPN_SHIFT; 525 514 entry.ps = USPACE_IO_PAGE_WIDTH; 526 515 527 dtc_mapping_insert(page, TASK->as->asid, entry); //Musim zjistit ASID516 dtc_mapping_insert(page, TASK->as->asid, entry); 528 517 return 1; 529 518 }else { -
kernel/arch/ia64/src/smp/smp.c
rf58321c4 ref5de6d 103 103 myeid=ia64_get_cpu_eid(); 104 104 105 //printf("Sending ipi %d on %d\n",ipi,CPU->id);106 105 for(id=0;id<256;id++) 107 106 for(eid=0;eid<256;eid++) … … 150 149 if(cpu_by_id_eid_list[id][eid]!=0){ 151 150 if(cpu_by_id_eid_list[id][eid]==1){ 152 153 //config.cpu_count++;154 //cpu_by_id_eid_list[id][eid]=2;155 151 printf("Found Late CPU ID:%d EDI:%d Not added to system!!!\n",id,eid); 156 152 continue;
Note:
See TracChangeset
for help on using the changeset viewer.