arm: remove unused variables from arch_kernel_args

Change-Id: Ice2be644142b646205648f44fb5bce5e9848e69d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6192
Reviewed-by: Fredrik Holmqvist <[email protected]>
Tested-by: Automation <[email protected]>
This commit is contained in:
David Karoly
2023-03-11 21:05:49 +00:00
parent 9a9c5e9fee
commit 0aeb55c8ac
2 changed files with 0 additions and 20 deletions
@@ -23,12 +23,6 @@
// kernel args // kernel args
typedef struct { typedef struct {
int cpu_type;
int fpu_type;
int mmu_type;
int platform;
int machine; // platform specific machine type
// architecture specific // architecture specific
uint32 phys_pgdir; uint32 phys_pgdir;
uint32 vir_pgdir; uint32 vir_pgdir;
-14
View File
@@ -18,17 +18,9 @@
#include <elf.h> #include <elf.h>
int arch_cpu_type;
int arch_fpu_type;
int arch_mmu_type;
int arch_platform;
status_t status_t
arch_cpu_preboot_init_percpu(kernel_args *args, int curr_cpu) arch_cpu_preboot_init_percpu(kernel_args *args, int curr_cpu)
{ {
// enable FPU
//ppc:set_msr(get_msr() | MSR_FP_AVAILABLE);
// The current thread must be NULL for all CPUs till we have threads. // The current thread must be NULL for all CPUs till we have threads.
// Some boot code relies on this. // Some boot code relies on this.
arch_thread_set_current_thread(NULL); arch_thread_set_current_thread(NULL);
@@ -50,12 +42,6 @@ arch_cpu_init_percpu(kernel_args *args, int curr_cpu)
status_t status_t
arch_cpu_init(kernel_args *args) arch_cpu_init(kernel_args *args)
{ {
arch_cpu_type = args->arch_args.cpu_type;
arch_fpu_type = args->arch_args.fpu_type;
arch_mmu_type = args->arch_args.mmu_type;
arch_platform = args->arch_args.platform;
arch_platform = args->arch_args.machine;
return B_OK; return B_OK;
} }