Changeset 6a22fcb in mainline
- Timestamp:
- 2006-03-16T19:48:27Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 37c57f2
- Parents:
- b1fd4f0
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/smp/smp.c
rb1fd4f0 r6a22fcb 56 56 void smp_init(void) 57 57 { 58 int status; 59 __address l_apic_address, io_apic_address; 60 58 61 if (acpi_madt) { 59 62 acpi_madt_parse(); … … 65 68 } 66 69 70 l_apic_address = PA2KA(PFN2ADDR(frame_alloc_rc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA, &status))); 71 if (status != FRAME_OK) 72 panic("cannot allocate address for l_apic\n"); 73 74 io_apic_address = PA2KA(PFN2ADDR(frame_alloc_rc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA, &status))); 75 if (status != FRAME_OK) 76 panic("cannot allocate address for io_apic\n"); 77 67 78 if (config.cpu_count > 1) { 68 page_mapping_insert(AS_KERNEL, (__address) l_apic, (__address) l_apic,79 page_mapping_insert(AS_KERNEL, l_apic_address, (__address) l_apic, 69 80 PAGE_NOT_CACHEABLE); 70 page_mapping_insert(AS_KERNEL, (__address) io_apic, (__address) io_apic,81 page_mapping_insert(AS_KERNEL, io_apic_address, (__address) io_apic, 71 82 PAGE_NOT_CACHEABLE); 83 84 l_apic = (__u32 *) l_apic_address; 85 io_apic = (__u32 *) io_apic_address; 72 86 } 73 87 -
arch/ia64/Makefile.inc
rb1fd4f0 r6a22fcb 39 39 # 40 40 41 INIT_ADDRESS = 0xe000000000400000 42 INIT_SIZE = 0x100000 41 INIT0_ADDRESS = 0xe000000000400000 42 INIT0_SIZE = 0x100000 43 44 INIT1_ADDRESS = 0xe000000000800000 45 INIT1_SIZE = 0x100000 43 46 44 47 CFLAGS += -mconstant-gp -fno-unwind-tables -mfixed-range=f32-f127 … … 46 49 AFLAGS += -mconstant-gp 47 50 48 DEFS += -D__64_BITS__ -DINIT_ADDRESS=$(INIT_ADDRESS) -DINIT_SIZE=$(INIT_SIZE) 51 DEFS += -D__64_BITS__ -DINIT0_ADDRESS=$(INIT0_ADDRESS) -DINIT0_SIZE=$(INIT0_SIZE) \ 52 -DINIT1_ADDRESS=$(INIT1_ADDRESS) -DINIT1_SIZE=$(INIT1_SIZE) 49 53 50 54 ## Compile with page hash table support. -
arch/ia64/src/ia64.c
rb1fd4f0 r6a22fcb 53 53 54 54 /* Setup usermode */ 55 init.cnt = 1; 56 init.tasks[0].addr = INIT_ADDRESS; 57 init.tasks[0].size = INIT_SIZE; 55 init.cnt = 2; 56 init.tasks[0].addr = INIT0_ADDRESS; 57 init.tasks[0].size = INIT0_SIZE; 58 init.tasks[1].addr = INIT1_ADDRESS; 59 init.tasks[1].size = INIT1_SIZE; 58 60 } 59 61 -
contrib/conf/ski.conf
rb1fd4f0 r6a22fcb 1 1 load HelenOS/boot/kernel.bin 2 romload HelenOS/uspace/init/init 0x400000 2 romload HelenOS/uspace/ns/ns 0x400000 3 romload HelenOS/uspace/init/init 0x800000 4 -
genarch/src/mm/as_pt.c
rb1fd4f0 r6a22fcb 67 67 memsetb((__address) dst_ptl0, PAGE_SIZE, 0); 68 68 } else { 69 __address src, dst; 70 69 71 /* 70 72 * Copy the kernel address space portion to new PTL0. 71 * TODO: copy only kernel address space.72 73 */ 73 74 74 75 ipl = interrupts_disable(); 75 spinlock_lock(&AS_KERNEL->lock); 76 spinlock_lock(&AS_KERNEL->lock); 76 77 src_ptl0 = (pte_t *) PA2KA((__address) AS_KERNEL->page_table); 77 memcpy((void *) dst_ptl0,(void *) src_ptl0, PAGE_SIZE); 78 79 src = (__address) &src_ptl0[PTL0_INDEX(KERNEL_ADDRESS_SPACE_START)]; 80 dst = (__address) &dst_ptl0[PTL0_INDEX(KERNEL_ADDRESS_SPACE_START)]; 81 82 memsetb((__address) dst_ptl0, PAGE_SIZE, 0); 83 memcpy((void *) dst, (void *) src, PAGE_SIZE - (src - (__address) src_ptl0)); 78 84 spinlock_unlock(&AS_KERNEL->lock); 79 85 interrupts_restore(ipl);
Note:
See TracChangeset
for help on using the changeset viewer.