x86: Add a helper for loading cr2
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 26 Jan 2016 19:55:52 +0000 (14:55 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 2 Feb 2016 22:43:52 +0000 (17:43 -0500)
commitff898e4639218b4bcce7427015290db27b0d1c65
treea912b9425d53d718d9cdb62104e6f40754f21991
parentb1cfd072d46a554d17b649f002d578754941b541
x86: Add a helper for loading cr2

We'll need to manually save and restore it for VMs.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/x86.h