summaryrefslogtreecommitdiff
path: root/src/sys/io/ic
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-14 20:23:19 -0400
committerIan Moffett <ian@osmora.org>2025-10-14 20:23:19 -0400
commitaaa076ff1d68545085fb85ee24d5410b60a123bd (patch)
tree98b1642cd6aae676b15318e376661e7b343196f9 /src/sys/io/ic
parent6a0c08f51e59328d9a158bb521b1f1cf57663962 (diff)
kern: dms: Make DMS block size aware
In order to safely copy between disk and host memory through a programming interface, DMS must be aware of the hardware disk block size Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/io/ic')
-rw-r--r--src/sys/io/ic/ahci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sys/io/ic/ahci.c b/src/sys/io/ic/ahci.c
index 9aa19b4..48560a8 100644
--- a/src/sys/io/ic/ahci.c
+++ b/src/sys/io/ic/ahci.c
@@ -236,6 +236,7 @@ ahci_register(struct ata_identity *identity, struct ahci_port *port)
return error;
}
+ dp->bsize = port->bsize;
dp->data = (void *)port;
return 0;
}