Rev 251 | Rev 257 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 251 | Rev 252 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #include <arch/pm.h> |
37 | #include <arch/pm.h> |
38 | 38 | ||
39 | .text |
39 | .text |
40 | .global interrupt_handlers |
40 | .global interrupt_handlers |
41 | .global panic_printf |
41 | .global panic_printf |
42 | .global cpuid |
- | |
43 | 42 | ||
44 | panic_printf: |
43 | panic_printf: |
45 | movq $halt, (%rsp) |
44 | movq $halt, (%rsp) |
46 | jmp printf |
45 | jmp printf |
47 | 46 | ||
- | 47 | .global memcpy |
|
- | 48 | memcpy: |
|
- | 49 | jmp _memcpy |
|
- | 50 | ||
- | 51 | .global cpuid |
|
48 | .global has_cpuid |
52 | .global has_cpuid |
49 | .global rdtsc |
53 | .global rdtsc |
50 | .global read_efer_flag |
54 | .global read_efer_flag |
51 | .global set_efer_flag |
55 | .global set_efer_flag |
52 | 56 | ||
- | 57 | ||
53 | ## Determine CPUID support |
58 | ## Determine CPUID support |
54 | # |
59 | # |
55 | # Return 0 in EAX if CPUID is not support, 1 if supported. |
60 | # Return 0 in EAX if CPUID is not support, 1 if supported. |
56 | # |
61 | # |
57 | has_cpuid: |
62 | has_cpuid: |