The general relativistic magnetohydrodynamic dynamo equation