Chinaunix首页 | 论坛 | 博客
  • 博客访问: 137999
  • 博文数量: 21
  • 博客积分: 1401
  • 博客等级: 上尉
  • 技术积分: 301
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-21 21:24
文章分类
文章存档

2011年(1)

2010年(3)

2009年(17)

我的朋友

分类: BSD

2009-12-17 20:58:44

按照这个修改 sys/arch/evbmips/gdium/machdep.c :
   void *kernend;
        u_long first, last;
-       struct pcb *pcb0;
        extern char edata[], end[];
-       vaddr_t v;
        int i;
        uint32_t config;

         */
        mips_init_msgbuf();
 
+       pmap_bootstrap();
+
        /*
         * Allocate uarea for lwp0 and set it.
         */
-       v = pmap_steal_memory(USPACE, NULL, NULL);
-       uvm_lwp_setuarea(&lwp0, v);
-
-       pcb0 = lwp_getpcb(&lwp0);
-       pcb0->pcb_context[11] = MIPS_INT_MASK | MIPS_SR_INT_IE; /* SR */
-
-       lwp0.l_md.md_regs = (struct frame *)(v + USPACE) - 1;
-
-       pmap_bootstrap();
+       mips_init_lwp0_uarea();
 
        /*
         * Initialize debuggers, and break into them, if appropriate.
------------------------------------------------------
===> Kernels built from GDIUM64:
  /usr/netbsd-current/gdium64-obj/sys/arch/evbmips/compile/GDIUM64/netbsd
===> build.sh ended:   Thu Dec 17 20:54:00 UTC 2009
===> Summary of results:
     build.sh command: ./build.sh -u -U -a mips64el -m evbmips64-el -T gdium64-tools -O gdium64-obj kernel=GDIUM64
     build.sh started: Thu Dec 17 20:52:55 UTC 2009
     NetBSD version:   5.99.22
     MACHINE:          evbmips
     MACHINE_ARCH:     mips64el
     Build platform:   Linux 2.6.29-fuloong2f mips64
     HOST_SH:          /bin/sh
     TOOLDIR path:     /usr/netbsd-current/gdium64-tools
     DESTDIR path:     /usr/netbsd-current/gdium64-obj/destdir.evbmips
     RELEASEDIR path:     /usr/netbsd-current/gdium64-obj/releasedir
     makewrapper:      /usr/netbsd-current/gdium64-tools/bin/nbmake-evbmips64-el
     Updated /usr/netbsd-current/gdium64-tools/bin/nbmake-evbmips64-el
     Building kernel without building new tools
     Building kernel:  GDIUM64
     Build directory:  /usr/netbsd-current/gdium64-obj/sys/arch/evbmips/compile/GDIUM64
     Kernels built from GDIUM64:
      /usr/netbsd-current/gdium64-obj/sys/arch/evbmips/compile/GDIUM64/netbsd
     build.sh ended:   Thu Dec 17 20:54:00 UTC 2009
===> .
$ file  /usr/netbsd-current/gdium64-obj/sys/arch/evbmips/compile/GDIUM64/netbsd
/usr/netbsd-current/gdium64-obj/sys/arch/evbmips/compile/GDIUM64/netbsd: ELF 64-bit LSB executable, MIPS, MIPS-III version 1 (SYSV), statically linked, for NetBSD 5.99.22, not stripped



阅读(1018) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~