设A(x1,y1),B(x2,y2).由于直线过其焦点且斜率为-1,可得方程为y=-(x? p 2 ).联立 y=?(x? p 2 ) y2=2px ,化为x2?3px+ p2 4 =0,∴x1+x2=3p=2×3,解得p=2.∴抛物线的准线方程为x=-1.故选:C.