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
feat: twifs - pseudo file system for lunaix kernel state exposure
[lunaix-os.git]
/
lunaix-os
/
kernel
/
proc0.c
diff --git
a/lunaix-os/kernel/proc0.c
b/lunaix-os/kernel/proc0.c
index be7d46885530f7b2afd4f5bdaf55b06d4b2b3210..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;
@@
-142,6
+142,8
@@
__test_disk_io()
} else {
kprint_hex(buffer, 256);
}
} else {
kprint_hex(buffer, 256);
}
+
+ vfree_dma(buffer);
}
void
}
void