Changes in kernel/arch/amd64/src/asm.S [e80329d6:f77e591d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/asm.S
re80329d6 rf77e591d 95 95 memcpy_from_uspace_failover_address: 96 96 memcpy_to_uspace_failover_address: 97 xor l %eax, %eax /* return 0, failure */97 xorq %rax, %rax /* return 0, failure */ 98 98 ret 99 99 … … 143 143 144 144 set_efer_flag: 145 mov l $0xc0000080, %ecx145 movq $0xc0000080, %rcx 146 146 rdmsr 147 147 btsl %edi, %eax … … 150 150 151 151 read_efer_flag: 152 mov l $0xc0000080, %ecx152 movq $0xc0000080, %rcx 153 153 rdmsr 154 154 ret … … 243 243 * Stop stack traces here if we came from userspace. 244 244 */ 245 xor l %edx, %edx246 cmpq $( GDT_SELECTOR(KTEXT_DES)), ISTATE_OFFSET_CS(%rsp)245 xorq %rdx, %rdx 246 cmpq $(gdtselector(KTEXT_DES)), ISTATE_OFFSET_CS(%rsp) 247 247 cmovnzq %rdx, %rbp 248 248 … … 386 386 movq ISTATE_OFFSET_RSP(%rsp), %rsp 387 387 388 /*389 * Clear the rest of the scratch registers to prevent information leak.390 * The 32-bit XOR on the low GPRs actually clears the entire 64-bit391 * register and the instruction is shorter.392 */393 xorl %edx, %edx394 xorl %esi, %esi395 xorl %edi, %edi396 xorq %r8, %r8397 xorq %r9, %r9398 xorq %r10, %r10399 400 388 sysretq 401 389 … … 425 413 movq %rdi, %rsi 426 414 movq $(PA2KA(0xb8000)), %rdi /* base of EGA text mode memory */ 427 xor l %eax, %eax415 xorq %rax, %rax 428 416 429 417 /* Read bits 8 - 15 of the cursor address */ … … 505 493 movq $(PA2KA(0xb80a0)), %rsi 506 494 movq $(PA2KA(0xb8000)), %rdi 507 mov l $480, %ecx495 movq $480, %rcx 508 496 rep movsq 509 497 510 498 /* Clear the 24th row */ 511 xor l %eax, %eax512 mov l $20, %ecx499 xorq %rax, %rax 500 movq $20, %rcx 513 501 rep stosq 514 502
Note:
See TracChangeset
for help on using the changeset viewer.