site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Mike has implemented ACPI 2 standard in IA-64 for Darwin, Mike and Mitsuru and Nate are the ACPI-project on freeBSD so i think if there were such "stupid-code" Mike couldn't miss it :) in freeBSD-IA-64 , ACPI is not implemented yet then Mike is in advance , on fb it gives if (cpu_mode_is64bit()) { void/ apci disable } see also, ACPI interrupt concept for more information http://www.freebsd.org/projects/acpi/ http://freebsd.active-venture.com/handbook/acpi-debug.html Best Regards, {Blocked MAn} {|} On Aug 8, 2006, at 12:22 PM, darwin-dev-request@lists.apple.com wrote: Now that the source is released, we might as well get to work. That's the point of releasing the source in the first place, right? File: xnu-792.10.96/osfmk/i386/acpi.c Line: 151 if (cpu_mode_is64bit()) { cpu_IA32e_enable(current_cpu_datap()); cpu_desc_load64(current_cpu_datap()); kprintf("acpi_sleep_kernel 64-bit mode re-enabled\n"); fast_syscall_init64(); } else { fast_syscall_init() } Bug: The 64 bit mode should be restored if the cpu is *NOT* currently in 64 bit mode. The first line should read: if (!cpu_mode_is64bit()) { The diagnostic there is perhaps confusing the matter. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Without double-checking the source, I think you are making an erroneous assumption here. I believe the applicable logic is that, returning from sleep the CPU will either be in 32-bit mode on a 32-bit system, or 64-bit mode on a 64-bit system. In the former case, nothing need be done as that is the mode in which the kernel operates. On non-64-bit systems, attempting to restore 64-bit mode operation would be fatal. In the latter case, however, the kernel is run in IA32e mode and thus it's necessary to change. = Mike This email sent to site_archiver@lists.apple.com
participants (1)
-
almisr