Import backup from 2003-08-26
This commit is contained in:
parent
449917d434
commit
c968aa28ac
@ -17,7 +17,7 @@
|
|||||||
%define BOOT_VESA_VBE 0x0106 ;512 - copy of VESA VBEInfoBlock
|
%define BOOT_VESA_VBE 0x0106 ;512 - copy of VESA VBEInfoBlock
|
||||||
%define BOOT_VESA_INFO 0x0306 ;256 - copy of VESA ModeInfoBlock for selected mode
|
%define BOOT_VESA_INFO 0x0306 ;256 - copy of VESA ModeInfoBlock for selected mode
|
||||||
%define BOOT_MEMENTRIES 0x040A ;4 - dword = number of memmap entries
|
%define BOOT_MEMENTRIES 0x040A ;4 - dword = number of memmap entries
|
||||||
%define BOOT_MEMMAP 0x040E ;? - memory map information
|
%define BOOT_MEMMAP 0x2000 ;? - memory map information
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
12
io.h
Normal file
12
io.h
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
#ifndef __HIO_H__
|
||||||
|
#define __HIO_H__ __HIO_H__
|
||||||
|
|
||||||
|
void writeCursorPosition(dword pos);
|
||||||
|
dword getCursorPosition();
|
||||||
|
void putc(byte chr);
|
||||||
|
int printf(char *fmt, ...);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -36,5 +36,12 @@ typedef unsigned char byte;
|
|||||||
typedef unsigned short word;
|
typedef unsigned short word;
|
||||||
typedef unsigned int dword;
|
typedef unsigned int dword;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
dword lowdword;
|
||||||
|
dword highdword;
|
||||||
|
} __attribute__((packed)) qword;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
2
kernel.c
2
kernel.c
@ -5,10 +5,12 @@
|
|||||||
#include "k_defines.h"
|
#include "k_defines.h"
|
||||||
#include "functions.h"
|
#include "functions.h"
|
||||||
#include "video.h"
|
#include "video.h"
|
||||||
|
#include "mm.h"
|
||||||
|
|
||||||
void isr(dword num);
|
void isr(dword num);
|
||||||
void k_init();
|
void k_init();
|
||||||
|
|
||||||
|
#include "mm.c"
|
||||||
#include "functions.c"
|
#include "functions.c"
|
||||||
#include "video.c"
|
#include "video.c"
|
||||||
|
|
||||||
|
12
mm.c
Normal file
12
mm.c
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
void mm_init()
|
||||||
|
{
|
||||||
|
dword *memmap_entries = 0x9040A;
|
||||||
|
memmap_entry *maps = 0x92000;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user