Home
last modified time | relevance | path

Searched refs:cputss (Results 1 – 2 of 2) sorted by relevance

/netbsd-src/sys/arch/i386/i386/
H A Dmachdep.c605 struct cpu_tss *cputss; in cpu_init_tss() local
607 cputss = (struct cpu_tss *)uvm_km_alloc(kernel_map, in cpu_init_tss()
610 cputss->tss.tss_iobase = IOMAP_INVALOFF << 16; in cpu_init_tss()
612 cputss->tss.tss_ss0 = GSEL(GDATA_SEL, SEL_KPL); in cpu_init_tss()
613 cputss->tss.tss_ldt = GSEL(GLDT_SEL, SEL_KPL); in cpu_init_tss()
614 cputss->tss.tss_cr3 = rcr3(); in cpu_init_tss()
617 ci->ci_tss = cputss; in cpu_init_tss()
619 ci->ci_tss_sel = tss_alloc(&cputss->tss); in cpu_init_tss()
/netbsd-src/sys/arch/amd64/amd64/
H A Dmachdep.c507 struct cpu_tss *cputss; in cpu_init_tss() local
512 cputss = (struct cpu_tss *)&pcpuarea->ent[cid].tss; in cpu_init_tss()
514 cputss = (struct cpu_tss *)uvm_km_alloc(kernel_map, in cpu_init_tss()
518 cputss->tss.tss_iobase = IOMAP_INVALOFF << 16; in cpu_init_tss()
526 cputss->tss.tss_ist[0] = p + PAGE_SIZE - 16; in cpu_init_tss()
534 cputss->tss.tss_ist[1] = p + PAGE_SIZE - 16; in cpu_init_tss()
542 cputss->tss.tss_ist[2] = p + PAGE_SIZE - sizeof(struct nmistore); in cpu_init_tss()
552 cputss->tss.tss_ist[3] = p + PAGE_SIZE - 16; in cpu_init_tss()
554 ci->ci_tss = cputss; in cpu_init_tss()
555 ci->ci_tss_sel = tss_alloc(&cputss in cpu_init_tss()
[all...]