[arch][warnings] fix -Wmissing-declarations warnings
This commit is contained in:
@@ -136,6 +136,8 @@ void arch_enter_uspace(vaddr_t entry_point, vaddr_t user_stack_top) {
|
||||
}
|
||||
|
||||
#if WITH_SMP
|
||||
/* called from assembly */
|
||||
void arm64_secondary_entry(ulong);
|
||||
void arm64_secondary_entry(ulong asm_cpu_num) {
|
||||
uint cpu = arch_curr_cpu_num();
|
||||
if (cpu != asm_cpu_num)
|
||||
|
||||
@@ -157,6 +157,7 @@ __WEAK void arm64_syscall(struct arm64_iframe_long *iframe, bool is_64bit) {
|
||||
panic("unhandled syscall vector\n");
|
||||
}
|
||||
|
||||
void arm64_sync_exception(struct arm64_iframe_long *iframe);
|
||||
void arm64_sync_exception(struct arm64_iframe_long *iframe) {
|
||||
struct fault_handler_table_entry *fault_handler;
|
||||
uint32_t esr = ARM64_READ_SYSREG(esr_el1);
|
||||
@@ -220,6 +221,7 @@ void arm64_sync_exception(struct arm64_iframe_long *iframe) {
|
||||
panic("die\n");
|
||||
}
|
||||
|
||||
void arm64_invalid_exception(struct arm64_iframe_long *iframe, unsigned int which);
|
||||
void arm64_invalid_exception(struct arm64_iframe_long *iframe, unsigned int which) {
|
||||
printf("invalid exception, which 0x%x\n", which);
|
||||
dump_iframe(iframe);
|
||||
|
||||
@@ -49,13 +49,13 @@ status_t arch_mp_send_ipi(mp_cpu_mask_t target, mp_ipi_t ipi) {
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
enum handler_return arm_ipi_generic_handler(void *arg) {
|
||||
static enum handler_return arm_ipi_generic_handler(void *arg) {
|
||||
LTRACEF("cpu %u, arg %p\n", arch_curr_cpu_num(), arg);
|
||||
|
||||
return INT_NO_RESCHEDULE;
|
||||
}
|
||||
|
||||
enum handler_return arm_ipi_reschedule_handler(void *arg) {
|
||||
static enum handler_return arm_ipi_reschedule_handler(void *arg) {
|
||||
LTRACEF("cpu %u, arg %p\n", arch_curr_cpu_num(), arg);
|
||||
|
||||
return mp_mbx_reschedule_irq();
|
||||
|
||||
Reference in New Issue
Block a user