The Korteweg-de Vries equation (KdV)
is a completely integrable system with phase space L^2(S^1). Although the Hamiltonian
is defined only on the dense subspace H^1(S^1), we prove that the frequencies \omega_j = \frac {\partial H}{\partial J_j} can be defined on the whole space L^2(S^1), where (J_j)_{j \ge 1} denote the action variables which are globally defined on L^2(S^1). These frequencies are real analytic functionals and can be used to analyze Bourgain's weak solutions of KdV with initial data in L^2(S^1). The same method can be used for any equation in the KdV-hierarchy.