Home
last modified time | relevance | path

Searched refs:ctob (Results 1 – 25 of 75) sorted by relevance

123

/original-bsd/old/sdb/
H A Ddefs.h100 #define USP (ctob(UPAGES)-5*4)
101 #define R0 (ctob(UPAGES)-18*4)
102 #define R1 (ctob(UPAGES)-17*4)
103 #define R2 (ctob(UPAGES)-16*4)
104 #define R3 (ctob(UPAGES)-15*4)
105 #define R4 (ctob(UPAGES)-14*4)
110 #define R9 (ctob(UPAGES)-9*4)
115 #define PC (ctob(UPAGES)-2*4)
131 #define AP (ctob(UPAGES)-7*4)
132 #define FP (ctob(UPAGES)-6*4)
[all …]
H A Dsetup.c99 IF read(fcor, &u, ctob(UPAGES))==ctob(UPAGES) in setcor()
108 txtsiz = ctob(u.u_tsize); in setcor()
109 datsiz = ctob(u.u_dsize); in setcor()
110 stksiz = ctob(u.u_ssize); in setcor()
116 datmap.f1 = ctob(USIZE); in setcor()
118 datmap.f1 = ctob(UPAGES); in setcor()
123 datmap.f2 = ctob(USIZE)+(magic==0410?datsiz:datmap.e1); in setcor()
125 datmap.f2 = ctob(UPAGES)+((magic==0410 || magic == 0413) in setcor()
128 signo = *(ADDR *)(((ADDR)&u)+ctob(UPAGES)-4*sizeof(int)); in setcor()
H A Dudef.c3 char u[ctob(UPAGES)]; /* struct user u */
/original-bsd/old/adb/adb.tahoe/
H A Ddefs.h58 #define USP (ctob(UPAGES)-9*sizeof (int))
59 #define R0 (ctob(UPAGES)-25*sizeof (int))
60 #define R1 (ctob(UPAGES)-24*sizeof (int))
61 #define R2 (ctob(UPAGES)-23*sizeof (int))
62 #define R3 (ctob(UPAGES)-22*sizeof (int))
63 #define R4 (ctob(UPAGES)-21*sizeof (int))
64 #define R5 (ctob(UPAGES)-20*sizeof (int))
65 #define R6 (ctob(UPAGES)-19*sizeof (int))
66 #define R7 (ctob(UPAGES)-18*sizeof (int))
67 #define R8 (ctob(UPAGES)-17*sizeof (int))
[all …]
H A Dsetup.c124 if (read(fcor, (char *)&u, ctob(UPAGES))!=ctob(UPAGES) || in setcor()
131 filhdr.a_text = ctob(u.u_tsize); in setcor()
132 filhdr.a_data = ctob(u.u_dsize); in setcor()
133 stksiz = ctob(u.u_ssize); in setcor()
139 datmap.f2 = ctob(UPAGES) + datmap.e1; in setcor()
146 datmap.f2 = ctob(UPAGES) + filhdr.a_data; in setcor()
150 datmap.f1 = ctob(UPAGES); in setcor()
215 eustack = (caddr_t)(cursym->n_value + ctob(UPAGES)); in findstackframe()
H A Dmachine.h13 #define MAXSTOR (KERNBASE - ctob(UPAGES))
H A Dhead.h27 char UU[ctob(UPAGES)];
/original-bsd/old/adb/adb.vax/
H A Ddefs.h58 #define USP (ctob(UPAGES)-5*sizeof(int))
59 #define R0 (ctob(UPAGES)-18*sizeof(int))
60 #define R1 (ctob(UPAGES)-17*sizeof(int))
61 #define R2 (ctob(UPAGES)-16*sizeof(int))
62 #define R3 (ctob(UPAGES)-15*sizeof(int))
63 #define R4 (ctob(UPAGES)-14*sizeof(int))
64 #define R5 (ctob(UPAGES)-13*sizeof(int))
65 #define R6 (ctob(UPAGES)-12*sizeof(int))
66 #define R7 (ctob(UPAGES)-11*sizeof(int))
68 #define R9 (ctob(UPAGES)-9*sizeof(int))
[all …]
H A Dsetup.c121 if (read(fcor, (char *)&u, ctob(UPAGES))!=ctob(UPAGES) || in setcor()
128 filhdr.a_text = ctob(u.u_tsize); in setcor()
129 filhdr.a_data = ctob(u.u_dsize); in setcor()
130 stksiz = ctob(u.u_ssize); in setcor()
136 datmap.f2 = ctob(UPAGES) + datmap.e1; in setcor()
143 datmap.f2 = ctob(UPAGES) + filhdr.a_data; in setcor()
147 datmap.f1 = ctob(UPAGES); in setcor()
212 eustack = cursym->n_value + ctob(UPAGES); in findstackframe()
H A Dmachine.h13 #define MAXSTOR ((1L<<31) - ctob(UPAGES))
H A Dhead.h27 char UU[ctob(UPAGES)];
/original-bsd/old/adb/adb.hp300/
H A Ddefs.h77 #define USP (ctob(UPAGES)-5*sizeof(int))
80 #define R0 (ctob(UPAGES)-18*sizeof(int))
81 #define R1 (ctob(UPAGES)-17*sizeof(int))
82 #define R2 (ctob(UPAGES)-16*sizeof(int))
83 #define R3 (ctob(UPAGES)-15*sizeof(int))
84 #define R4 (ctob(UPAGES)-14*sizeof(int))
85 #define R5 (ctob(UPAGES)-13*sizeof(int))
86 #define R6 (ctob(UPAGES)-12*sizeof(int))
87 #define R7 (ctob(UPAGES)-11*sizeof(int))
89 #define R9 (ctob(UPAGES)-9*sizeof(int))
[all …]
/original-bsd/old/adb/common_source/
H A Dsetup.c129 if (read(corefile.fd, (char *)&u, ctob(UPAGES)) != ctob(UPAGES) || in setcore()
136 filhdr.a_text = ctob(u.u_tsize); in setcore()
137 filhdr.a_data = ctob(u.u_dsize); in setcore()
138 stacksize = ctob(u.u_ssize); in setcore()
144 datmap.m2.f = ctob(UPAGES) + datmap.m1.e; in setcore()
151 datmap.m2.f = ctob(UPAGES) + filhdr.a_data; in setcore()
157 datmap.m1.f = ctob(UPAGES); in setcore()
158 datmap.m2.b = KERNBASE - ctob(UPAGES) - stacksize; in setcore()
159 datmap.m2.e = KERNBASE - ctob(UPAGES); in setcore()
161 u.u_ar0 = (int *)((caddr_t)&u + ctob(UPAGES)); /* XXX */ in setcore()
/original-bsd/old/dbx/
H A Dcoredump.c81 char dummy[ctob(UPAGES)];
97 fread(up, ctob(UPAGES), 1, corefile);
99 savreg = (Word *) &(ustruct.dummy[ctob(UPAGES)]);
102 &ustruct.dummy[ctob(UPAGES) - 10] - (NREG * sizeof(Word))
112 datamap.seekaddr = ctob(UPAGES);
113 stkmap.begin = USRSTACK - ctob(up->u_ssize);
115 stkmap.seekaddr = datamap.seekaddr + ctob(up->u_dsize);
119 datamap.end = CODESTART + ctob(up->u_tsize) + ctob(up->u_dsize);
125 ptob(btop(ctob(up->u_tsize) - 1) + 1) + CODESTART;
126 datamap.end = datamap.begin + ctob(up->u_dsize);
/original-bsd/sys/vax/vax/
H A Dvm_machdep.c45 if (ctob(ts) > maxtsize ||
46 ctob(ids) > u.u_rlimit[RLIMIT_DATA].rlim_cur ||
47 ctob(uds) > u.u_rlimit[RLIMIT_DATA].rlim_cur ||
48 ctob(ids + uds) > u.u_rlimit[RLIMIT_DATA].rlim_cur ||
49 ctob(ss) > u.u_rlimit[RLIMIT_STACK].rlim_cur) {
H A Dka650.c40 if (ctob(physmem) > ka650merr.merr_qbmbr) { in ka650_init()
42 ctob(physmem), ka650merr.merr_qbmbr); in ka650_init()
/original-bsd/sys/i386/i386/
H A Dvm_machdep.c59 (unsigned) ctob(UPAGES) - offset);
124 kmem_free(kernel_map, (vm_offset_t)p->p_addr, ctob(UPAGES));
148 kmem_free(kernel_map, (vm_offset_t)p->p_addr, ctob(UPAGES));
161 return (vn_rdwr(UIO_WRITE, vp, (caddr_t) p->p_addr, ctob(UPAGES),
349 kva = kmem_alloc_wait(phys_map, ctob(npf));
377 kmem_free_wakeup(phys_map, kva, ctob(npf));
/original-bsd/sys/vax/include/
H A Dkdbparam.h18 #define MAXSTOR (KERNBASE - ctob(UPAGES))
35 #define issignalpc(pc) (MAXSTOR < (pc) && (pc) < MAXSTOR+ctob(UPAGES))
/original-bsd/sys/luna68k/luna68k/
H A Dvm_machdep.c67 (unsigned) ctob(UPAGES) - offset);
99 kmem_free(kernel_map, (vm_offset_t)p->p_addr, ctob(UPAGES));
114 return (vn_rdwr(UIO_WRITE, vp, (caddr_t) p->p_addr, ctob(UPAGES),
240 kva = kmem_alloc_wait(phys_map, ctob(npf));
269 kmem_free_wakeup(phys_map, kva, ctob(npf));
/original-bsd/sys/sparc/sparc/
H A Dvm_machdep.c86 kva = kmem_alloc_wait(phys_map, ctob(npf));
115 kmem_free_wakeup(phys_map, kva, ctob(npf));
237 switchexit(kernel_map, p->p_addr, round_page(ctob(UPAGES)));
258 return (vn_rdwr(UIO_WRITE, vp, (caddr_t)up, ctob(UPAGES), (off_t)0,
/original-bsd/sys/hp300/hp300/
H A Dvm_machdep.c65 (unsigned) ctob(UPAGES) - offset);
97 kmem_free(kernel_map, (vm_offset_t)p->p_addr, ctob(UPAGES));
119 return (vn_rdwr(UIO_WRITE, vp, (caddr_t) p->p_addr, ctob(UPAGES),
249 kva = kmem_alloc_wait(phys_map, ctob(npf));
278 kmem_free_wakeup(phys_map, kva, ctob(npf));
/original-bsd/sys/vm/
H A Dvm_unix.c46 old = round_page(old + ctob(vm->vm_dsize));
87 if (sp >= USRSTACK - ctob(vm->vm_ssize))
H A Dvm_glue.c192 addr = kmem_alloc_pageable(kernel_map, ctob(UPAGES));
195 vm_map_pageable(kernel_map, addr, addr + ctob(UPAGES), FALSE);
200 addr = kmem_alloc(kernel_map, ctob(UPAGES));
327 size = round_page(ctob(UPAGES)); in scheduler()
427 cnt.v_free_count <= atop(round_page(ctob(UPAGES)))) { in swapout_threads()
452 size = round_page(ctob(UPAGES));
/original-bsd/sys/tahoe/tahoe/
H A Dvm_machdep.c51 if (ctob(ts) > maxtsize ||
52 ctob(ids) > u.u_rlimit[RLIMIT_DATA].rlim_cur ||
53 ctob(uds) > u.u_rlimit[RLIMIT_DATA].rlim_cur ||
54 ctob(ids + uds) > u.u_rlimit[RLIMIT_DATA].rlim_cur ||
55 ctob(ss) > u.u_rlimit[RLIMIT_STACK].rlim_cur) {
/original-bsd/usr.bin/gcore/
H A Dmd-sparc.c126 off = ctob(UPAGES + ki->kp_eproc.e_vm.vm_dsize);
127 ssize = ctob(ki->kp_eproc.e_vm.vm_ssize);

123