* We now support the global page feature of x86 processors that prevents
kernel TLBs from being flushed on context switch. * new arch_cpu_user_TLB_invalidate() that now does what arch_cpu_global_TLB_invalidate() did before. * arch_cpu_global_TLB_invalidate() will now flush all TLBs, even those from the kernel. * some cleanups. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15535 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -27,11 +27,15 @@ status_t arch_cpu_shutdown(bool reboot);
|
||||
|
||||
void arch_cpu_invalidate_TLB_range(addr_t start, addr_t end);
|
||||
void arch_cpu_invalidate_TLB_list(addr_t pages[], int num_pages);
|
||||
void arch_cpu_user_TLB_invalidate(void);
|
||||
void arch_cpu_global_TLB_invalidate(void);
|
||||
|
||||
status_t arch_cpu_user_memcpy(void *to, const void *from, size_t size, addr_t *faultHandler);
|
||||
ssize_t arch_cpu_user_strlcpy(char *to, const char *from, size_t size, addr_t *faultHandler);
|
||||
status_t arch_cpu_user_memset(void *s, char c, size_t count, addr_t *faultHandler);
|
||||
status_t arch_cpu_user_memcpy(void *to, const void *from, size_t size,
|
||||
addr_t *faultHandler);
|
||||
ssize_t arch_cpu_user_strlcpy(char *to, const char *from, size_t size,
|
||||
addr_t *faultHandler);
|
||||
status_t arch_cpu_user_memset(void *s, char c, size_t count,
|
||||
addr_t *faultHandler);
|
||||
|
||||
void arch_cpu_idle(void);
|
||||
void arch_cpu_sync_icache(void *address, size_t length);
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
#define IA32_MSR_MTRR_PHYSICAL_BASE_0 0x200
|
||||
#define IA32_MSR_MTRR_PHYSICAL_MASK_0 0x201
|
||||
|
||||
// cr4 flags
|
||||
#define IA32_CR4_GLOBAL_PAGES (1UL << 7)
|
||||
|
||||
// Memory type ranges
|
||||
#define IA32_MTR_UNCACHED 0
|
||||
#define IA32_MTR_WRITE_COMBINED 1
|
||||
@@ -104,6 +107,8 @@ void i386_fxsave_swap(void *old_fpu_state, const void *new_fpu_state);
|
||||
uint32 x86_read_ebp();
|
||||
uint32 x86_read_cr0();
|
||||
void x86_write_cr0(uint32 value);
|
||||
uint32 x86_read_cr4();
|
||||
void x86_write_cr4(uint32 value);
|
||||
uint64 x86_read_msr(uint32 registerNumber);
|
||||
void x86_write_msr(uint32 registerNumber, uint64 value);
|
||||
void x86_set_task_gate(int32 n, int32 segment);
|
||||
|
||||
Reference in New Issue
Block a user