* Coding style cleanup, no functional change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33792 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-10-27 18:22:39 +00:00
parent 6c76785bef
commit d337132b41
+17 -14
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2007, Axel Dörfler, [email protected]. All rights reserved. * Copyright 2002-2009, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved. * Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
@@ -114,7 +114,8 @@ typedef struct x86_cpu_module_info {
uint32 (*count_mtrrs)(void); uint32 (*count_mtrrs)(void);
void (*init_mtrrs)(void); void (*init_mtrrs)(void);
void (*set_mtrr)(uint32 index, uint64 base, uint64 length, uint8 type); void (*set_mtrr)(uint32 index, uint64 base, uint64 length,
uint8 type);
status_t (*get_mtrr)(uint32 index, uint64* _base, uint64* _length, status_t (*get_mtrr)(uint32 index, uint64* _base, uint64* _length,
uint8* _type); uint8* _type);
@@ -198,8 +199,8 @@ struct vm86_iframe {
uint16 gs, __gsh; uint16 gs, __gsh;
}; };
#define IFRAME_IS_USER(f) ( ((f)->cs == USER_CODE_SEG) \ #define IFRAME_IS_USER(f) ((f)->cs == USER_CODE_SEG \
|| (((f)->flags & 0x20000) != 0 )) || ((f)->flags & 0x20000) != 0)
#define IFRAME_IS_VM86(f) (((f)->flags & 0x20000) != 0) #define IFRAME_IS_VM86(f) (((f)->flags & 0x20000) != 0)
// features // features
@@ -254,20 +255,21 @@ extern "C" {
struct arch_thread; struct arch_thread;
void __x86_setup_system_time(uint32 cv_factor); void __x86_setup_system_time(uint32 conversionFactor);
void i386_context_switch(struct arch_thread *old_state, struct arch_thread *new_state, addr_t new_pgdir); void i386_context_switch(struct arch_thread* oldState,
struct arch_thread* newState, addr_t newPageDir);
void x86_userspace_thread_exit(void); void x86_userspace_thread_exit(void);
void x86_end_userspace_thread_exit(void); void x86_end_userspace_thread_exit(void);
void x86_enter_userspace(addr_t entry, addr_t stackTop); void x86_enter_userspace(addr_t entry, addr_t stackTop);
void i386_set_tss_and_kstack(addr_t kstack); void i386_set_tss_and_kstack(addr_t kstack);
void i386_switch_stack_and_call(addr_t stack, void (*func)(void*), void* arg); void i386_switch_stack_and_call(addr_t stack, void (*func)(void*), void* arg);
void i386_swap_pgdir(addr_t new_pgdir); void i386_swap_pgdir(addr_t newPageDir);
void i386_fnsave(void *fpu_state); void i386_fnsave(void* fpuState);
void i386_fxsave(void *fpu_state); void i386_fxsave(void* fpuState);
void i386_frstor(const void *fpu_state); void i386_frstor(const void* fpuState);
void i386_fxrstor(const void *fpu_state); void i386_fxrstor(const void* fpuState);
void i386_fnsave_swap(void *old_fpu_state, const void *new_fpu_state); void i386_fnsave_swap(void* oldFpuState, const void* newFpuState);
void i386_fxsave_swap(void *old_fpu_state, const void *new_fpu_state); void i386_fxsave_swap(void* oldFpuState, const void* newFpuState);
uint32 x86_read_ebp(); uint32 x86_read_ebp();
uint32 x86_read_cr0(); uint32 x86_read_cr0();
void x86_write_cr0(uint32 value); void x86_write_cr0(uint32 value);
@@ -279,7 +281,8 @@ void x86_set_task_gate(int32 cpu, int32 n, int32 segment);
void* x86_get_idt(int32 cpu); void* x86_get_idt(int32 cpu);
uint32 x86_count_mtrrs(void); uint32 x86_count_mtrrs(void);
void x86_set_mtrr(uint32 index, uint64 base, uint64 length, uint8 type); void x86_set_mtrr(uint32 index, uint64 base, uint64 length, uint8 type);
status_t x86_get_mtrr(uint32 index, uint64 *_base, uint64 *_length, uint8 *_type); status_t x86_get_mtrr(uint32 index, uint64* _base, uint64* _length,
uint8* _type);
bool x86_check_feature(uint32 feature, enum x86_feature_type type); bool x86_check_feature(uint32 feature, enum x86_feature_type type);
void* x86_get_double_fault_stack(int32 cpu, size_t* _size); void* x86_get_double_fault_stack(int32 cpu, size_t* _size);
int32 x86_double_fault_get_cpu(void); int32 x86_double_fault_get_cpu(void);