summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/hal/smp.h
blob: b26d4ac051a5b1e71087f127b220612c6933f55a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _JOVE_x86_64_HAL_SMP_H
#define _JOVE_x86_64_HAL_SMP_H 1

#include "arch/x86_64/proc/process.h"
#include "gdt.h"
#include "hal/obj.h"
#include "hal/smp.h"

typedef struct processor
{
    struct gdt_entry gdt[GDT_TSS_HI+1];
    struct tss tss;
    uint8_t iopb[0x2000];
    
    jove_owned_obj_t *pcb_obj;
    pcb_t *pcb;
} processor_t;

void smp_init_bsp(void);

#endif