Changeset 36b209a in mainline
- Timestamp:
- 2005-09-03T07:11:10Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 82a80d3
- Parents:
- 89344d85
- Location:
- arch/amd64
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/asm.h
r89344d85 r36b209a 54 54 __u8 out; 55 55 56 asm(56 __asm__ volatile ( 57 57 "mov %1, %%dx;" 58 58 "inb %%dx,%%al;" … … 60 60 :"=m"(out) 61 61 :"m"(port) 62 :"% dx","%al"62 :"%rdx","%rax" 63 63 ); 64 64 return out; … … 67 67 static inline __u8 outb(__u16 port,__u8 b) 68 68 { 69 asm(69 __asm__ volatile ( 70 70 "mov %0,%%dx;" 71 71 "mov %1,%%al;" … … 73 73 : 74 74 :"m"( port), "m" (b) 75 :"% dx","%al"75 :"%rdx","%rax" 76 76 ); 77 77 } -
arch/amd64/src/amd64.c
r89344d85 r36b209a 93 93 void calibrate_delay_loop(void) 94 94 { 95 return;96 95 i8254_calibrate_delay_loop(); 97 96 i8254_normal_operation(); -
arch/amd64/src/asm_utils.S
r89344d85 r36b209a 40 40 .global interrupt_handlers 41 41 .global panic_printf 42 .global cpuid43 42 44 43 panic_printf: … … 46 45 jmp printf 47 46 47 .global memcpy 48 memcpy: 49 jmp _memcpy 50 51 .global cpuid 48 52 .global has_cpuid 49 53 .global rdtsc … … 51 55 .global set_efer_flag 52 56 57 53 58 ## Determine CPUID support 54 59 # -
arch/amd64/src/delay.S
r89344d85 r36b209a 37 37 38 38 asm_delay_loop: 39 0: lahf 40 dec %edi 39 0: dec %rdi 41 40 jnz 0b 42 41 ret 43 42 44 43 asm_fake_loop: 45 0: lahf 46 dec %edi 44 0: dec %rdi 47 45 jz 0b 48 46 ret -
arch/amd64/src/dummy.s
r89344d85 r36b209a 44 44 cpu_sleep: 45 45 cpu_print_report: 46 fpu_init:47 46 48 47 dummy: … … 50 49 ret 51 50 52 .global memcpy 53 memcpy: 54 jmp _memcpy51 fpu_init: 52 fninit 53 ret
Note:
See TracChangeset
for help on using the changeset viewer.