[hppa-linux] syscall work

Stan Sieler sieler@allegro.com
Mon, 29 Mar 1999 13:27:01 -0800 (PST)


> let's think what is less efficient: extra mapped page, or
> extra indirrect ptr reference?
> my point is, why map extra page (and waiste extra page) ?
> one page is 128 page dir entries, hehe (; returning to the pd discussion)

If you're talking about the gateway page, if you don't actually *allocate*
a page, but simply rely on the trap that occurs when you try to jump to it,
then there's 0 storage cost for the extra mapped page approach...no TLB
entry, no entries in other data structures.  The only cost is the
additional CPU time in the TLB miss handler to say:

   if isr.ior = 0xc0000400 (or whatever)
      then handle system call attempt
      handle TLB miss

BTW, the extra cost of doing a system call mechanism via a non-mapped gateway page
vs. using a GATE instruction is about 5 microseconds on a 32MHz machine.
Stan Sieler                                          sieler@allegro.com