Lines Matching refs:ds

272 set_live_debug_state32(cpu_data_t *cdp, x86_debug_state32_t *ds)
274 __asm__ volatile ("movl %0,%%db0" : :"r" (ds->dr0));
275 __asm__ volatile ("movl %0,%%db1" : :"r" (ds->dr1));
276 __asm__ volatile ("movl %0,%%db2" : :"r" (ds->dr2));
277 __asm__ volatile ("movl %0,%%db3" : :"r" (ds->dr3));
278 cdp->cpu_dr7 = ds->dr7;
281 extern void set_64bit_debug_regs(x86_debug_state64_t *ds);
284 set_live_debug_state64(cpu_data_t *cdp, x86_debug_state64_t *ds)
290 set_64bit_debug_regs(ds);
291 cdp->cpu_dr7 = ds->dr7;
295 debug_state_is_valid32(x86_debug_state32_t *ds)
297 if (!dr7_is_valid(&ds->dr7))
305 debug_state_is_valid64(x86_debug_state64_t *ds)
307 if (!dr7_is_valid((uint32_t *)&ds->dr7))
314 if (ds->dr7 & 0x1)
315 if (ds->dr0 >= VM_MAX_PAGE_ADDRESS)
318 if (ds->dr7 & (0x1<<2))
319 if (ds->dr1 >= VM_MAX_PAGE_ADDRESS)
322 if (ds->dr7 & (0x1<<4))
323 if (ds->dr2 >= VM_MAX_PAGE_ADDRESS)
326 if (ds->dr7 & (0x1<<6))
327 if (ds->dr3 >= VM_MAX_PAGE_ADDRESS)
335 set_debug_state32(thread_t thread, x86_debug_state32_t *ds)
343 if (debug_state_is_valid32(ds) != TRUE) {
363 copy_debug_state32(ds, ids, FALSE);
369 set_debug_state64(thread_t thread, x86_debug_state64_t *ds)
377 if (debug_state_is_valid64(ds) != TRUE) {
396 copy_debug_state64(ds, ids, FALSE);
402 get_debug_state32(thread_t thread, x86_debug_state32_t *ds)
409 copy_debug_state32(saved_state, ds, TRUE);
411 bzero(ds, sizeof *ds);
415 get_debug_state64(thread_t thread, x86_debug_state64_t *ds)
422 copy_debug_state64(saved_state, ds, TRUE);
424 bzero(ds, sizeof *ds);
636 ts->ds = USER_DS;
642 ts->ds,
660 saved_state->ds = ts->ds;
737 ts->ds = saved_state->ds;
807 state->ds,
848 saved_state->ds = state->ds;
1192 state->ds = saved_state->ds & 0xffff;
1559 state->ds = saved_state->ds & 0xffff;
1639 state->uts.ts32.ds = saved_state->ds & 0xffff;
1871 x86_debug_state32_t ds;
1877 x86_debug_state64_t ds;
1915 (thread_state_t)&ic64->ds,
1949 (thread_state_t)&ic32->ds,