[inc][c++] add some additional __BEGIN_CDECL/__END_CDECLS to various global headers

Just a few that were missed, and picked up with some additional C++ code.
This commit is contained in:
Travis Geiselbrecht
2021-01-19 22:17:15 -08:00
parent 3083f63253
commit 7033559d38
10 changed files with 37 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ static inline void mp_init(void) {}
static inline void mp_reschedule(mp_cpu_mask_t target, uint flags) {}
static inline void mp_set_curr_cpu_active(bool active) {}
static inline enum handler_return mp_mbx_reschedule_irq(void) { return 0; }
static inline enum handler_return mp_mbx_reschedule_irq(void) { return INT_NO_RESCHEDULE; }
// only one cpu exists in UP and if you're calling these functions, it's active...
static inline int mp_is_cpu_active(uint cpu) { return 1; }

View File

@@ -10,6 +10,9 @@
#include <arch.h>
#include <stddef.h>
#include <stdlib.h>
#include <lk/compiler.h>
__BEGIN_CDECLS
#define PAGE_ALIGN(x) ALIGN(x, PAGE_SIZE)
#define IS_PAGE_ALIGNED(x) IS_ALIGNED(x, PAGE_SIZE)
@@ -35,3 +38,5 @@ struct page_range {
};
int novm_get_arenas(struct page_range *ranges, int number_of_ranges);
__END_CDECLS