cvs commit: src/sys/amd64/amd64 exception.S

Bruce Evans bde at FreeBSD.org
Sun May 23 10:19:01 PDT 2004


bde         2004/05/23 10:18:48 PDT

  FreeBSD src repository

  Modified files:
    sys/amd64/amd64      exception.S 
  Log:
  Restored FAKE_MCOUNT() and MEXITCOUNT invocations and adjusted them for
  amd64 as necessary.  This is routine, except:
  - the FAKE_MCOUNT($bintr) in doreti was missing the '$'.  This gave a
    a garbage address made up of padding bytes (with the nop byte 0x90 as
    the MSB) instead of the intended address of bintr.  This accidentally
    worked on i386's because (0x90 << 24) is close enough to bintr, but
    it doesn't work on amd64's because (0x90 << 56) is much further away
    from bintr.
  - the FAKE_MCOUNT($btrap) in calltrap was similarly broken.  It hasn't
    been needed since FreeBSD-1, so just delete it.
  
  Revision  Changes    Path
  1.117     +8 -0      src/sys/amd64/amd64/exception.S


More information about the cvs-src mailing list