git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: change the disk io api to accept device instead of port struct
[lunaix-os.git]
/
lunaix-os
/
kernel
/
proc0.c
diff --git
a/lunaix-os/kernel/proc0.c
b/lunaix-os/kernel/proc0.c
index 759db2c0d19906bdffd2a34e8639615659e50bdb..36d872710a2af622e113c97d053485492790188c 100644
(file)
--- a/
lunaix-os/kernel/proc0.c
+++ b/
lunaix-os/kernel/proc0.c
@@
-119,7
+119,7
@@
void
__test_disk_io()
{
struct hba_port* port = ahci_get_port(0);
__test_disk_io()
{
struct hba_port* port = ahci_get_port(0);
- char* buffer = v
c
alloc_dma(port->device->block_size);
+ char* buffer = v
z
alloc_dma(port->device->block_size);
strcpy(buffer, test_sequence);
kprintf("WRITE: %s\n", buffer);
int result;
strcpy(buffer, test_sequence);
kprintf("WRITE: %s\n", buffer);
int result;