Edge states in a boundary layer