From 9fd7586724257d245b08894f620aba61e754f44a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 19 Apr 2004 23:33:23 +0000 Subject: [PATCH] gBootDriveID is now uint8, no longer uint16. Now prints out a comment if LBA access doesn't work (since CHS access is not yet implemented). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7250 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/platform/bios_ia32/devices.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kernel/boot/platform/bios_ia32/devices.cpp b/src/kernel/boot/platform/bios_ia32/devices.cpp index 12fb597a89..d8afd3e011 100644 --- a/src/kernel/boot/platform/bios_ia32/devices.cpp +++ b/src/kernel/boot/platform/bios_ia32/devices.cpp @@ -12,7 +12,7 @@ #include -extern uint16 gBootDriveID; +extern uint8 gBootDriveID; // int 0x13 definitions #define BIOS_GET_DRIVE_PARAMETERS 0x0800 @@ -191,6 +191,7 @@ BIOSDrive::BIOSDrive(uint8 driveID) { if (get_ext_drive_parameters(driveID, &fParameters) != B_OK) { // ToDo: old style CHS support + printf("%d requires CHS support - not yet implemented...\n", driveID); fBlockSize = 512; fSize = 0; fLBA = false; @@ -258,7 +259,7 @@ BIOSDrive::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize) } else { chs_read: - // Left to be done! + // ToDo: Left to be done! return B_ERROR; }