[9fans] Kernel and IL - Plan9

This is a discussion on [9fans] Kernel and IL - Plan9 ; I'm trying to build a kernel with il. I added il under ip and boot in the source file and have il.c in /sys/src/9/ip, but I seem to be missing something. What? Thanks. Greg cpu% mk 'CONF=pcauth' rc ../port/mkdevc pcauth ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: [9fans] Kernel and IL

  1. [9fans] Kernel and IL

    I'm trying to build a kernel with il. I added il under ip and boot
    in the source file and have il.c in /sys/src/9/ip, but I seem to
    be missing something. What?

    Thanks.

    Greg

    cpu% mk 'CONF=pcauth'
    rc ../port/mkdevc pcauth > pcauth.c
    8a $AFLAGS l.s
    8a $AFLAGS plan9l.s
    8c -FVw cga.c
    8c -FVw i8253.c
    8c -FVw i8259.c
    8c -FVw kbd.c
    8c ../port/initcode.c
    8c init9.c
    8l -l -R1 -o init.out init9.8 initcode.8 /386/lib/libc.a
    strip init.out
    {echo 'uchar initcode[]={'
    cat init.out | xd -1x |
    sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
    echo '};'} > init.h
    8a rebootcode.s
    8l -l -s -T0x11000 -R4 -o reboot.out rebootcode.8
    {echo 'uchar rebootcode[]={'
    xd -1x reboot.out |
    sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
    echo '};'} > reboot.h
    8c -FVw memory.c
    8c -FVw mmu.c
    8c -FVw random.c
    8c -FVw trap.c
    8c -FVw -I. ../port/print.c
    8c -FVw -I. ../ip/esp.c
    8c -FVw vga.c
    8c -FVw ether82557.c
    8c -FVw uarti8250.c
    8c -FVw vgasavage.c
    8c -FVw sdata.c
    8c -FVw -I. ../port/devmnt.c
    8c -FVw vgas3.c
    8c -FVw -I. ../ip/iproute.c
    8c -FVw -I. ../port/devtls.c
    8c -FVw -I. ../port/devdup.c
    8c -FVw -I. ../port/devenv.c
    8c -FVw -I. ../ip/tcp.c
    8c -FVw apm.c
    8c -FVw -I. ../port/devsd.c
    8c -FVw vgax.c
    8c -FVw devarch.c
    8c -FVw -I. ../ip/ipifc.c
    8c -FVw devether.c
    8c -FVw -I. ../ip/chandial.c
    8c -FVw -I. ../port/devsrv.c
    8c -FVw -I. ../ip/icmp.c
    8c -FVw -I. ../ip/ethermedium.c
    8c -FVw -I. ../port/devcap.c
    8c -FVw -I. ../port/devproc.c
    8c -FVw dma.c
    8c -FVw -I. ../port/devmouse.c
    8c -FVw devrtc.c
    8c -FVw devfloppy.c
    8c -FVw -I. ../ip/ip.c
    8c -FVw -I. ../ip/udp.c
    8c -FVw ethervt6102.c
    8c -FVw -I. ../ip/ipv6.c
    8c -FVw -I. ../port/devcons.c
    8c -FVw -I. ../port/devpnp.c
    8c -FVw -I. ../ip/il.c
    .../ip/il.c:552 name not declared: Logil
    .../ip/il.c:559 name not declared: Logil
    .../ip/il.c:575 name not declared: Logil
    .../ip/il.c:598 name not declared: Logil
    .../ip/il.c:606 name not declared: Logil
    warning: ../ip/il.c:569 set and not used: csum
    warning: ../ip/il.c:571 set and not used: st
    warning: ../ip/il.c:573 set and not used: st
    warning: ../ip/il.c:594 set and not used: st
    warning: ../ip/il.c:596 set and not used: st
    .../ip/il.c:654 name not declared: Logil
    .../ip/il.c:832 name not declared: Logil
    warning: ../ip/il.c:831 set and not used: id
    .../ip/il.c:855 name not declared: Logilmsg
    .../ip/il.c:862 name not declared: Logilmsg
    .../ip/il.c:871 name not declared: Logil
    .../ip/il.c:951 name not declared: Logil
    too many errors

  2. Re: [9fans] Kernel and IL

    You need to add back definitions of two bits in ip.h:

    Logil= 1<<4,
    Logilmsg= 1<<8,


  3. Re: [9fans] Kernel and IL

    That's /sys/src/9/ip/ip.h that needs the bit definitions, not
    /sys/include/ip.h.


  4. Re: [9fans] Kernel and IL

    Thanks Geoff. That did it.

    Greg

+ Reply to Thread