Rename cpu definitions to cpu.h and cpuop.h
This commit is contained in:
parent
bd44784c5f
commit
d1a7bc9020
@ -3,12 +3,8 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
||||||
#if defined(__x86_64__)
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#else
|
|
||||||
#error "Unsupported Architecture!"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <syscall.h>
|
#include <syscall.h>
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
#include <sys/mp.h>
|
#include <sys/mp.h>
|
||||||
#include <sys/spinlock.h>
|
#include <sys/spinlock.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
|
|
||||||
uint32_t lockLevel[MAX_CPUS];
|
uint32_t lockLevel[MAX_CPUS];
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
#include <sys/kdebug.h>
|
#include <sys/kdebug.h>
|
||||||
#include <sys/mp.h>
|
#include <sys/mp.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
#include <machine/atomic.h>
|
#include <machine/atomic.h>
|
||||||
#include <machine/trap.h>
|
#include <machine/trap.h>
|
||||||
#include <machine/lapic.h>
|
#include <machine/lapic.h>
|
||||||
|
@ -223,7 +223,7 @@ typedef struct XSAVEArea
|
|||||||
#define MSR_CSTAR 0xC0000083
|
#define MSR_CSTAR 0xC0000083
|
||||||
#define MSR_SFMASK 0xC0000084
|
#define MSR_SFMASK 0xC0000084
|
||||||
|
|
||||||
#include "amd64op.h"
|
#include "cpuop.h"
|
||||||
|
|
||||||
#endif /* __AMD64_H__ */
|
#endif /* __AMD64_H__ */
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
#ifndef __PMAP_H__
|
#ifndef __PMAP_H__
|
||||||
#define __PMAP_H__
|
#define __PMAP_H__
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* +----------------------+
|
* +----------------------+
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
#ifndef __MACHINE_THREAD_H__
|
#ifndef __MACHINE_THREAD_H__
|
||||||
#define __MACHINE_THREAD_H__
|
#define __MACHINE_THREAD_H__
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
|
|
||||||
typedef struct ThreadArchStackFrame {
|
typedef struct ThreadArchStackFrame {
|
||||||
uint64_t r15;
|
uint64_t r15;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include <sys/kdebug.h>
|
#include <sys/kdebug.h>
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/pmap.h>
|
#include <machine/pmap.h>
|
||||||
#include <machine/trap.h>
|
#include <machine/trap.h>
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
#include <sys/kassert.h>
|
#include <sys/kassert.h>
|
||||||
#include <sys/kdebug.h>
|
#include <sys/kdebug.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
#include <machine/pmap.h>
|
#include <machine/pmap.h>
|
||||||
#include <machine/trap.h>
|
#include <machine/trap.h>
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include <sys/irq.h>
|
#include <sys/irq.h>
|
||||||
#include <sys/spinlock.h>
|
#include <sys/spinlock.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/ioapic.h>
|
#include <machine/ioapic.h>
|
||||||
#include <machine/lapic.h>
|
#include <machine/lapic.h>
|
||||||
#include <machine/trap.h>
|
#include <machine/trap.h>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include "../dev/console.h"
|
#include "../dev/console.h"
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/pmap.h>
|
#include <machine/pmap.h>
|
||||||
#include <machine/multiboot.h>
|
#include <machine/multiboot.h>
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
#include <sys/ktime.h>
|
#include <sys/ktime.h>
|
||||||
#include <sys/mp.h>
|
#include <sys/mp.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
#include <machine/pmap.h>
|
#include <machine/pmap.h>
|
||||||
#include <machine/lapic.h>
|
#include <machine/lapic.h>
|
||||||
#include <machine/mp.h>
|
#include <machine/mp.h>
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
#include <sys/kassert.h>
|
#include <sys/kassert.h>
|
||||||
#include <sys/pci.h>
|
#include <sys/pci.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
|
|
||||||
#define PCI_PORT_ADDR 0xCF8
|
#define PCI_PORT_ADDR 0xCF8
|
||||||
#define PCI_PORT_DATABASE 0xCFC
|
#define PCI_PORT_DATABASE 0xCFC
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
#include <sys/kdebug.h>
|
#include <sys/kdebug.h>
|
||||||
#include <sys/kmem.h>
|
#include <sys/kmem.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
#include <machine/mp.h>
|
#include <machine/mp.h>
|
||||||
#include <machine/pmap.h>
|
#include <machine/pmap.h>
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
#include <sys/kmem.h>
|
#include <sys/kmem.h>
|
||||||
#include <sys/mp.h>
|
#include <sys/mp.h>
|
||||||
#include <sys/thread.h>
|
#include <sys/thread.h>
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
#include <machine/trap.h>
|
#include <machine/trap.h>
|
||||||
#include <machine/pmap.h>
|
#include <machine/pmap.h>
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
#include <sys/kdebug.h>
|
#include <sys/kdebug.h>
|
||||||
#include <sys/ktime.h>
|
#include <sys/ktime.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
|
|
||||||
uint64_t
|
uint64_t
|
||||||
Time_GetTSC()
|
Time_GetTSC()
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#include <sys/mp.h>
|
#include <sys/mp.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/lapic.h>
|
#include <machine/lapic.h>
|
||||||
#include <machine/trap.h>
|
#include <machine/trap.h>
|
||||||
#include <machine/mp.h>
|
#include <machine/mp.h>
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
#include <sys/kdebug.h>
|
#include <sys/kdebug.h>
|
||||||
#include <sys/kmem.h>
|
#include <sys/kmem.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
#include <machine/pmap.h>
|
#include <machine/pmap.h>
|
||||||
#include <machine/mp.h>
|
#include <machine/mp.h>
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
|
|
||||||
void DebugConsole_Init()
|
void DebugConsole_Init()
|
||||||
{
|
{
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
#include <sys/kdebug.h>
|
#include <sys/kdebug.h>
|
||||||
#include <sys/irq.h>
|
#include <sys/irq.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
|
|
||||||
#include "../console.h"
|
#include "../console.h"
|
||||||
#include "ps2.h"
|
#include "ps2.h"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/kdebug.h>
|
#include <sys/kdebug.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/pmap.h>
|
#include <machine/pmap.h>
|
||||||
|
|
||||||
#include "vgacons.h"
|
#include "vgacons.h"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include <sys/disk.h>
|
#include <sys/disk.h>
|
||||||
#include <sys/elf64.h>
|
#include <sys/elf64.h>
|
||||||
|
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/trap.h>
|
#include <machine/trap.h>
|
||||||
#include <machine/pmap.h>
|
#include <machine/pmap.h>
|
||||||
#include <sys/thread.h>
|
#include <sys/thread.h>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include <sys/spinlock.h>
|
#include <sys/spinlock.h>
|
||||||
|
|
||||||
// PGSIZE
|
// PGSIZE
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/pmap.h>
|
#include <machine/pmap.h>
|
||||||
|
|
||||||
/* 'FREEPAGE' */
|
/* 'FREEPAGE' */
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
#include <sys/spinlock.h>
|
#include <sys/spinlock.h>
|
||||||
|
|
||||||
#include <machine/atomic.h>
|
#include <machine/atomic.h>
|
||||||
#include <machine/amd64.h>
|
#include <machine/cpu.h>
|
||||||
#include <machine/amd64op.h>
|
#include <machine/cpuop.h>
|
||||||
|
|
||||||
Spinlock lockListLock = {
|
Spinlock lockListLock = {
|
||||||
0, 0, 0, 0, 0, 0, 0,
|
0, 0, 0, 0, 0, 0, 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user