The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/coda/00READ

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 What needs to be done to port Coda to a different Architecture.
    2 
    3     I. Fixes for the Coda applications
    4 
    5 Coda is a package under net/coda_*; so it should be easy enough to
    6 build.  But there are a few specific files that need to be changed
    7 first.  Of course, setting it up and using it is harder.
    8 
    9         1.  coda/lib-src/mlwp/process.s
   10 
   11 Coda coda/mlwp/ implements light weight user threads. The process.s
   12 file contains stack switching code.  It needs to be recoded for your
   13 architecture.  There is some old dead code in the file that you might
   14 be able to resurrect for other platforms.  At present, only the x86
   15 case, ns32k case and arm32 case  (and possibly linux sparc) work.
   16 
   17         2. coda/coda-src/venus/fso_cfscalls2.cc
   18 
   19 The Coda file system expands the strings @cputype and @sys in file
   20 names in a platform specific way.  In fso_cfscalls2.cc, under a
   21 __NetBSD__ conditional, there is platform conditional that defines:
   22         static char cputype []
   23         static char systype []
   24 Add the values for these strings under a conditional for your
   25 architecture.
   26 
   27     II. Fixes for the Coda kernel
   28 
   29 The coda/ directory in the kernel is machine independent.  The various
   30 pieces of glue code, viz. conf/files, sys/vnode.h, are in place.  You
   31 do have a few platform changes:
   32 
   33         1. src/sys/arch/xxx/conf/GENERIC or others
   34 
   35 It would be best to take the few lines that define Coda and its communications
   36 pseudo device from the x86 GENERIC and put them into your platform GENERIC.
   37 They should look something like:
   38         file-system     CODA            # Coda File System; also needs vcoda (below)
   39         # a pseudo device needed for Coda       # also needs CODA (above)
   40         pseudo-device   vcoda           4       # coda minicache <-> venus comm.
   41 
   42 
   43         2. src/sys/arch/xxx/conf/majors.xxx
   44 
   45 Coda needs a pseudodevice, vcoda, to communicate between the kernel and the
   46 out of kernel client program, venus.
   47 
   48 By way of example for the x86, you add:
   49 
   50 device-major    vcoda           char 60                 vcoda
   51 
   52 to the majors file.
   53 
   54         3. src/etc/xxx/MAKEDEV
   55 
   56 Something like the code below should work;  The chr device
   57 that is appropriate for your platform should be used instead of 60.
   58 
   59 cfs0)
   60         name=cfs; unit=${i#cfs};  chr=60
   61         rm -f $name$unit
   62         mknod $name$unit c $chr $unit
   63         chown root.wheel $name$unit
   64         ;;
   65 
   66 We only support one device currently, but historically it is cfs0.
   67 
   68 
   69     III. More?
   70 
   71 There still may be a couple of other problems.  If so, let us know.

Cache object: 81089849ef9d1938e436ee6655a9334f


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.