vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit 8c22637efa007aefa3b6e5767cfeb27ebf6ff881
parent d4734645afb4add72279296e598ce89656ee7eb0
Author: Jesus Galan Lopez (yiyus) <yiyu.jgl@gmail.com>
Date:   Sun,  5 Sep 2010 13:46:17 +0200

delete old files in src/9vx/boot

Diffstat:
src/9vx/boot/aux.ed | 3---
src/9vx/boot/boot.ed | 14--------------
src/9vx/boot/bootip.ed | 7-------
src/9vx/boot/local.ed | 31-------------------------------
src/9vx/boot/mkbootcode | 37-------------------------------------
5 files changed, 0 insertions(+), 92 deletions(-)

diff --git a/src/9vx/boot/aux.ed b/src/9vx/boot/aux.ed @@ -1,3 +0,0 @@ -/exits/-1;/exits/c - exits(smprint("boot: %s: %s\n", s, buf)); -. diff --git a/src/9vx/boot/boot.ed b/src/9vx/boot/boot.ed @@ -1,14 +0,0 @@ -//a -char* localroot; -. -/fd = \(\*mp->connect\)/a - if(localroot){ - bind(localroot, "/", MAFTER); - srvcreate("boot", fd); - goto Init; - } -. -/cmd = getenv/i -Init: - cpuflag = (strcmp(getenv("service"), "cpu") == 0); -. diff --git a/src/9vx/boot/bootip.ed b/src/9vx/boot/bootip.ed @@ -1,7 +0,0 @@ -/if\(w->msg\[0\] \!= 0\)/i -/* -. -/fatal(w->msg)/a -*/ -. - diff --git a/src/9vx/boot/local.ed b/src/9vx/boot/local.ed @@ -1,31 +0,0 @@ -/fatal\("open \/net\/ipifc\/clone for loopback"\)/s,[^ ],// , -a/ - return; -. -/fd = connectlocal\(/i -connectlocalroot(void) -{ - int fd; - char buf[1024]; - - snprint(buf, sizeof buf, "%s/%s/bin/rc", disk, cputype); - if(stat(buf, statbuf, sizeof statbuf) < 0) - return -1; - localroot = disk; - - /* create working fd for /srv/boot */ - fd = open("#~/mntloop", ORDWR); - if(fd < 0){ - print("open #~/mntloop: %r\n"); - return -1; - } - write(fd, disk, strlen(disk)); - return fd; -} - -int -. -/fd = connectlocalfossil/i - if((fd = connectlocalroot()) < 0) -. -/connectlocalkfs/s,[^ ],// , diff --git a/src/9vx/boot/mkbootcode b/src/9vx/boot/mkbootcode @@ -1,37 +0,0 @@ -#!/bin/rc -#mkbootcode - -if(uname >/dev/null >[2=1]){ - echo 'run from 9vx to generate bootcode.9' - exit -} - -if(! test -f `{basename $0}){ - echo 'mkbootcode must be run from its own directory' - exit -} - -cwd=`{pwd} -bind -bc . /sys/src/9/boot -cd /sys/src/9/boot - -for(f in *.ed) { - new=`{echo $f | sed 's/.ed$//'} - orig=$new.orig - if(! ~ $orig "\.h") - new=$new.c - if(! test -f $orig) - cp $new $orig - { - cat $f - echo w $new - echo q - } | ed $orig 2>/dev/null -} - -cd /sys/src/9/pc -CONF='pcf' mk && cp bootpcf.out ../boot/bootcode.9 -CONF='pcf' mk bootpcf.out && cp bootpcf.out ../boot/bootcode.9 - -cd $cwd -unmount /sys/src/9/boot