cvs commit: src/sys/dev/syscons syscons.c

Ken Smith kensmith at FreeBSD.org
Fri Apr 2 07:02:46 PST 2004


kensmith    2004/04/02 07:02:45 PST

  FreeBSD src repository

  Modified files:
    sys/dev/syscons      syscons.c 
  Log:
  Rearrangements needed for syscons(4) to be used as a console device
  on architectures that need to call cninit() before the machine is
  ready to support mutexes (required by make_dev()).
  
          - Remove make_dev() call from scinit() when flags indicate
            unit is the system console, rely on sc_attach_unit() to
            handle it.
          - When trying to access current screen's status (scr_stat
            structure) use the static one provided for the initial
            system console if no dev_t is available.
          - When calling make_dev() in sc_attach_unit() catch special
            case of system's initial console and set up dev_t structure
            to include pointer to console's scr_stat struct.
  
  Reviewed by:    marcel
  Tested by:      marcel, grehan (ppc), others on current@
  Approved by:    rwatson (mentor)
  
  Revision  Changes    Path
  1.418     +41 -20    src/sys/dev/syscons/syscons.c


More information about the cvs-src mailing list