Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


NVRAM keeps a reference to IDE to query its geometry. It passes the device pointer...
[palacios.git] / palacios / src / devices / nvram.c
index 978db46..352782f 100644 (file)
@@ -542,7 +542,7 @@ static void init_harddrives(struct nvram_internal * nvram) {
 
     // It looks like the BIOS only tracks the disks on the first channel at 0x12?
     for (i = 0; i < 2; i++) {
-       if (v3_ide_get_geometry(nvram->ide, 0, i, &cyls, &heads, &sects) == 0) {
+       if (v3_ide_get_geometry(nvram->ide->private_data, 0, i, &cyls, &heads, &sects) == 0) {
 
            int info_reg = info_base_reg + (i * 9);
 
@@ -583,7 +583,7 @@ static void init_harddrives(struct nvram_internal * nvram) {
            int drive_num = i % 2;
            uint32_t tmp[3];
 
-           if (v3_ide_get_geometry(nvram->ide, chan_num, drive_num, &tmp[0], &tmp[1], &tmp[2]) == 0) {
+           if (v3_ide_get_geometry(nvram->ide->private_data, chan_num, drive_num, &tmp[0], &tmp[1], &tmp[2]) == 0) {
                trans |= TRANSLATE_LBA << (i * 2);
            }
        }