If the selector lever will not move from P using the proper shift procedure, continue to hold down the brake pedal.
1. Remove the shift-lock override cover using a cloth-wrapped flat head screwdriver.
2. Insert a screwdriver and push it down.

3. Press and hold the lock-release button.
4. Move the selector lever.
Take the vehicle to an Authorized Mazda Dealer to have the system checked.
Shift-Lock System
Transaxle RangesMazda 6 Owners Manual: Front buckle removal/installation
1. Perform the following procedure for vehicles with seat belt warning.
(1) Disconnect the negative battery cable.
(2) Remove the front seat.
(3) Disconnect the buckle switch connector.
2. Perform the following procedure for vehicles without seat belt warning.
(1) Remove the console.
...
Mazda 6 Owners Manual: Opening the Hood
1. With the vehicle parked, pull the release handle to unlock the hood.
2. Insert your hand into the hood opening, slide the latch lever to the right,
and lift up the hood.
NOTE
The lever is located a little to the left of center when facing the vehicle.
3. Grasp the support rod in the pad ...