Rev 132 | Rev 137 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 132 | Rev 136 | ||
---|---|---|---|
Line 115... | Line 115... | ||
115 | 115 | ||
116 | mov $\i,%cl; |
116 | mov $\i,%cl; |
117 | movl $1,%eax; |
117 | movl $1,%eax; |
118 | test $0xe0,%cl; |
118 | test $0xe0,%cl; |
119 | jnz 0f; |
119 | jnz 0f; |
- | 120 | and $0x1f,%cl; |
|
120 | shl %cl,%eax; |
121 | shl %cl,%eax; |
121 | and $ERROR_WORD_INTERRUPT_LIST,%eax; |
122 | and $ERROR_WORD_INTERRUPT_LIST,%eax; |
122 | jnz 0f; |
123 | jz 0f; |
123 | 124 | ||
124 | popa; |
125 | popa; |
125 | pop %ebp; |
126 | pop %ebp; |
126 | add $4,%esp; |
127 | add $4,%esp; |
127 | iret; |
128 | iret; |
Line 355... | Line 356... | ||
355 | 356 | ||
356 | 357 | ||
357 | # THIS IS USERSPACE CODE |
358 | # THIS IS USERSPACE CODE |
358 | .global utext |
359 | .global utext |
359 | utext: |
360 | utext: |
- | 361 | xor %ax,%ax; |
|
- | 362 | mov %ax,%ds; |
|
- | 363 | mov %ax,%es; |
|
- | 364 | mov %ax,%fs; |
|
- | 365 | mov %ax,%gs; |
|
360 | 0: |
366 | 0: |
361 | # movl $0xdeadbeaf, %eax |
367 | # movl $0xdeadbeaf, %eax |
362 | int $48 |
368 | int $48 |
- | 369 | cli; |
|
- | 370 | sti; |
|
363 | jmp 0b |
371 | jmp 0b |
364 | # not reached |
372 | # not reached |
365 | utext_end: |
373 | utext_end: |
366 | 374 | ||
367 | .data |
375 | .data |