Message-ID: <3AEC3F2A.6232E955@earthlink.net>
From: Sara Droddy <droddys@earthlink.net>
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.minix
Subject: Re: Errors on Recompile of Kernel
References: <3AE42D97.799B4A7A@earthlink.net> <qd56c9.mri.ln@jetsam.cs.vu.nl>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 47
Date: Sun, 29 Apr 2001 15:17:24 GMT
NNTP-Posting-Host: 38.30.31.250
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread1.prod.itd.earthlink.net 988557444 38.30.31.250 (Sun, 29 Apr 2001 08:17:24 PDT)
NNTP-Posting-Date: Sun, 29 Apr 2001 08:17:24 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net
X-Received-Date: Sun, 29 Apr 2001 08:15:56 PDT (newsmaster1.prod.itd.earthlink.net)
Path: news.adfa.edu.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!newshub1.rdc1.nsw.optushome.com.au!news.mel.connect.com.au!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!lsanca1-snf1!news.gtei.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail
Xref: news.adfa.edu.au comp.os.minix:37276

Hi Kees J. Bot:

You were correct.  I had defined the procedure in the
68000 section.  I moved it to the INTEL
section and it became instantly available to me in
keyboard.c.

I also added the line to glo.h for my var and
that also fixed the problem of making it global.

Thank you very much for saving the day!

Sara


Kees J Bot wrote:

> In article <3AE42D97.799B4A7A@earthlink.net>,
> Sara Droddy  <droddys@earthlink.net> wrote:
> >Hi everyone:   These are two visibility questions.
> >
> >First:
> >Can anyone help me identify the correct place to declare a global
> >variable so that when I recompile the kernel it is visible everywhere?
>
> Those definitions can be found in glo.h.  There are two kinds:
>
>         EXTERN int ega;
>         extern struct segdesc_s gdt[];
>
> The variable 'ega' is not initialized (implicitly zero).  The gdt array
> is also defined somewhere else.  (Actually all variables need a
> declaration and a definition.  See the start of table.c for the
> explanation of EXTERN.)
>
> >For the procedure I defined in dmp.c, I also added the line in proto.h
> >"_PROTOTYPE( void myProcedure, (void) );"
> >My thought was that this was the place that would make my new procedure
> >available to keyboard.c which #INCLUDE's proto.h.   Alas, when I
> >recompile the kernel with this one, the error is from the keyboard.c
> >file stating that my procedure is undefined.
>
> That's odd.  It should have worked, unless you put it in the 68000
> section by mistake.  Could you check this?
> --
> Kees J. Bot, Systems Programmer, Sciences dept., Vrije Universiteit Amsterdam

