Remove the basically-empty C library for now.
This commit is contained in:
parent
cbeb736e8c
commit
0915cf45dc
8 changed files with 13 additions and 40 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue