Menu

#10 CONFIG_SERIAL_SOFTWARE_FIFO interrupt

closed
None
5
2002-09-17
2002-07-26
Anonymous
No

ppcboot 1.1.6
board: WALNUT405

Problem:

When CONFIG_SERIAL_SOFTWARE_FIFO is defined, the routine
serial_buffered_init() (cpu/ppc4xx/serial.c) installs an interrupt handler. This
routine is called (indirectly) from devices_init() (common/devices.c) which
is in turn called by board_init_r() (common/board.c). However, devices_init()
is called prior to initializing interrupts.

When interrupts are initialized, the handler installed by serial_buffered_init()
is cleared. When a serial interrupt eventually occurs, the external
interrupt handler view the interrupt as bogus and no console input
will occur.

Solution:

Remove call to serial_buffered_init() from drv_system_init() (common/devices.c)
and add it to board_init_r() (common/board.c) immediately following the
call to interrupt_init().

Discussion

  • Wolfgang Denk

    Wolfgang Denk - 2002-09-17
    • assigned_to: nobody --> wdenk
    • status: open --> closed
     
  • Wolfgang Denk

    Wolfgang Denk - 2002-09-17

    Logged In: YES
    user_id=38532

    Please send me a patch (against top of tree in CVS).

     

Log in to post a comment.