From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ling, Xiaofeng" Subject: [PATCH]Fix the issue of on x86_64, rhel4 can not get into runlevel 5. Date: Fri, 25 Nov 2005 15:55:29 +0800 Message-ID: <4386C371.4000805@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090706050905020403090302" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------090706050905020403090302 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Fix the issue of on x86_64, rhel4 can not get into runlevel 5. Xserver will scan pci and the cirrus VGA driver will register mmio each time, cause mmio array out of space. Signed-off-by: Xiaofeng Ling --------------090706050905020403090302 Content-Type: text/x-patch; name="xwinmmiofix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xwinmmiofix.patch" # HG changeset patch # User Xiaofeng Ling # Node ID 43babde5b5096f3b9a9ef0f73779927ac8f08c97 # Parent dc250958aebbe72d603f0e1584b12a0525f570e3 Fix the issue of on x86_64, rhel4 can not get into runlevel 5. Xserver will scan pci and the cirrus VGA driver will register mmio each time, cause mmio array out of space. Signed-off-by: Xiaofeng Ling diff -r dc250958aebb -r 43babde5b509 tools/ioemu/exec.c --- a/tools/ioemu/exec.c Fri Nov 25 15:04:57 2005 +0800 +++ b/tools/ioemu/exec.c Fri Nov 25 15:42:16 2005 +0800 @@ -262,6 +262,15 @@ unsigned long size, unsigned long phys_offset) { + int i; + + for (i = 0; i < mmio_cnt; i++) { + if(mmio[i].start == start_addr) { + mmio[i].io_index = phys_offset; + mmio[i].size = size; + return; + } + } if (mmio_cnt == MAX_MMIO) { fprintf(logfile, "too many mmio regions\n"); exit(-1); --------------090706050905020403090302 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------090706050905020403090302--