From a9ad81b8d42190ff10aa0ce72bdf31bb313408b1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 27 Feb 2011 05:27:06 +0100 Subject: Add x86 debug register Xen support * i386/xen/xen_boothdr.S: Add global visibility to __hyp_* symbols. * i386/i386/locore.S [MACH_XEN] (dr6,dr0,dr1,dr2,dr3): Make get_debugreg and set_debugreg hypercalls to manipulate debug registers. (dr0,dr1,dr2,dr3): Fix dr7 field shift. * i386/i386/xen.h (hyp_set_debugreg, hyp_get_debugreg): New prototypes. --- i386/xen/xen_boothdr.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'i386/xen/xen_boothdr.S') diff --git a/i386/xen/xen_boothdr.S b/i386/xen/xen_boothdr.S index 6d595ab..1b32efb 100644 --- a/i386/xen/xen_boothdr.S +++ b/i386/xen/xen_boothdr.S @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006 Samuel Thibault + * Copyright (C) 2006, 2009, 2010, 2011 Samuel Thibault * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -124,6 +124,7 @@ hyp_shared_info: /* Labels just for debuggers */ #define hypcall(name, n) \ .org hypcalls + n*32 ; \ +.globl __hyp_##name ; \ __hyp_##name: hypcalls: -- cgit v1.2.3