Changeset d47f0e1 in mainline
- Timestamp:
- 2005-06-05T15:18:24Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e3f41b6
- Parents:
- d1a184f
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/_link.ld
rd1a184f rd47f0e1 16 16 unmapped_ktext_start = .; 17 17 *(K_TEXT_START); 18 *(K_TEXT_START_2); 18 19 unmapped_ktext_end = .; 19 20 unmapped_kdata_start = .; -
arch/ia32/src/boot/boot.S
rd1a184f rd47f0e1 63 63 lidt idtr 64 64 65 call map_kernel 66 67 movl $_hardcoded_ktext_size, hardcoded_ktext_size 68 movl $_hardcoded_kdata_size, hardcoded_kdata_size 69 movl $_hardcoded_load_address, hardcoded_load_address 70 71 call main_bsp # never returns 72 73 cli 74 hlt 75 76 .global map_kernel 77 map_kernel: 65 78 # 66 79 # Here we setup mapping for both the unmapped and mapped sections of the kernel. … … 84 97 orl $(1<<31), %ebx 85 98 movl %ebx, %cr0 99 ret 86 100 87 movl $_hardcoded_ktext_size, hardcoded_ktext_size88 movl $_hardcoded_kdata_size, hardcoded_kdata_size89 movl $_hardcoded_load_address, hardcoded_load_address90 91 call main_bsp # never returns92 93 cli94 hlt95 101 96 102 .section K_DATA_START -
arch/ia32/src/boot/memmap.S
rd1a184f rd47f0e1 37 37 38 38 .code16 39 .section K_TEXT_START 39 .section K_TEXT_START_2 40 40 41 41 memmap_arch_init: -
arch/ia32/src/mm/page.c
rd1a184f rd47f0e1 73 73 } 74 74 else { 75 76 75 /* 77 76 * Application processors need to create their own view of the -
arch/ia32/src/pm.c
rd1a184f rd47f0e1 75 75 d->base_16_23 = (KA2PA(base) >> 16) & 0xff; 76 76 d->base_24_31 = (KA2PA(base) >> 24) & 0xff; 77 77 78 } 78 79 -
arch/ia32/src/smp/ap.S
rd1a184f rd47f0e1 31 31 # 32 32 33 . text33 .section K_TEXT_START_2 34 34 35 35 #ifdef __SMP__ … … 48 48 .code16 49 49 cli 50 51 50 xorw %ax,%ax 52 51 movw %ax,%ds … … 56 55 orl $1,%eax 57 56 movl %eax,%cr0 57 jmp 0f 58 0: 58 59 ljmp $KTEXT,$jump_to_kernel 59 60 … … 65 66 movw %ax,%es 66 67 movw %ax,%ss 67 movl $ ctx,%eax68 movl $(ctx-0x80000000),%eax # KA2PA((__address) &ctx) 68 69 movl (%eax),%esp 69 70 70 71 lidt idtr 71 72 73 call map_kernel 74 72 75 ljmp $KTEXT,$main_ap 73 76 -
arch/ia32/src/smp/apic.c
rd1a184f rd47f0e1 209 209 lo = l_apic[ICRlo] & ICRloClear; 210 210 lo |= ((__address) ap_boot) / 4096; /* calculate the reset vector */ 211 l_apic[ICRlo] = lo | DLVRMODE_STUP | DESTMODE_PHYS | LEVEL_ASSERT | SHORTHAND_DEST | 211 l_apic[ICRlo] = lo | DLVRMODE_STUP | DESTMODE_PHYS | LEVEL_ASSERT | SHORTHAND_DEST | TRGRMODE_LEVEL; 212 212 delay(200); 213 213 } -
arch/ia32/src/smp/mps.c
rd1a184f rd47f0e1 159 159 if (fs->config_type == 0 && fs->configuration_table) { 160 160 if (fs->mpfib2 >> 7) { 161 printf(" mps_init: PIC mode not supported\n");161 printf("%s: PIC mode not supported\n", __FUNCTION__); 162 162 return; 163 163 } … … 189 189 190 190 if (ct->signature != CT_SIGNATURE) { 191 printf(" configure_via_ct: bad ct->signature\n");191 printf("%s: bad ct->signature\n", __FUNCTION__); 192 192 return 1; 193 193 } 194 194 if (!mps_ct_check()) { 195 printf(" configure_via_ct: bad ct checksum\n");195 printf("%s: bad ct checksum\n", __FUNCTION__); 196 196 return 1; 197 197 } 198 198 if (ct->oem_table) { 199 printf(" configure_via_ct: ct->oem_table not supported\n");199 printf("%s: ct->oem_table not supported\n", __FUNCTION__); 200 200 return 1; 201 201 } … … 252 252 */ 253 253 254 printf(" configure_via_ct: ct badness\n");254 printf("%s: ct badness\n", __FUNCTION__); 255 255 return 1; 256 256 } … … 269 269 * Not yet implemented. 270 270 */ 271 printf(" configure_via_default: not supported\n");271 printf("%s: not supported\n", __FUNCTION__); 272 272 return 1; 273 273 } … … 426 426 */ 427 427 *((__u16 *) (frame + 0x467+0)) = ((__address) ap_boot) >> 4; /* segment */ 428 *((__u16 *) (frame + 0x467+2)) = 0 x0;/* offset */429 430 /* 431 * Give back the borrowed frame and restore identity mapping for it.432 */ 433 map_page_to_frame(frame, frame,PAGE_CACHEABLE,0);428 *((__u16 *) (frame + 0x467+2)) = 0; /* offset */ 429 430 /* 431 * Give back and unmap the borrowed frame. 432 */ 433 map_page_to_frame(frame,0,PAGE_NOT_PRESENT,0); 434 434 frame_free(frame); 435 435 … … 473 473 474 474 memcopy(gdt, gdt_new, GDT_ITEMS*sizeof(struct descriptor)); 475 gdtr.base = (__address) gdt_new;476 475 gdtr.base = KA2PA((__address) gdt_new); 476 477 477 if (l_apic_send_init_ipi(pr[i].l_apic_id)) { 478 478 /* -
arch/mips/src/putchar.c
rd1a184f rd47f0e1 31 31 #include <arch/cp0.h> 32 32 33 #define VIDEORAM 0x A00000033 #define VIDEORAM 0xB0000000 34 34 35 35 void putchar(const char ch) -
doc/arch/mips
rd1a184f rd47f0e1 23 23 add rom startmem 0x1fc00000 1k load "load.bin" 24 24 25 add dprinter printer 0x A00000025 add dprinter printer 0x10000000 26 26 27 27 -
src/Makefile.config
rd1a184f rd47f0e1 6 6 7 7 # Support for symetric multiprocessors 8 #SMP=__SMP__8 SMP=__SMP__ 9 9 10 10 # Improved support for hyperthreading … … 15 15 16 16 # Deadlock detection support for spinlocks. 17 DEBUG_SPINLOCK=DEBUG_SPINLOCK17 #DEBUG_SPINLOCK=DEBUG_SPINLOCK 18 18 19 19 # Uncomment if you want to compile in userspace support
Note:
See TracChangeset
for help on using the changeset viewer.