summaryrefslogtreecommitdiff
path: root/kernel/arch/aarch64/Processor.h
blob: 81be414430a04c835bf4b7517ad8c3528be40f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
// ============================================================================
// arch/aarch64/Processor.h - AArch64 per-CPU state
// ============================================================================

#include <stdint.h>
#include <kernel/types.h>

struct BootInfo;

class Processor {
public:
    void InitEarly(const BootInfo& boot_info);

    // Phase 2 will add:
    //   PhysAddr GetGicBase() const;
    //   uint64_t GetVbarEl1() const;
    //   PhysAddr GetTtbr0() const;
    //   PhysAddr GetTtbr1() const;

    Processor() = default;
    Processor(const Processor&) = delete;
    Processor& operator=(const Processor&) = delete;

private:
    // Phase 2: gic_base, vbar_el1, ttbr0, ttbr1...
};

Processor& processor();