Commit 016a26d2cab94bb0858a42bd3299f6adbcbbb86f
- Diff rendering mode:
- inline
- side by side
|   | |||
| 1 | ; This function has been taken from JamesM's kernel development tutorials | ||
| 1 | ; This file is from JamesM's kernel development tutorials | ||
| 2 | 2 | ||
| 3 | 3 | [GLOBAL copy_page_physical] | |
| 4 | 4 | ||
| … | … | ||
| 32 | 32 | popf ; Pop EFLAGS back. | |
| 33 | 33 | pop ebx ; Get the original value of EBX back. | |
| 34 | 34 | ret | |
| 35 | |||
| 36 | [GLOBAL read_eip] | ||
| 37 | read_eip: | ||
| 38 | pop eax ; Get the return address | ||
| 39 | jmp eax ; Return. Can't use RET because return | ||
| 40 | ; address popped off the stack. |

