/[rtmk]/rtmk/vm-kmem.c
ViewVC logotype

Diff of /rtmk/vm-kmem.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by jrydberg, Sun Dec 9 20:48:17 2001 UTC revision 1.5 by jrydberg, Wed Feb 20 20:04:42 2002 UTC
# Line 1  Line 1 
1  /* Kernel allocator.  /* Kernel allocator.
2     Copyright 1999, 2000, 2001 Johan Rydberg, jrydberg@opencores.org.     Copyright 1999, 2000, 2001, 2002 Johan Rydberg, jrydberg@opencores.org.
3    
4  This program is free software; you can redistribute it and/or modify  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by  it under the terms of the GNU General Public License as published by
# Line 156  kmem_alloc_wired (struct vm_map *map, vm Line 156  kmem_alloc_wired (struct vm_map *map, vm
156    size = vm_round_page (size);    size = vm_round_page (size);
157    kr = vm_map_allocate (map, &offset, size, VM_OBJECT_KERNEL (),    kr = vm_map_allocate (map, &offset, size, VM_OBJECT_KERNEL (),
158                          VM_PROT_ALL, VM_PROT_ALL, VM_INHERIT_NONE, true);                          VM_PROT_ALL, VM_PROT_ALL, VM_INHERIT_NONE, true);
159      if (kr != KERN_SUCCESS)
160        trace_printf ("kr=%d", kr);
161    assert (kr == KERN_SUCCESS);    assert (kr == KERN_SUCCESS);
162    
163    return alloc_pages (VM_OBJECT_KERNEL (), offset, size, VM_PROT_ALL);    return alloc_pages (VM_OBJECT_KERNEL (), offset, size, VM_PROT_ALL);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26