Displaying 6 results from an estimated 6 matches for "ptr_low".
Did you mean:
pte_low
2007 Dec 13
2
[PATCH] avoid ifdefs in desc.h, getting rid of pack_ldt and pack_tss
..._entry(struct desc_struct *gdt, int entry,
memcpy(&gdt[entry], desc, size);
}
-static inline void set_tssldt_descriptor(struct ldttss_desc64 *d,
- unsigned long tss, unsigned type,
- unsigned size)
-{
- memset(d, 0, sizeof(*d));
- d->limit0 = size & 0xFFFF;
- d->base0 = PTR_LOW(tss);
- d->base1 = PTR_MIDDLE(tss) & 0xFF;
- d->type = type;
- d->p = 1;
- d->limit1 = (size >> 16) & 0xF;
- d->base2 = (PTR_MIDDLE(tss) >> 8) & 0xFF;
- d->base3 = PTR_HIGH(tss);
-}
-
static inline void pack_descriptor(struct desc_struct *desc, unsigned lo...
2007 Dec 13
2
[PATCH] avoid ifdefs in desc.h, getting rid of pack_ldt and pack_tss
..._entry(struct desc_struct *gdt, int entry,
memcpy(&gdt[entry], desc, size);
}
-static inline void set_tssldt_descriptor(struct ldttss_desc64 *d,
- unsigned long tss, unsigned type,
- unsigned size)
-{
- memset(d, 0, sizeof(*d));
- d->limit0 = size & 0xFFFF;
- d->base0 = PTR_LOW(tss);
- d->base1 = PTR_MIDDLE(tss) & 0xFF;
- d->type = type;
- d->p = 1;
- d->limit1 = (size >> 16) & 0xF;
- d->base2 = (PTR_MIDDLE(tss) >> 8) & 0xFF;
- d->base3 = PTR_HIGH(tss);
-}
-
static inline void pack_descriptor(struct desc_struct *desc, unsigned lo...
2007 Dec 06
51
[PATCH 0/19] desc_struct integration
Hi,
this is a series of patches that unify the struct desc_struct and friends
across x86_64 and i386. As usual, it provides paravirt capabilities as a
side-effect for x86_64.
I consider the main goal, namely, of unifying the desc_struct, an ongoing
effort, being this the beginning. A lot of old code has to be touched to
accomplish that.
I don't consider this patch ready for inclusion.
2007 Dec 06
51
[PATCH 0/19] desc_struct integration
Hi,
this is a series of patches that unify the struct desc_struct and friends
across x86_64 and i386. As usual, it provides paravirt capabilities as a
side-effect for x86_64.
I consider the main goal, namely, of unifying the desc_struct, an ongoing
effort, being this the beginning. A lot of old code has to be touched to
accomplish that.
I don't consider this patch ready for inclusion.
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...e kill_guest_dump(vcpu, fmt...) \
+do { \
+ kill_guest((vcpu)->guest, fmt); \
+ lguest_dump_vcpu_regs(vcpu); \
+} while(0)
+
+static inline void _lguest_set_gate(struct gate_struct *s, unsigned type, unsigned long func,
+ unsigned dpl, unsigned ist)
+{
+ s->offset_low = PTR_LOW(func);
+ s->segment = __HV_CS;
+ s->ist = ist;
+ s->p = 1;
+ s->dpl = dpl;
+ s->zero0 = 0;
+ s->zero1 = 0;
+ s->type = type;
+ s->offset_middle = PTR_MIDDLE(func);
+ s->offset_high = PTR_HIGH(func);
+}
+
+stat...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...e kill_guest_dump(vcpu, fmt...) \
+do { \
+ kill_guest((vcpu)->guest, fmt); \
+ lguest_dump_vcpu_regs(vcpu); \
+} while(0)
+
+static inline void _lguest_set_gate(struct gate_struct *s, unsigned type, unsigned long func,
+ unsigned dpl, unsigned ist)
+{
+ s->offset_low = PTR_LOW(func);
+ s->segment = __HV_CS;
+ s->ist = ist;
+ s->p = 1;
+ s->dpl = dpl;
+ s->zero0 = 0;
+ s->zero1 = 0;
+ s->type = type;
+ s->offset_middle = PTR_MIDDLE(func);
+ s->offset_high = PTR_HIGH(func);
+}
+
+stat...