Newsgroups: comp.os.minix
Subject: Re: "_gdt"   ???
References: <EtKJ3.9572$t%3.859251@typ11.nn.bcandid.com> <37F784EB.A8F9070E@infovia.com.ar>
Organization: Rochester Institute of Technology, Rochester, NY
From: aje9383@osfmail.isc.rit.edu (Andrew Erickson)
NNTP-Posting-Host: grace.isc.rit.edu
X-Original-NNTP-Posting-Host: grace.isc.rit.edu
Message-ID: <37f8f5e6@isc-newsserver.isc.rit.edu>
Date: 4 Oct 1999 14:45:58 -0500
X-Trace: 4 Oct 1999 14:45:58 -0500, grace.isc.rit.edu
Lines: 25
XPident: jac9336
X-Original-NNTP-Posting-Host: 129.21.3.100
XPident: Unknown
Path: news.adfa.oz.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!intgwpad.nntp.telstra.net!newsfeed.berkeley.edu!news-peer1.sprintlink.net!news-backup-west.sprintlink.net!news.sprintlink.net!isc-newsserver.isc.rit.edu!aje9383

In article <37F784EB.A8F9070E@infovia.com.ar>,
Baranek  <baranek@infovia.com.ar> wrote:
>I think GDT is  intel's name of the pointer to the page's directory.
>
>
>> In /usr/src/kernel/klib88.s in the 'real2prot' code routine
>> is the following:
>>
>> "lgdt   _gdt+GDT_SELECTOR"

<Snip a bit>

>> 'GDT_SELECTOR' is defined in protect.h .
>>
>> However, despite extensive searching with 'find' and 'grep',
>> I have been totally frustrated in locating the definition of
>> "_gdt".

Have you searched for a declaration of "gdt" (notice: no underscore) in
C?  If I am not mistaken, the ACK compiler (like most C compilers) pre-
pends an underscore to identifiers to avoid namespace clashes with non-
C symbols.

Hope this helps,
--Andrew Erickson
