- Add missing globals
- stubbed commpage stuff. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26094 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -501,6 +501,7 @@ extern int arch_cpu_type;
|
|||||||
extern int arch_fpu_type;
|
extern int arch_fpu_type;
|
||||||
extern int arch_mmu_type;
|
extern int arch_mmu_type;
|
||||||
extern int arch_platform;
|
extern int arch_platform;
|
||||||
|
extern int arch_machine;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Use of (some) special purpose registers.
|
Use of (some) special purpose registers.
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ KernelMergeObject arch_m68k_060.o :
|
|||||||
|
|
||||||
KernelMergeObject kernel_arch_m68k.o :
|
KernelMergeObject kernel_arch_m68k.o :
|
||||||
arch_atomic.c
|
arch_atomic.c
|
||||||
|
arch_commpage.cpp
|
||||||
arch_cpu.cpp
|
arch_cpu.cpp
|
||||||
arch_cpu_asm.S
|
arch_cpu_asm.S
|
||||||
arch_debug_console.cpp
|
arch_debug_console.cpp
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2007, Travis Geiselbrecht. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <commpage.h>
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <KernelExport.h>
|
||||||
|
|
||||||
|
#include <cpu.h>
|
||||||
|
#include <smp.h>
|
||||||
|
|
||||||
|
|
||||||
|
// user syscall assembly stubs
|
||||||
|
extern "C" void _user_syscall_int(void);
|
||||||
|
extern unsigned int _user_syscall_int_end;
|
||||||
|
extern "C" void _user_syscall_sysenter(void);
|
||||||
|
extern unsigned int _user_syscall_sysenter_end;
|
||||||
|
|
||||||
|
|
||||||
|
status_t
|
||||||
|
arch_commpage_init(void)
|
||||||
|
{
|
||||||
|
panic("WRITEME");
|
||||||
|
return B_NO_INIT;
|
||||||
|
return B_OK;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -23,6 +23,11 @@ extern struct m68k_cpu_ops cpu_ops_060;
|
|||||||
|
|
||||||
struct m68k_cpu_ops cpu_ops;
|
struct m68k_cpu_ops cpu_ops;
|
||||||
|
|
||||||
|
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)
|
||||||
{
|
{
|
||||||
@@ -44,6 +49,7 @@ arch_cpu_init(kernel_args *args)
|
|||||||
arch_fpu_type = args->arch_args.fpu_type;
|
arch_fpu_type = args->arch_args.fpu_type;
|
||||||
arch_mmu_type = args->arch_args.mmu_type;
|
arch_mmu_type = args->arch_args.mmu_type;
|
||||||
arch_platform = args->arch_args.platform;
|
arch_platform = args->arch_args.platform;
|
||||||
|
arch_platform = args->arch_args.machine;
|
||||||
void (*flush_insn_pipeline)(void);
|
void (*flush_insn_pipeline)(void);
|
||||||
void (*flush_atc_all)(void);
|
void (*flush_atc_all)(void);
|
||||||
void (*flush_atc_user)(void);
|
void (*flush_atc_user)(void);
|
||||||
|
|||||||
@@ -28,6 +28,8 @@
|
|||||||
// a new thread structure.
|
// a new thread structure.
|
||||||
static struct arch_thread sInitialState;
|
static struct arch_thread sInitialState;
|
||||||
|
|
||||||
|
struct thread *gCurrentThread;
|
||||||
|
|
||||||
// Helper function for thread creation, defined in arch_asm.S.
|
// Helper function for thread creation, defined in arch_asm.S.
|
||||||
extern void m68k_kernel_thread_root();
|
extern void m68k_kernel_thread_root();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user