Rev 576 | Rev 958 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 576 | Rev 717 | ||
---|---|---|---|
Line 146... | Line 146... | ||
146 | # handler 64 128 |
146 | # handler 64 128 |
147 | # handler 128 192 |
147 | # handler 128 192 |
148 | # handler 192 256 |
148 | # handler 192 256 |
149 | h_end: |
149 | h_end: |
150 | 150 | ||
151 | - | ||
152 | # THIS IS USERSPACE CODE |
- | |
153 | .global utext |
- | |
154 | utext: |
- | |
155 | xor %ax,%ax |
- | |
156 | mov %ax,%ds |
- | |
157 | mov %ax,%es |
- | |
158 | mov %ax,%fs |
- | |
159 | mov %ax,%gs |
- | |
160 | 0: |
- | |
161 | int $48 |
- | |
162 | jmp 0b |
- | |
163 | # not reached |
- | |
164 | utext_end: |
- | |
165 | - | ||
166 | .data |
151 | .data |
167 | .global utext_size |
- | |
168 | utext_size: |
- | |
169 | .long utext_end - utext |
- | |
170 | - | ||
171 | .global interrupt_handler_size |
152 | .global interrupt_handler_size |
172 | 153 | ||
173 | interrupt_handler_size: .long (h_end-h_start)/IDT_ITEMS |
154 | interrupt_handler_size: .long (h_end-h_start)/IDT_ITEMS |