search for: vm_offset_t

Displaying 8 results from an estimated 8 matches for "vm_offset_t".

2003 Aug 22
3
PAE removal patch for testing
.../i386/i386: blah.patch diff -u -r /usr/src/sys.old/i386/i386/db_interface.c /usr/src/sys/i386/i386/db_interface.c --- /usr/src/sys.old/i386/i386/db_interface.c Thu Aug 21 18:35:33 2003 +++ /usr/src/sys/i386/i386/db_interface.c Fri Aug 22 02:15:24 2003 @@ -251,7 +251,7 @@ if (addr > trunc_page((vm_offset_t)btext) - size && addr < round_page((vm_offset_t)etext)) { - ptep0 = vtopte(addr); + ptep0 = pmap_pte(kernel_pmap, addr); oldmap0 = *ptep0; *ptep0 |= PG_RW; @@ -259,14 +259,14 @@ if ((*ptep0 & PG_PS) == 0) { addr1 = trunc_page(addr + size - 1...
2013 Jul 12
1
stable/9 fails to compile: kmem_alloc_contig bad definition
...freestanding -fstack-protector /usr/src/sys/vm/vm_contig.c /usr/src/sys/vm/vm_contig.c:319:1: error: conflicting types for 'kmem_alloc_contig' kmem_alloc_contig(vm_map_t map, vm_size_t size, int flags, vm_paddr_t low, ^ /usr/src/sys/vm/vm_extern.h:46:13: note: previous declaration is here vm_offset_t kmem_alloc_contig(vm_map_t map, vm_size_t size, int flags, ^ 1 error generated. vm_extern.h: vm_offset_t kmem_alloc_contig(vm_map_t map, vm_size_t size, int flags, vm_paddr_t low, vm_paddr_t high, unsigned long alignment, unsigned long boundary, vm_memattr_t memattr); Why b...
2006 Mar 09
1
FreeBSD netfront.c / problem
...fails because Xen is handed the page number -1. 1 static void 2 network_alloc_rx_buffers(struct netfront_info *sc) 3 { [...] 48 for (i = 0, m_new = sc->xn_rx_batch; m_new; 49 i++, sc->xn_rx_batchlen--, m_new = next) { 50 [...] 70 rx_pfn_array[i] = vtomach(mtod(m_new,vm_offset_t)) >> PAGE_SHIFT; The above call fails gives -1 (i.e., an invalid virtual -> machine translation) time since some mbufs are placed on the same page. 71 72 /* Remove this page from pseudo phys map before passing back to Xen. */ 73 xen_phys_machine[((unsigned long)m_new->m_ext....
1998 Mar 12
2
FreeBSD Security Advisory: FreeBSD-SA-98:02.mmap
...sys/vm/vm_mmap.c,v retrieving revision 1.74 diff -u -r1.74 vm_mmap.c --- vm_mmap.c 1998/03/07 21:37:01 1.74 +++ vm_mmap.c 1998/03/10 21:51:30 @@ -162,6 +162,7 @@ vm_prot_t prot, maxprot; void *handle; int flags, error; + int disablexworkaround; off_t pos; addr = (vm_offset_t) uap->addr; @@ -252,6 +253,26 @@ pos = 0; } else { /* + * cdevs does not provide private mappings of any kind. + */ + /* + * However, for XIG X server to continue to work, + * we should allow the superuser to do it anyway. + * We only allow it at s...
2000 Aug 28
0
FreeBSD Security Advisory: FreeBSD-SA-00:41.elf
...* is invalid: filsz cannot be greater than memsz. + */ + if ((off_t)filsz + offset > object->un_pager.vnp.vnp_size || + filsz > memsz) { + uprintf("elf_load_section: truncated ELF file\n"); + return (ENOEXEC); + } + map_addr = trunc_page((vm_offset_t)vmaddr); file_addr = trunc_page(offset); @@ -341,6 +356,12 @@ } error = exec_map_first_page(imgp); + /* + * Also make certain that the interpreter stays the same, so set + * its VTEXT flag, too. + */ + if (error == 0) + nd.ni_vp->v_fl...
2013 Jul 07
1
Shutdown hangs on unmount of a gjournaled file system in 8-Stable
The problem occurs after an update of 8-stable from r248120 to r252111. Sometimes shutdown hangs: Waiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...0 0 done All buffers synced. >From the kernel
2013 Jul 22
2
stopping amd causes a freeze
Occasionally stopping amd freezes my system. It's a rare occurrence, and I haven't found a reliable way to reproduce it. It's also a real freeze, so there's no way to get into the debugger or grab a core dump. I only can perform the 4 seconds hard shutdown to revive the system. I run amd through sysutils/automounter, which is a scripting solution that generates an amd.map file
2013 Oct 28
5
FreeBSD PVH guest support
...ogical_cpus_mask); - if (bootverbose) + if (!lapic_disabled && bootverbose) lapic_dump("AP"); if (smp_cpus == mp_ncpus) { @@ -908,8 +913,8 @@ assign_cpu_ids(void) /* * start each AP in our list */ -static int -start_all_aps(void) +int +native_start_all_aps(void) { vm_offset_t va = boot_address + KERNBASE; u_int64_t *pt4, *pt3, *pt2; diff --git a/sys/amd64/include/asmacros.h b/sys/amd64/include/asmacros.h index 1fb592a..ce8dce4 100644 --- a/sys/amd64/include/asmacros.h +++ b/sys/amd64/include/asmacros.h @@ -201,4 +201,30 @@ #endif /* LOCORE */ +#ifdef __STDC__ +#d...