- 论坛徽章:
- 0
|
The last time changes ! review please!
The problem was fixed, please review again! Thanks~!
________________________________________
Index: app/boot/boot_linux.c
===================================================================
--- app/boot/boot_linux.c (revision 421)
+++ app/boot/boot_linux.c (working copy)
@@ -408,6 +408,8 @@
i = 0;
printf("\n");
+ printf("Machine Id: %d\n", MACH_ID);
+
while (1)
{
printf("[ATAG %d] ", ++i);
@@ -416,6 +418,13 @@
{
case ATAG_CORE:
printf("****** ATAG Begin ******\n");
+ printf("************core************\n\
+ \rFlags: %d\n\
+ \rPagesize: 0x%8x\n\
+ \rRootdev: %d\n",
+ pTag->stCore.ulFlags,
+ pTag->stCore.nPageSize,
+ pTag->stCore.ulRootDev);
break;
case ATAG_CMDLINE:
@@ -429,18 +438,92 @@
);
break;
+ case ATAG_VIDEOTEXT:
+ printf("************Videotext************\n\
+ \rX: %3d Y: %3d\n\
+ \rvideopage: %d\n\
+ \rvideomode: %d\n\
+ \rvideocols: %d\n\
+ \rvideoegabx: %d\n\
+ \rvideoelines: %d\n\
+ \rvideoisvga: %d\n\
+ \rvideopoints: %d\n",
+ pTag->stVideoText.bX,
+ pTag->stVideoText.bY,
+ pTag->stVideoText.usVideoPage,
+ pTag->stVideoText.bVideoMode,
+ pTag->stVideoText.bVideoCols,
+ pTag->stVideoText.usVideoEgaBx,
+ pTag->stVideoText.bVideoLines,
+ pTag->stVideoText.bVideoIsVGA,
+ pTag->stVideoText.usVideoPoints);
+ break;
+
+ case ATAG_RAMDISK:
+ printf("************ramdisk************\n\
+ \rFlags: %d\n\
+ \rSize: %d\n\
+ \rStart: 0x%8x\n",
+ pTag->stRamDisk.dwFlags,
+ pTag->stRamDisk.nSize,
+ pTag->stRamDisk.nStart);
+ break;
+
+ case ATAG_INITRD:
case ATAG_INITRD2:
+ printf("************initrd************\n");
printf("Initrd: [0x%08x - 0x%08x]\n",
pTag->stInitRd.ulStart, pTag->stInitRd.ulStart + pTag->stInitRd.nSize
);
break;
+ case ATAG_SERIAL:
+ printf("************serial************\n\
+ \rLow: %d\n\
+ \rHigh: %d\n",
+ pTag->stSerialNr.ulLow,
+ pTag->stSerialNr.ulHigh);
+ break;
+
+ case ATAG_REVISION:
+ printf("************revison************\n");
+ printf("revsion:\nRevsion: %d\n", pTag->stRevision);
+ break;
+
+ case ATAG_VIDEOLFB:
+ printf("************videolfb************\n\
+ \rbWidth: %d\n\
+ \rbHigh: %d\n\
+ \rDepth: %d\n\
+ \rLineLengt: %d\n\
+ \rBaseAddr: 0x%8x\n\
+ \rsize: %d\n\
+ \rRedsize: %d\tRedPos: %d\n\
+ \rGreensize: %d\tGrePos: %d\n\
+ \rBluesize: %d\tBluPos: %d\n\
+ \rRsvdSize: %d\n\
+ \rRsvdPos: %d\n",
+ pTag->stVideoLfb.usLfbWidth,
+ pTag->stVideoLfb.usLfbHeight,
+ pTag->stVideoLfb.usLfbDepth,
+ pTag->stVideoLfb.usLfbLineLength,
+ pTag->stVideoLfb.ulLfbBase,
+ pTag->stVideoLfb.nLfbSize,
+ pTag->stVideoLfb.bRedSize,
+ pTag->stVideoLfb.bRedPos,
+ pTag->stVideoLfb.bGreenSize,
+ pTag->stVideoLfb.bGreenPos,);
+ break;
+
case ATAG_NONE:
printf("****** ATAG End ******\n");
return 0;
- default: // fixme
- printf("tag = 0x%08x\n", pTag->stHdr.ulTag);
+ default:
break;
} |
|