Date: Thu, 19 Mar 2009 13:53:42 +0000 (UTC) From: Takahashi Yoshihiro <nyan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r190046 - in head/sys/boot/pc98: libpc98 loader Message-ID: <200903191353.n2JDrggG063511@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nyan Date: Thu Mar 19 13:53:42 2009 New Revision: 190046 URL: http://svn.freebsd.org/changeset/base/190046 Log: Reduce diffs against i386. Modified: head/sys/boot/pc98/libpc98/Makefile head/sys/boot/pc98/loader/Makefile head/sys/boot/pc98/loader/main.c Modified: head/sys/boot/pc98/libpc98/Makefile ============================================================================== --- head/sys/boot/pc98/libpc98/Makefile Thu Mar 19 13:48:43 2009 (r190045) +++ head/sys/boot/pc98/libpc98/Makefile Thu Mar 19 13:53:42 2009 (r190046) @@ -5,8 +5,9 @@ INTERNALLIB= .PATH: ${.CURDIR}/../../i386/libi386 -SRCS= bioscd.c biosdisk.c biosmem.c biospnp.c biospci.c biossmap.c \ - bootinfo.c bootinfo32.c comconsole.c devicename.c elf32_freebsd.c \ +SRCS= bioscd.c biosdisk.c biosmem.c biospnp.c \ + biospci.c biossmap.c bootinfo.c bootinfo32.c \ + comconsole.c devicename.c elf32_freebsd.c \ i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \ time.c vidconsole.c Modified: head/sys/boot/pc98/loader/Makefile ============================================================================== --- head/sys/boot/pc98/loader/Makefile Thu Mar 19 13:48:43 2009 (r190045) +++ head/sys/boot/pc98/loader/Makefile Thu Mar 19 13:53:42 2009 (r190046) @@ -18,6 +18,7 @@ CFLAGS+= -DLOADER_TFTP_SUPPORT CFLAGS+= -DLOADER_NFS_SUPPORT .endif +# Include bcache code. HAVE_BCACHE= yes # Enable PnP and ISA-PnP code. Modified: head/sys/boot/pc98/loader/main.c ============================================================================== --- head/sys/boot/pc98/loader/main.c Thu Mar 19 13:48:43 2009 (r190045) +++ head/sys/boot/pc98/loader/main.c Thu Mar 19 13:53:42 2009 (r190046) @@ -145,6 +145,14 @@ main(void) bc_add(initial_bootdev); } + archsw.arch_autoload = i386_autoload; + archsw.arch_getdev = i386_getdev; + archsw.arch_copyin = i386_copyin; + archsw.arch_copyout = i386_copyout; + archsw.arch_readin = i386_readin; + archsw.arch_isainb = isa_inb; + archsw.arch_isaoutb = isa_outb; + /* * March through the device switch probing for things. */ @@ -163,14 +171,6 @@ main(void) extract_currdev(); /* set $currdev and $loaddev */ setenv("LINES", "24", 1); /* optional */ - - archsw.arch_autoload = i386_autoload; - archsw.arch_getdev = i386_getdev; - archsw.arch_copyin = i386_copyin; - archsw.arch_copyout = i386_copyout; - archsw.arch_readin = i386_readin; - archsw.arch_isainb = isa_inb; - archsw.arch_isaoutb = isa_outb; interact(); /* doesn't return */ @@ -188,7 +188,8 @@ static void extract_currdev(void) { struct i386_devdesc new_currdev; - int major, biosdev = -1; + int major; + int biosdev = -1; /* Assume we are booting from a BIOS disk by default */ new_currdev.d_dev = &biosdisk;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903191353.n2JDrggG063511>