Removed unnecessary inclusions of <boot/kernel_args.h> in private kernel
headers and respectively added includes in source files. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37259 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,20 +10,23 @@
|
||||
|
||||
|
||||
#include <OS.h>
|
||||
#include <boot/kernel_args.h>
|
||||
|
||||
|
||||
#define PAGE_ALIGN(x) (((x) + (B_PAGE_SIZE - 1)) & ~(B_PAGE_SIZE - 1))
|
||||
|
||||
|
||||
struct kernel_args;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
status_t arch_cpu_preboot_init_percpu(kernel_args *args, int curr_cpu);
|
||||
status_t arch_cpu_init(kernel_args *args);
|
||||
status_t arch_cpu_init_percpu(kernel_args *args, int curr_cpu);
|
||||
status_t arch_cpu_init_post_vm(kernel_args *args);
|
||||
status_t arch_cpu_init_post_modules(kernel_args *args);
|
||||
status_t arch_cpu_preboot_init_percpu(struct kernel_args *args, int curr_cpu);
|
||||
status_t arch_cpu_init(struct kernel_args *args);
|
||||
status_t arch_cpu_init_percpu(struct kernel_args *args, int curr_cpu);
|
||||
status_t arch_cpu_init_post_vm(struct kernel_args *args);
|
||||
status_t arch_cpu_init_post_modules(struct kernel_args *args);
|
||||
status_t arch_cpu_shutdown(bool reboot);
|
||||
|
||||
void arch_cpu_invalidate_TLB_range(addr_t start, addr_t end);
|
||||
@@ -47,7 +50,7 @@ void arch_cpu_memory_write_barrier(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <arch_cpu.h>
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ struct kernel_args;
|
||||
|
||||
status_t arch_int_init(struct kernel_args* args);
|
||||
status_t arch_int_init_post_vm(struct kernel_args* args);
|
||||
status_t arch_int_init_io(kernel_args* args);
|
||||
status_t arch_int_init_io(struct kernel_args* args);
|
||||
status_t arch_int_init_post_device_manager(struct kernel_args* args);
|
||||
|
||||
void arch_int_enable_interrupts(void);
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
#include <smp.h>
|
||||
#include <timer.h>
|
||||
#include <boot/kernel_args.h>
|
||||
#include <arch/cpu.h>
|
||||
|
||||
|
||||
@@ -23,6 +22,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
struct kernel_args;
|
||||
struct thread;
|
||||
|
||||
|
||||
@@ -55,7 +55,8 @@ typedef struct cpu_ent {
|
||||
} cpu_ent __attribute__((aligned(64)));
|
||||
|
||||
|
||||
extern cpu_ent gCPU[MAX_BOOT_CPUS];
|
||||
//extern cpu_ent gCPU[MAX_BOOT_CPUS];
|
||||
extern cpu_ent gCPU[];
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -64,7 +65,7 @@ extern "C" {
|
||||
|
||||
status_t cpu_preboot_init_percpu(struct kernel_args *args, int curr_cpu);
|
||||
status_t cpu_init(struct kernel_args *args);
|
||||
status_t cpu_init_percpu(kernel_args *ka, int curr_cpu);
|
||||
status_t cpu_init_percpu(struct kernel_args *ka, int curr_cpu);
|
||||
status_t cpu_init_post_vm(struct kernel_args *args);
|
||||
status_t cpu_init_post_modules(struct kernel_args *args);
|
||||
bigtime_t cpu_get_active_time(int32 cpu);
|
||||
|
||||
@@ -25,7 +25,7 @@ extern "C" {
|
||||
|
||||
status_t int_init(struct kernel_args* args);
|
||||
status_t int_init_post_vm(struct kernel_args* args);
|
||||
status_t int_init_io(kernel_args* args);
|
||||
status_t int_init_io(struct kernel_args* args);
|
||||
status_t int_init_post_device_manager(struct kernel_args* args);
|
||||
int int_io_interrupt_handler(int vector, bool levelTriggered);
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#include <AutoDeleter.h>
|
||||
|
||||
#include <Notifications.h>
|
||||
#include <util/KMessage.h>
|
||||
|
||||
#include "ErrorOutput.h"
|
||||
#include "FDCloser.h"
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <lock.h>
|
||||
#include <util/AutoLock.h>
|
||||
#include <util/DoublyLinkedList.h>
|
||||
#include <util/KMessage.h>
|
||||
|
||||
#include "Node.h"
|
||||
#include "PackageDomain.h"
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <arch/real_time_clock.h>
|
||||
|
||||
#include <arch_platform.h>
|
||||
#include <boot/kernel_args.h>
|
||||
#include <real_time_data.h>
|
||||
#include <smp.h>
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <TypeConstants.h>
|
||||
|
||||
#include <cpu.h>
|
||||
#include <debug.h>
|
||||
#include <debug_heap.h>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <KernelExport.h>
|
||||
|
||||
#include <boot/kernel_args.h>
|
||||
#include <smp.h>
|
||||
#include <util/AutoLock.h>
|
||||
#include <vm/vm.h>
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
#include <arch/vm_translation_map.h>
|
||||
|
||||
#include <boot/kernel_args.h>
|
||||
|
||||
#include "paging/32bit/X86PagingMethod32Bit.h"
|
||||
#include "paging/pae/X86PagingMethodPAE.h"
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <AutoDeleter.h>
|
||||
|
||||
#include <arch_system_info.h>
|
||||
#include <boot/kernel_args.h>
|
||||
#include <int.h>
|
||||
#include <thread.h>
|
||||
#include <vm/vm.h>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
#include <AutoDeleter.h>
|
||||
|
||||
#include <boot/kernel_args.h>
|
||||
#include <util/AutoLock.h>
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_page.h>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include <boot/kernel_args.h>
|
||||
#include <cpu.h>
|
||||
#include <debug.h>
|
||||
#include <debug_heap.h>
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <NodeMonitor.h>
|
||||
|
||||
#include <boot_device.h>
|
||||
#include <boot/kernel_args.h>
|
||||
#include <elf.h>
|
||||
#include <fs/devfs.h>
|
||||
#include <fs/KPath.h>
|
||||
@@ -714,7 +715,7 @@ handle_driver_events(void */*_fs*/, int /*iteration*/)
|
||||
driver->binary_updated = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case kRemoveDriver:
|
||||
{
|
||||
// Mark removed drivers as updated
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <ctype.h>
|
||||
|
||||
#include <AutoDeleter.h>
|
||||
#include <boot/kernel_args.h>
|
||||
#include <debug.h>
|
||||
#include <image_defs.h>
|
||||
#include <kernel.h>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <boot_device.h>
|
||||
#include <boot/elf.h>
|
||||
#include <boot/kernel_args.h>
|
||||
#include <elf.h>
|
||||
#include <fs/KPath.h>
|
||||
#include <fs/node_monitor.h>
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <arch/debug.h>
|
||||
#include <arch/int.h>
|
||||
#include <arch/smp.h>
|
||||
#include <boot/kernel_args.h>
|
||||
#include <cpu.h>
|
||||
#include <generic_syscall.h>
|
||||
#include <int.h>
|
||||
|
||||
@@ -420,6 +420,10 @@ public:
|
||||
file << "#ifndef _ASSEMBLER" << endl;
|
||||
file << endl;
|
||||
|
||||
// includes
|
||||
file << "#include <TypeConstants.h>" << endl;
|
||||
file << endl;
|
||||
|
||||
// output syscall count
|
||||
file << "const int kSyscallCount = SYSCALL_COUNT;" << endl;
|
||||
file << endl;
|
||||
|
||||
Reference in New Issue
Block a user