Changeset 4fc93d5 in mainline
- Timestamp:
- 2012-07-26T21:46:57Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d30b14f
- Parents:
- 8f4f444
- File:
- 
      - 1 edited
 
 - 
          
  kernel/arch/amd64/src/asm.S (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      kernel/arch/amd64/src/asm.Sr8f4f444 r4fc93d5 362 362 */ 363 363 call syscall_handler 364 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 365 373 cli 366 374 … … 388 396 sysretq 389 397 398 bad_rip: 399 movq %rsp, %rdi 400 movabs $bad_rip_msg, %rsi 401 callq fault_from_uspace 402 /* not reached */ 403 404 bad_rip_msg: 405 .asciz "Invalid instruction pointer." 406 390 407 /** Print Unicode character to EGA display. 391 408 * 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
