start adding disk things
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
#include "../include/screen.h"
|
||||
#include "../include/stdio.h"
|
||||
#include "../include/utils.h"
|
||||
#include "../include/disk.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void kmain()
|
||||
{
|
||||
@@ -15,6 +18,14 @@ void kmain()
|
||||
char yooo[256] = "heheh";
|
||||
printf("test string: %s\n", yooo);
|
||||
|
||||
printf("checking for disk...\n");
|
||||
int disk_present = ide_check_disk_present();
|
||||
printf("we got the result, it's %X\n", disk_present);
|
||||
|
||||
disk_info *info;
|
||||
get_disk_info(info);
|
||||
printf("CYL HEAD SECT: %X %X %X\n", info->cylinders, info->heads, info->sectors);
|
||||
|
||||
while(1)
|
||||
{
|
||||
if(inportb(0x64) & 0x1)
|
||||
|
||||
Reference in New Issue
Block a user