Changes in kernel/arch/amd64/src/asm.S [45f7449:cb4f078] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/asm.S
r45f7449 rcb4f078 362 362 */ 363 363 call syscall_handler 364 365 /* 366 * Test if the saved return address is canonical and not-kernel. 367 * We do this by looking at the 16 most significant bits 368 * of the saved return address (two bytes at offset 6). 369 */ 370 testw $0xffff, ISTATE_OFFSET_RIP+6(%rsp) 371 jnz bad_rip 372 364 373 365 cli 374 366 … … 396 388 sysretq 397 389 398 bad_rip:399 movq %rsp, %rdi400 movabs $bad_rip_msg, %rsi401 xorb %al, %al402 callq fault_from_uspace403 /* not reached */404 405 bad_rip_msg:406 .asciz "Invalid instruction pointer."407 408 390 /** Print Unicode character to EGA display. 409 391 *
Note:
See TracChangeset
for help on using the changeset viewer.