9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Roman Shaposhnick <rvs@sun.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] quick stupid question
Date: Mon,  5 Jun 2006 18:34:40 -0700	[thread overview]
Message-ID: <20060606013440.GC27456@submarine> (raw)
In-Reply-To: <018062f584bd7cfd4c738d23f969e2fe@collyer.net>

On Mon, Jun 05, 2006 at 06:24:31PM -0700, geoff@collyer.net wrote:
> It looks like it's initialised in 9/pc/screen.c, for example in
> screensize(), and 9/pc/devvga.c, for example in vgaopen() and the
> routines it calls.  Look for
> 
> 	scr = &vgascreen[0];
> 
> which is a pedantic way of writing
> 
> 	scr = vgascreen;
> 
> and see how scr is used.

  Here's the thing -- it looks like everything assumes that the place
  'scr' ends up pointing to has been already initialized somehow. Every 
  sourceline that I've been able to identify using 
      "grep vgascreen  /sys/src/9/*/*" 
  does exactly what you've mentioned: 'scr = &vgascreen[0];' but the problem 
  is -- scr never gets written to, which means there's not way vgascreen could 
  be initialized. 
  
  Or am I missing something really obvious here ?

Thanks,
Roman.


  reply	other threads:[~2006-06-06  1:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-06  1:10 Roman Shaposhnick
2006-06-06  1:24 ` geoff
2006-06-06  1:34   ` Roman Shaposhnick [this message]
2006-06-06  2:41     ` Russ Cox
2006-06-06  1:53       ` Roman Shaposhnick
2006-06-06  2:32   ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060606013440.GC27456@submarine \
    --to=rvs@sun.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).