[ES40-developers] Patch: Suppress unknown memory messages for legacy video
Status: Alpha
Brought to you by:
iamcamiel
From: Brian W. <bdw...@in...> - 2008-02-28 17:07:06
|
All of my debugging keeps scrolling out of the terminal buffer! This turns off read/write messages to legacy video memory. Brian Index: System.cpp =================================================================== RCS file: /cvsroot/es40/es40/src/System.cpp,v retrieving revision 1.64 diff -u -r1.64 System.cpp --- System.cpp 26 Feb 2008 15:43:47 -0000 1.64 +++ System.cpp 28 Feb 2008 16:59:47 -0000 @@ -776,10 +776,12 @@ if (a>=X64(80000000000) && a<X64(80100000000)) { // Unused PCI memory space - if (source) - printf("Write to unknown memory %"LL"x on PCI 0 from %s \n",a & X64(ffffffff),source->devid_string); - else - printf("Write to unknown memory %"LL"x on PCI 0 \n",a & X64(ffffffff)); + u64 paddr = a & X64(ffffffff); + if(paddr > 0xb8fff || paddr < 0xb8000) // skip legacy video + if (source) + printf("Write to unknown memory %"LL"x on PCI 0 from %s \n",a & X64(ffffffff),source->devid_string); + else + printf("Write to unknown memory %"LL"x on PCI 0 \n",a & X64(ffffffff)); return; } @@ -994,10 +996,12 @@ if (a>=X64(80000000000) && a<X64(80100000000)) { // Unused PCI memory space - if (source) - printf("Read from unknown memory %"LL"x on PCI 0 from %s \n",a & X64(ffffffff),source->devid_string); - else - printf("Read from unknown memory %"LL"x on PCI 0 \n",a & X64(ffffffff)); + u64 paddr = a & X64(ffffffff); + if(paddr > 0xb8fff || paddr < 0xb8000) // skip legacy video + if (source) + printf("Read from unknown memory %"LL"x on PCI 0 from %s \n",a & X64(ffffffff),source->devid_string); + else + printf("Read from unknown memory %"LL"x on PCI 0 \n",a & X64(ffffffff)); return 0; } |