Replace cst by its name

This commit is contained in:
Mathieu Maret 2022-08-07 16:20:01 +02:00
parent 350b5c41c3
commit 0e11da855c

View File

@ -42,7 +42,7 @@ void idleThread(void *arg)
#define FILE_HEADER_SIZE 16 #define FILE_HEADER_SIZE 16
#define FILE_MAX_SIZE 64 #define FILE_MAX_SIZE 64 // In nb of sectors
void loadUserSpace() void loadUserSpace()
{ {
struct ata_partition *part = ATAGetPartition(0); struct ata_partition *part = ATAGetPartition(0);
@ -52,7 +52,7 @@ void loadUserSpace()
return; return;
} }
char *buf = malloc(FILE_MAX_SIZE * 512); char *buf = malloc(FILE_MAX_SIZE * DISK_SECTOR_SIZE);
if (buf == NULL) { if (buf == NULL) {
printf("ENOMEM\n"); printf("ENOMEM\n");
return; return;