Changeset e13daa5d in mainline
- Timestamp:
- 2008-03-19T21:13:49Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 047aa46
- Parents:
- 20b8bf3
- Location:
- kernel/arch
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/cpu.h
r20b8bf3 re13daa5d 36 36 #define KERN_amd64_CPU_H_ 37 37 38 #define RFLAGS_IF (1 << 9) 39 #define RFLAGS_RF (1 << 16) 38 #define RFLAGS_IF (1 << 9) 39 #define RFLAGS_DF (1 << 10) 40 #define RFLAGS_RF (1 << 16) 40 41 41 42 #define EFER_MSR_NUM 0xc0000080 -
kernel/arch/amd64/src/asm_utils.S
r20b8bf3 re13daa5d 249 249 250 250 save_all_gpr 251 cld 251 252 252 253 movq $(\i), %rdi # %rdi - first parameter -
kernel/arch/amd64/src/boot/boot.S
r20b8bf3 re13daa5d 55 55 56 56 multiboot_image_start: 57 cld 57 58 movl $START_STACK, %esp # initialize stack pointer 58 59 lgdtl bootstrap_gdtr # initialize Global Descriptor Table register … … 127 128 mov $VESA_INIT_SEGMENT << 4, %edi 128 129 mov $e_vesa_init - vesa_init, %ecx 129 cld130 130 rep movsb 131 131 … … 283 283 movq $AP_BOOT_OFFSET, %rdi 284 284 movq $_hardcoded_unmapped_size, %rcx 285 cld286 285 rep movsb 287 286 … … 557 556 558 557 movw $0x0c00, %ax # black background, light red foreground 559 cld560 558 561 559 ploop: -
kernel/arch/amd64/src/syscall.c
r20b8bf3 re13daa5d 63 63 /* Mask RFLAGS on syscall 64 64 * - disable interrupts, until we exchange the stack register 65 * (mask the IE bit) 65 * (mask the IF bit) 66 * - clear DF so that the string instructions operate in 67 * the right direction 66 68 */ 67 write_msr(AMD_MSR_SFMASK, 0x200);69 write_msr(AMD_MSR_SFMASK, RFLAGS_IF | RFLAGS_DF); 68 70 } 69 71 -
kernel/arch/ia32/src/asm.S
r20b8bf3 re13daa5d 174 174 movw %ax, %es 175 175 176 cld 176 177 sti 177 178 # syscall_handler(edx, ecx, ebx, esi, edi, ebp, eax) … … 234 235 movw %ax, %es 235 236 237 cld 238 236 239 pushl %esp # *istate 237 240 pushl $(\i) # intnum -
kernel/arch/ia32/src/boot/boot.S
r20b8bf3 re13daa5d 51 51 52 52 multiboot_image_start: 53 cld 53 54 movl $START_STACK, %esp # initialize stack pointer 54 55 lgdt KA2PA(bootstrap_gdtr) # initialize Global Descriptor Table register … … 86 87 mov $VESA_INIT_SEGMENT << 4, %edi 87 88 mov $e_vesa_init - vesa_init, %ecx 88 cld89 89 rep movsb 90 90 … … 207 207 movl $AP_BOOT_OFFSET, %edi 208 208 movl $_hardcoded_unmapped_size, %ecx 209 cld210 209 rep movsb 211 210 … … 280 279 281 280 movw $0x0c00, %ax # black background, light red foreground 282 cld283 281 284 282 ploop:
Note:
See TracChangeset
for help on using the changeset viewer.