In an internal combustion engine, a variable lift and/or operating angle
mechanism variably controls a lift and/or operating angle of an exhaust
valve in accordance with a driving condition of the engine, a variable
phase mechanism variably controls a phase of a lift center angle of the
exhaust valve in accordance with the driving condition of the engine, a
present position detecting section detects a present operating position
of each of the variable lift and/or operating angle mechanism and
variable phase mechanism, and a controlling section controls one of the
variable lift and/or operating angle mechanism and the variable phase
mechanism which operates normally in a direction in which an in-cylinder
residual gas quantity becomes minimum when the other of the variable lift
and/or operating angle mechanism and the variable phase mechanism has
failed.