Changeset 2269 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Apr 20, 2007 12:58:05 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 20629
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPIC.cpp
r490 r2269 992 992 pData->pPicHlpR0 = pData->pPicHlpR3->pfnGetR0Helpers(pDevIns); 993 993 994 rc = PDMDevHlpIOPortRegisterR0(pDevIns, 0x20, 2, (void *)0, "picIOPortWrite", "picIOPortRead", NULL, NULL, "i8259 PIC #0");994 rc = PDMDevHlpIOPortRegisterR0(pDevIns, 0x20, 2, 0, "picIOPortWrite", "picIOPortRead", NULL, NULL, "i8259 PIC #0"); 995 995 if (VBOX_FAILURE(rc)) 996 996 return rc; 997 rc = PDMDevHlpIOPortRegisterR0(pDevIns, 0xa0, 2, (void *)1, "picIOPortWrite", "picIOPortRead", NULL, NULL, "i8259 PIC #1");997 rc = PDMDevHlpIOPortRegisterR0(pDevIns, 0xa0, 2, 1, "picIOPortWrite", "picIOPortRead", NULL, NULL, "i8259 PIC #1"); 998 998 if (VBOX_FAILURE(rc)) 999 999 return rc; … … 1022 1022 if (fR0Enabled) 1023 1023 { 1024 rc = PDMDevHlpIOPortRegisterR0(pDevIns, 0x4d0, 1, &pData->aPics[0], 1024 RTR0PTR pDataR0 = PDMINS2DATA_R0PTR(pDevIns); 1025 rc = PDMDevHlpIOPortRegisterR0(pDevIns, 0x4d0, 1, pDataR0 + RT_OFFSETOF(DEVPIC, aPics[0]), 1025 1026 "picIOPortElcrWrite", "picIOPortElcrRead", NULL, NULL, "i8259 PIC #0 - elcr"); 1026 1027 if (VBOX_FAILURE(rc)) 1027 1028 return rc; 1028 rc = PDMDevHlpIOPortRegisterR0(pDevIns, 0x4d1, 1, &pData->aPics[1],1029 rc = PDMDevHlpIOPortRegisterR0(pDevIns, 0x4d1, 1, pDataR0 + RT_OFFSETOF(DEVPIC, aPics[1]), 1029 1030 "picIOPortElcrWrite", "picIOPortElcrRead", NULL, NULL, "i8259 PIC #1 - elcr"); 1030 1031 if (VBOX_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.