Compile in arch_platform.cpp for x86_64. The apm_init call is disabled for x86_64, APM is 32-bit only.
This commit is contained in:
@@ -50,6 +50,7 @@ typedef struct apm_info {
|
|||||||
|
|
||||||
|
|
||||||
#ifndef _BOOT_MODE
|
#ifndef _BOOT_MODE
|
||||||
|
#ifndef __x86_64__
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@@ -60,6 +61,7 @@ status_t apm_init(struct kernel_args *args);
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif // !__x86_64__
|
||||||
#endif // !_BOOT_MODE
|
#endif // !_BOOT_MODE
|
||||||
|
|
||||||
#endif /* KERNEL_APM_H */
|
#endif /* KERNEL_APM_H */
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
#include <boot/kernel_args.h>
|
#include <boot/kernel_args.h>
|
||||||
|
|
||||||
#include <arch/debug.h>
|
#include <arch/debug.h>
|
||||||
#include <arch/platform.h>
|
|
||||||
#include <arch/vm_translation_map.h>
|
#include <arch/vm_translation_map.h>
|
||||||
#include <arch/vm.h>
|
#include <arch/vm.h>
|
||||||
#include <arch/user_debugger.h>
|
#include <arch/user_debugger.h>
|
||||||
@@ -244,27 +243,6 @@ arch_debug_call_with_fault_handler(cpu_ent* cpu, jmp_buf jumpBuffer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
|
||||||
arch_platform_init(struct kernel_args *args)
|
|
||||||
{
|
|
||||||
return B_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
status_t
|
|
||||||
arch_platform_init_post_vm(struct kernel_args *args)
|
|
||||||
{
|
|
||||||
return B_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
status_t
|
|
||||||
arch_platform_init_post_thread(struct kernel_args *args)
|
|
||||||
{
|
|
||||||
return B_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
arch_rtc_init(struct kernel_args *args, struct real_time_data *data)
|
arch_rtc_init(struct kernel_args *args, struct real_time_data *data)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ if $(TARGET_ARCH) = x86_64 {
|
|||||||
arch_commpage.cpp
|
arch_commpage.cpp
|
||||||
arch_debug.cpp
|
arch_debug.cpp
|
||||||
arch_elf.cpp
|
arch_elf.cpp
|
||||||
arch_platform.cpp
|
|
||||||
arch_real_time_clock.cpp
|
arch_real_time_clock.cpp
|
||||||
arch_smp.cpp
|
arch_smp.cpp
|
||||||
arch_thread.cpp
|
arch_thread.cpp
|
||||||
@@ -90,6 +89,7 @@ local archGenericSources =
|
|||||||
arch_cpu.cpp
|
arch_cpu.cpp
|
||||||
arch_debug_console.cpp
|
arch_debug_console.cpp
|
||||||
arch_int.cpp
|
arch_int.cpp
|
||||||
|
arch_platform.cpp
|
||||||
arch_vm.cpp
|
arch_vm.cpp
|
||||||
arch_vm_translation_map.cpp
|
arch_vm_translation_map.cpp
|
||||||
pic.cpp
|
pic.cpp
|
||||||
|
|||||||
@@ -29,7 +29,10 @@ arch_platform_init_post_vm(struct kernel_args *args)
|
|||||||
status_t
|
status_t
|
||||||
arch_platform_init_post_thread(struct kernel_args *args)
|
arch_platform_init_post_thread(struct kernel_args *args)
|
||||||
{
|
{
|
||||||
|
// APM is not supported on x86_64.
|
||||||
|
#ifndef __x86_64__
|
||||||
apm_init(args);
|
apm_init(args);
|
||||||
|
#endif
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user