2 * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Copyright 2001, Travis Geiselbrecht. All rights reserved.
6 * Distributed under the terms of the NewOS License.
14 /* void get_current_cpuid(cpuid_info *info, uint32 eaxRegister,
15 uint32 ecxRegister) */
16 FUNCTION(get_current_cpuid):
19 movl 12(%esp),%edi /* first arg points to the cpuid_info structure */
20 movl 16(%esp),%eax /* second arg sets up eax */
21 movl 20(%esp),%ecx /* third arg sets up ecx */
23 movl %eax,0(%edi) /* copy the regs into the cpuid_info structure */
29 xorl %eax, %eax /* return B_OK */
31 FUNCTION_END(get_current_cpuid)
34 /* unsigned int get_eflags(void) */
39 FUNCTION_END(get_eflags)
42 /* void set_eflags(unsigned int val) */
47 FUNCTION_END(set_eflags)