Lines Matching defs:regs
28 struct bios_regs regs;
29 regs.eax = BIOS_APM_CHECK;
30 regs.ebx = 0;
31 call_bios(0x15, ®s);
33 if ((regs.flags & CARRY_FLAG) != 0
34 || (regs.ebx & 0xffff) != 'PM') {
40 gKernelArgs.platform_args.apm.version = regs.eax & 0xffff;
41 gKernelArgs.platform_args.apm.flags = regs.ecx & 0xffff;
54 regs.eax = BIOS_APM_DISCONNECT;
55 regs.ebx = 0;
56 call_bios(0x15, ®s);
62 regs.eax = BIOS_APM_CONNECT_32_BIT;
63 regs.ebx = 0;
64 call_bios(0x15, ®s);
65 if ((regs.flags & CARRY_FLAG) != 0) {
71 gKernelArgs.platform_args.apm.code32_segment_base = regs.eax & 0xffff;
72 gKernelArgs.platform_args.apm.code32_segment_offset = regs.ebx;
73 gKernelArgs.platform_args.apm.code32_segment_length = regs.esi & 0xffff;
75 gKernelArgs.platform_args.apm.code16_segment_base = regs.ecx & 0xffff;
76 gKernelArgs.platform_args.apm.code16_segment_length = regs.esi >> 16;
78 gKernelArgs.platform_args.apm.data_segment_base = regs.edx & 0xffff;
79 gKernelArgs.platform_args.apm.data_segment_length = regs.edi & 0xffff;