Rev 252 | Rev 332 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 252 | Rev 257 | ||
---|---|---|---|
Line 53... | Line 53... | ||
53 | .global rdtsc |
53 | .global rdtsc |
54 | .global read_efer_flag |
54 | .global read_efer_flag |
55 | .global set_efer_flag |
55 | .global set_efer_flag |
56 | 56 | ||
57 | 57 | ||
- | 58 | # THIS IS USERSPACE CODE |
|
- | 59 | .global utext |
|
- | 60 | utext: |
|
- | 61 | xor %ax,%ax; |
|
- | 62 | mov %ax,%ds; |
|
- | 63 | mov %ax,%es; |
|
- | 64 | mov %ax,%fs; |
|
- | 65 | mov %ax,%gs; |
|
- | 66 | 0: |
|
- | 67 | int $48 |
|
- | 68 | jmp 0b |
|
- | 69 | # not reached |
|
- | 70 | utext_end: |
|
- | 71 | ||
- | 72 | .data |
|
- | 73 | .global utext_size |
|
- | 74 | utext_size: |
|
- | 75 | .long utext_end - utext |
|
- | 76 | ||
- | 77 | ||
58 | ## Determine CPUID support |
78 | ## Determine CPUID support |
59 | # |
79 | # |
60 | # Return 0 in EAX if CPUID is not support, 1 if supported. |
80 | # Return 0 in EAX if CPUID is not support, 1 if supported. |
61 | # |
81 | # |
62 | has_cpuid: |
82 | has_cpuid: |