Changeset 195
- Timestamp:
- Jul 13, 2017, 12:28:37 PM (7 years ago)
- Location:
- trunk/hal/x86_64/core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_context.c
r193 r195 52 52 53 53 /* set cpu context pointer in thread */ 54 thread->cpu_context = (void *)context;54 thread->cpu_context = (void *)context; 55 55 56 56 /* build the context */ -
trunk/hal/x86_64/core/hal_cpu.S
r166 r195 70 70 ret 71 71 72 ASM_ENTRY(in16) 73 movq %rdi,%rdx 74 xorq %rax,%rax 75 inw %dx,%ax 76 ret 77 72 78 ASM_ENTRY(out8) 73 79 movq %rdi,%rdx 74 80 movq %rsi,%rax 75 81 outb %al,%dx 82 ret 83 84 ASM_ENTRY(out16) 85 movq %rdi,%rdx 86 movq %rsi,%rax 87 outw %ax,%dx 76 88 ret 77 89 -
trunk/hal/x86_64/core/hal_init.c
r192 r195 151 151 } 152 152 153 static void init_bootinfo_ioc(boot_device_t *dev) 154 { 155 memset(dev, 0, sizeof(boot_device_t)); 156 157 dev->base = 0; 158 dev->type = (DEV_FUNC_IOC << 16) | IMPL_IOC_BDV; 159 dev->channels = 1; 160 } 161 153 162 static void init_bootinfo_pic(boot_device_t *dev) 154 163 { … … 203 212 info->io_cxy = 0; 204 213 205 info->ext_dev_nr = 2;214 info->ext_dev_nr = 3; 206 215 init_bootinfo_txt(&info->ext_dev[0]); 207 216 init_bootinfo_pic(&info->ext_dev[1]); 217 init_bootinfo_ioc(&info->ext_dev[2]); 208 218 209 219 info->cxy = 0; -
trunk/hal/x86_64/core/hal_internal.h
r168 r195 37 37 uint64_t rdtsc(); 38 38 uint8_t in8(uint32_t port); 39 uint16_t in16(uint32_t port); 39 40 void out8(uint32_t port, uint8_t val); 41 void out16(uint32_t port, uint16_t val); 40 42 uint64_t rdmsr(uint32_t); 41 43 void wrmsr(uint32_t, uint64_t);
Note: See TracChangeset
for help on using the changeset viewer.