Changeset 89344d85 in mainline for arch/amd64/src/asm_utils.S
- Timestamp:
- 2005-09-03T00:19:23Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36b209a
- Parents:
- e4a6dda
- File:
- 
      - 1 edited
 
 - 
          
  arch/amd64/src/asm_utils.S (modified) (4 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      arch/amd64/src/asm_utils.Sre4a6dda r89344d85 40 40 .global interrupt_handlers 41 41 .global panic_printf 42 .global cpuid 42 43 43 44 panic_printf: … … 47 48 .global has_cpuid 48 49 .global rdtsc 49 50 50 .global read_efer_flag 51 .global set_efer_flag 52 51 53 ## Determine CPUID support 52 54 # … … 71 73 ret 72 74 75 cpuid: 76 movq %rbx, %r10 # we have to preserve rbx across function calls 77 78 movl %edi,%eax # load the command into %eax 79 80 cpuid 81 movl %eax,0(%rsi) 82 movl %ebx,4(%rsi) 83 movl %ecx,8(%rsi) 84 movl %edx,12(%rsi) 85 86 movq %r10, %rbx 87 ret 73 88 74 89 rdtsc: … … 76 91 rdtsc 77 92 ret 78 93 94 set_efer_flag: 95 movq $0xc0000080, %rcx 96 rdmsr 97 btsl %edi, %eax 98 wrmsr 99 ret 100 101 read_efer_flag: 102 movq $0xc0000080, %rcx 103 rdmsr 104 ret 79 105 80 106 # Push all general purpose registers on stack except %rbp, %rsp 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
