mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-15 11:02:39 +03:00
36 lines
1.0 KiB
C
36 lines
1.0 KiB
C
#ifndef __SYS__SMP_H__
|
|
#define __SYS__SMP_H__
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
#include <mm/vmm.h>
|
|
#define LIMINE_NO_POINTERS
|
|
#include <limine.h>
|
|
|
|
#if defined (__x86_64__) || defined (__i386__)
|
|
|
|
struct limine_smp_info *init_smp(size_t *cpu_count,
|
|
uint32_t *_bsp_lapic_id,
|
|
bool longmode,
|
|
bool lv5,
|
|
pagemap_t pagemap,
|
|
bool x2apic,
|
|
bool nx,
|
|
uint64_t hhdm,
|
|
bool wp);
|
|
|
|
#elif defined (__aarch64__)
|
|
|
|
struct limine_smp_info *init_smp(size_t *cpu_count,
|
|
uint64_t *bsp_mpidr,
|
|
pagemap_t pagemap,
|
|
uint64_t mair,
|
|
uint64_t tcr,
|
|
uint64_t sctlr);
|
|
#else
|
|
#error Unknown architecture
|
|
#endif
|
|
|
|
#endif
|