Rename cpu definitions to cpu.h and cpuop.h

This commit is contained in:
Ali Mashtizadeh 2023-10-23 16:27:55 -04:00
parent bd44784c5f
commit d1a7bc9020
24 changed files with 36 additions and 40 deletions

View File

@ -3,12 +3,8 @@
#include <sys/types.h>
#include <sys/mman.h>
#if defined(__x86_64__)
#include <sys/cdefs.h>
#include <machine/amd64.h>
#else
#error "Unsupported Architecture!"
#endif
#include <machine/cpu.h>
#include <syscall.h>

View File

@ -8,8 +8,8 @@
#include <sys/mp.h>
#include <sys/spinlock.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
uint32_t lockLevel[MAX_CPUS];

View File

@ -7,8 +7,8 @@
#include <sys/kdebug.h>
#include <sys/mp.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
#include <machine/atomic.h>
#include <machine/trap.h>
#include <machine/lapic.h>

View File

@ -223,7 +223,7 @@ typedef struct XSAVEArea
#define MSR_CSTAR 0xC0000083
#define MSR_SFMASK 0xC0000084
#include "amd64op.h"
#include "cpuop.h"
#endif /* __AMD64_H__ */

View File

@ -2,7 +2,7 @@
#ifndef __PMAP_H__
#define __PMAP_H__
#include <machine/amd64.h>
#include <machine/cpu.h>
/*
* +----------------------+

View File

@ -2,8 +2,8 @@
#ifndef __MACHINE_THREAD_H__
#define __MACHINE_THREAD_H__
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
typedef struct ThreadArchStackFrame {
uint64_t r15;

View File

@ -9,7 +9,7 @@
#include <sys/kdebug.h>
#include <sys/cdefs.h>
#include <machine/amd64.h>
#include <machine/cpu.h>
#include <machine/pmap.h>
#include <machine/trap.h>

View File

@ -8,8 +8,8 @@
#include <sys/kassert.h>
#include <sys/kdebug.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
#include <machine/pmap.h>
#include <machine/trap.h>

View File

@ -8,7 +8,7 @@
#include <sys/irq.h>
#include <sys/spinlock.h>
#include <machine/amd64.h>
#include <machine/cpu.h>
#include <machine/ioapic.h>
#include <machine/lapic.h>
#include <machine/trap.h>

View File

@ -10,7 +10,7 @@
#include "../dev/console.h"
#include <machine/amd64.h>
#include <machine/cpu.h>
#include <machine/pmap.h>
#include <machine/multiboot.h>

View File

@ -10,8 +10,8 @@
#include <sys/ktime.h>
#include <sys/mp.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
#include <machine/pmap.h>
#include <machine/lapic.h>
#include <machine/mp.h>

View File

@ -4,8 +4,8 @@
#include <sys/kassert.h>
#include <sys/pci.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
#define PCI_PORT_ADDR 0xCF8
#define PCI_PORT_DATABASE 0xCFC

View File

@ -7,8 +7,8 @@
#include <sys/kdebug.h>
#include <sys/kmem.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
#include <machine/mp.h>
#include <machine/pmap.h>

View File

@ -8,8 +8,8 @@
#include <sys/kmem.h>
#include <sys/mp.h>
#include <sys/thread.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
#include <machine/trap.h>
#include <machine/pmap.h>

View File

@ -6,8 +6,8 @@
#include <sys/kdebug.h>
#include <sys/ktime.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
uint64_t
Time_GetTSC()

View File

@ -12,7 +12,7 @@
#include <sys/syscall.h>
#include <sys/mp.h>
#include <machine/amd64.h>
#include <machine/cpu.h>
#include <machine/lapic.h>
#include <machine/trap.h>
#include <machine/mp.h>

View File

@ -7,8 +7,8 @@
#include <sys/kdebug.h>
#include <sys/kmem.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
#include <machine/pmap.h>
#include <machine/mp.h>

View File

@ -7,8 +7,8 @@
#include <sys/cdefs.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
void DebugConsole_Init()
{

View File

@ -7,8 +7,8 @@
#include <sys/kdebug.h>
#include <sys/irq.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
#include "../console.h"
#include "ps2.h"

View File

@ -8,7 +8,7 @@
#include <sys/cdefs.h>
#include <sys/kdebug.h>
#include <machine/amd64.h>
#include <machine/cpu.h>
#include <machine/pmap.h>
#include "vgacons.h"

View File

@ -14,7 +14,7 @@
#include <sys/disk.h>
#include <sys/elf64.h>
#include <machine/amd64.h>
#include <machine/cpu.h>
#include <machine/trap.h>
#include <machine/pmap.h>
#include <sys/thread.h>

View File

@ -16,7 +16,7 @@
#include <sys/spinlock.h>
// PGSIZE
#include <machine/amd64.h>
#include <machine/cpu.h>
#include <machine/pmap.h>
/* 'FREEPAGE' */

View File

@ -15,8 +15,8 @@
#include <sys/spinlock.h>
#include <machine/atomic.h>
#include <machine/amd64.h>
#include <machine/amd64op.h>
#include <machine/cpu.h>
#include <machine/cpuop.h>
Spinlock lockListLock = {
0, 0, 0, 0, 0, 0, 0,