Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site tardis.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!talcott!wjh12!tardis!rst From: rst@tardis.UUCP (Robert Thau) Newsgroups: net.bugs.2bsd Subject: adb under networking 2.9 kernels Message-ID: <115@tardis.UUCP> Date: Fri, 8-Feb-85 12:23:20 EST Article-I.D.: tardis.115 Posted: Fri Feb 8 12:23:20 1985 Date-Received: Sun, 10-Feb-85 04:04:55 EST Organization: Harvard University, Cruft Lab (TARDIS) Lines: 32 Adb, as distributed by SRI, does not work with networking kernels. It is incapable of reading or writing registers, and horrible things happen when you try to use core files. Two fixes are needed to get something that will work out of the compiler. The first, in pcs.c, is to replace the line POS corhdr[512]; with POS corhdr[ctob(UPAGES)/sizeof(POS)]; Secondly, in defs.h, replace #define UAR0 (&corhdr[509]) /* default address of r0 (u.u_ar0) */ with the following: #ifdef UCB_NET #define UAR0 (&corhdr[01775])/* default address of r0 (u.u_ar0) */ #else #define UAR0 (&corhdr[509]) /* default address of r0 (u.u_ar0) */ #endif Finally, before recompiling, make sure that /usr/include/sys/param.h is up-to-date (i.e. it defines UCB_NET), since otherwise the above changes make no difference at all. (Unfortunately, there's no trivial six-line change which will give an adb binary that works with both kinds of kernel). Robert Thau rst@tardis.ARPA