disk: implement ata_write
This commit is contained in:
+1
-9
@@ -4,6 +4,7 @@
|
||||
#include "../include/stdio.h"
|
||||
#include "../include/utils.h"
|
||||
#include "../include/disk.h"
|
||||
#include "../include/string.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -17,20 +18,11 @@ void kmain()
|
||||
|
||||
char yooo[256] = "heheh";
|
||||
printf("test string: %s\n", yooo);
|
||||
printf("%X %X %X", 0x11, 0xA, 0xFEE1DEAD);
|
||||
|
||||
disk_info info;
|
||||
get_disk_info(&info);
|
||||
printf("CYL HEAD SECT: %X %X %X\n", info.cylinders, info.heads, info.sectors);
|
||||
|
||||
uint8_t buffer[512];
|
||||
ata_read(buffer, 0x0);
|
||||
|
||||
for(int i = 0; i < sizeof(buffer); i++)
|
||||
{
|
||||
printf("%X ", buffer[i]);
|
||||
}
|
||||
|
||||
while(1)
|
||||
{
|
||||
if(inportb(0x64) & 0x1)
|
||||
|
||||
Reference in New Issue
Block a user