Remove the basically-empty C library for now.

This commit is contained in:
Drew Galbraith 2023-11-24 08:48:16 -08:00
parent cbeb736e8c
commit 0915cf45dc
8 changed files with 13 additions and 40 deletions

View file

@ -2,7 +2,6 @@
#include <glacier/status/error.h>
#include <mammoth/util/debug.h>
#include <string.h>
#include <zcall.h>
AhciDevice::AhciDevice(AhciPort* port) : port_struct_(port) {

View file

@ -1,9 +1,20 @@
#include "ahci/command.h"
#include <string.h>
#include "ahci/ahci.h"
namespace {
void* memcpy(void* dest, const void* src, uint64_t count) {
uint8_t* d = (uint8_t*)dest;
const uint8_t* s = (uint8_t*)src;
for (uint64_t i = 0; i < count; i++) {
d[i] = s[i];
}
return dest;
}
} // namespace
Command::~Command() {}
DmaReadCommand::DmaReadCommand(uint64_t lba, uint64_t sector_cnt,