Commit 673d8001 authored by PhoeniX's avatar PhoeniX

Renamed H -> HPP

parent 40136b18
......@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "pxlib.h"
#include "pxlib.hpp"
int main()
{
......
......@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "interrupts.h"
#include "interrupts.hpp"
PIDT idt = 0;
char* handlers = 0;
INTERRUPT32 interrupts32[256];
......
......@@ -16,7 +16,7 @@
#ifndef INTERRUPTS_H
#define INTERRUPTS_H
#include "pxlib.h"
#include "pxlib.hpp"
#pragma pack(push,1)
typedef struct {
short offset_low;
......
......@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "pxlib.h"
#include "memory.hpp"
PGRUB grub_data;
PPTE pagetable = (PPTE)0x20000;
PALLOCTABLE allocs = 0;
......
......@@ -16,8 +16,8 @@
#ifndef MEMORY_H
#define MEMORY_H
#include "pxlib.h"
#include "interrupts.h"
#include "pxlib.hpp"
#include "interrupts.hpp"
typedef void* PML4E, **PPML4E;
typedef PPML4E PDPE, *PPDPE;
typedef PPDPE PDE, *PPDE;
......
......@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "modules.h"
#include "modules.hpp"
PMODULEINFO load_module_elf(void* addr)
{
// Parsing ELF
......
......@@ -16,8 +16,8 @@
#ifndef MODULES_H
#define MODULES_H
#include "pxlib.h"
#include "multiboot_info.h"
#include "pxlib.hpp"
#include "multiboot_info.hpp"
extern void modules_init();
typedef struct {
struct {
......
......@@ -14,6 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "multiboot_info.h"
#include "multiboot_info.hpp"
GRUBDATA kernel_data;
......@@ -16,8 +16,8 @@
#ifndef MULTIBOOT_INFO_H
#define MULTIBOOT_INFO_H
#include "pxlib.h"
#include "memory.h"
#include "pxlib.hpp"
#include "memory.hpp"
typedef struct {
void* start;
void* end;
......
......@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "process.h"
#include "process.hpp"
void process_loop()
{
......
......@@ -16,7 +16,7 @@
#ifndef PROCESS_H
#define PROCESS_H
#include "pxlib.h"
#include "pxlib.hpp"
extern void process_loop();
#endif
......@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "pxlib.h"
#include "pxlib.hpp"
char* display = (char*)0xB8000;
void clrscr()
{
......
......@@ -38,10 +38,10 @@ void __inline outportb(short port, char c){ asm("outb %b0, %w1"::"a"(c),"d"(port
void __inline outports(short port, short c){ asm("outw %w0, %w1"::"a"(c),"d"(port)); }
void __inline outportl(short port, uint c){ asm("outl %d0, %w1"::"a"(c),"d"(port)); }
_uint64 __inline rdtsc() { unsigned long eax, edx; asm("rdtsc":"=a"(eax),"=d"(edx)); _uint64 ret; ret = edx; ret <<= 32; ret |= eax; return ret; }
#include "memory.h"
#include "smp.h"
#include "interrupts.h"
#include "multiboot_info.h"
#include "modules.h"
#include "process.h"
#include "memory.hpp"
#include "smp.hpp"
#include "interrupts.hpp"
#include "multiboot_info.hpp"
#include "modules.hpp"
#include "process.hpp"
#endif
......@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "smp.h"
#include "smp.hpp"
unsigned char g_acpiCpuCount = 0;
unsigned char g_activeCpuCount = 0;
int g_acpiCpuIds[256];
......
......@@ -16,7 +16,7 @@
#ifndef SMP_H
#define SMP_H
#include "memory.h"
#include "memory.hpp"
extern void smp_init();
typedef unsigned int *uintptr_t;
typedef struct AcpiHeader
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment