ia64/xen-unstable

view netbsd-2.0-xen-sparse/nbconfig-xen @ 3602:9a9c5a491401

bitkeeper revision 1.1159.235.1 (42000d3dwcPyT8aY4VIPYGCfCAJuQQ)

More x86/64. Status: traps.c now included in the build, but actual building
of IDT doesn't happen, and we need some sort of entry.S. More page-table
building required so that arch_init_memory() can work. And there is something
odd with MP-table parsing; I currently suspect that __init sections are
causing problems.
Signed-off-by: keir.fraser@cl.cam.ac.uk
author kaf24@viper.(none)
date Tue Feb 01 23:14:05 2005 +0000 (2005-02-01)
parents c23dd7ec1f54
children 0a4b76b6b5a0
line source
1 #! /bin/sh
2 #
4 : ${HOS:=$(uname -s | tr /A-Z/ /a-z/)}
5 : ${HARCH:=$(uname -m 2>/dev/null || echo i386)}
6 : ${NETBSD_RELEASE:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+\).*/\1/')}
7 : ${NETBSD_VERSION:=$(basename $(cd $(dirname $0) && pwd) | sed 's/netbsd-\([0-9]\+\.[0-9]\+.*\)-xen.*/\1/')}
8 : ${TOPDIR:=$(cd $(dirname $0) && pwd | sed 's/\(netbsd-[0-9]\+\.[0-9]\+.*-xen[^/]*\)/\1/')}
10 case "$HARCH" in
11 i586|i686)
12 HARCH=i386
13 ;;
14 esac
16 TOOLDIR="$TOPDIR/../netbsd-${NETBSD_RELEASE}-tools/$HOS-$HARCH"; export TOOLDIR
18 CONF="$1"
19 case "$1" in
20 /*)
21 CONF="$1"
22 ;;
23 *)
24 CONF="$TOPDIR"/sys/arch/xen/conf/"$1"
25 ;;
26 esac
27 exec "${TOOLDIR}/bin/nbconfig" -b $(pwd) -s "$TOPDIR"/sys "$CONF"