1 /* 2 * Copyright 2019 Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include <KernelExport.h> 8 9 #include <arch/cpu.h> 10 #include <boot/kernel_args.h> 11 #include <commpage.h> 12 #include <elf.h> 13 14 15 status_t 16 arch_cpu_preboot_init_percpu(kernel_args *args, int curr_cpu) 17 { 18 return B_OK; 19 } 20 21 22 status_t 23 arch_cpu_init_percpu(kernel_args *args, int curr_cpu) 24 { 25 return 0; 26 } 27 28 29 status_t 30 arch_cpu_init(kernel_args *args) 31 { 32 return B_OK; 33 } 34 35 36 status_t 37 arch_cpu_init_post_vm(kernel_args *args) 38 { 39 return B_OK; 40 } 41 42 43 status_t 44 arch_cpu_init_post_modules(kernel_args *args) 45 { 46 return B_OK; 47 } 48 49 50 status_t 51 arch_cpu_shutdown(bool reboot) 52 { 53 // never reached 54 return B_ERROR; 55 } 56 57 58 void 59 arch_cpu_sync_icache(void *address, size_t len) 60 { 61 } 62 63 64 void 65 arch_cpu_memory_read_barrier(void) 66 { 67 } 68 69 70 void 71 arch_cpu_memory_write_barrier(void) 72 { 73 } 74 75 76 void 77 arch_cpu_invalidate_TLB_range(addr_t start, addr_t end) 78 { 79 } 80 81 82 void 83 arch_cpu_invalidate_TLB_list(addr_t pages[], int num_pages) 84 { 85 } 86 87 88 void 89 arch_cpu_global_TLB_invalidate(void) 90 { 91 } 92 93 94 void 95 arch_cpu_user_TLB_invalidate(void) 96 { 97 } 98