WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Bugs in mini-os on i386 architecture

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Bugs in mini-os on i386 architecture
From: Melvin Anderson <Melvin.Anderson@xxxxxx>
Date: Mon, 20 Mar 2006 15:18:23 +0000
Delivery-date: Mon, 20 Mar 2006 16:45:24 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: HP Labs, Bristol
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I have been trying to get mini-os to run on i386 architecture, 
(xen-unstable.hg, 9325:1ecb7f1ddc79) but have hit problems:

-- header file extras/mini-os/include/console.h is missing,

-- type mismatch in extras/mini-os/xenbus/xenbus_xs.c causes compile 
   to fail, and

-- page fault occurs in extras/mini-os/mm.c because page directory table 
   entries are set up incorrectly.  The array mmu_updates in new_pt_frame() 
   has zero entries, but should have at least 1 entry.

I wonder if whoever is actively working on mini-os could review these 
patches, and merge them in to the sources.  The header file console.h 
contains the minimum amount needed to get mini-os to compile -- the 
writer of console.c may have intended it to contain more.

Regards,

Melvin Anderson.

diff -r 1ecb7f1ddc79 extras/mini-os/mm.c
--- a/extras/mini-os/mm.c       Sun Mar 19 17:55:46 2006
+++ b/extras/mini-os/mm.c       Mon Mar 20 14:28:01 2006
@@ -373,7 +373,7 @@
     unsigned long *tab = (unsigned long *)start_info.pt_base;
     unsigned long pt_page = (unsigned long)pfn_to_virt(*pt_pfn); 
     unsigned long prot_e, prot_t, pincmd;
-    mmu_update_t mmu_updates[0];
+    mmu_update_t mmu_updates[1];
     struct mmuext_op pin_request;
     
     DEBUG("Allocating new L%d pt frame for pt_pfn=%lx, "
diff -r 1ecb7f1ddc79 extras/mini-os/xenbus/xenbus_xs.c
--- a/extras/mini-os/xenbus/xenbus_xs.c Sun Mar 19 17:55:46 2006
+++ b/extras/mini-os/xenbus/xenbus_xs.c Mon Mar 20 14:28:01 2006
@@ -335,7 +335,7 @@
                  const char *dir, const char *node)
 {
        char **d;
-       int dir_n;
+       unsigned int dir_n;
 
        d = xenbus_directory(t, dir, node, &dir_n);
        if (IS_ERR(d))
diff -r 1ecb7f1ddc79 extras/mini-os/include/console.h
--- /dev/null   Sun Mar 19 17:55:46 2006
+++ b/extras/mini-os/include/console.h  Mon Mar 20 14:28:01 2006
@@ -0,0 +1,15 @@
+/* -*-  Mode:C; c-basic-offset:4; tab-width:4 -*- */
+
+#ifndef _CONSOLE_H_
+#define _CONSOLE_H_
+
+#include <stdarg.h>
+#include <traps.h>
+
+void printk(const char *fmt, ...);
+void xencons_rx(char *, unsigned, struct pt_regs *);
+void xencons_tx(void);
+
+
+
+#endif /* _CONSOLE_H_ */

--

Melvin Anderson, Trusted Systems Laboratory, HPLabs, Bristol.



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>