1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2025-04-21 12:27:27 +03:00

physmem.c: added virtual to physical translation

- physmem.c (calloc_phys_vec): malloc the vector instead of sbrk'ing it
- ubb-vga.h (xlat_virt), physmem.c (xlat_one, xlat_virt): translate a
  vector of virtual addresses to physical addresses
This commit is contained in:
Werner Almesberger
2011-04-29 21:15:27 -03:00
parent 3a8e062c48
commit 6cd21404cd
2 changed files with 82 additions and 6 deletions

View File

@@ -34,6 +34,7 @@ void ccube_init(void);
/* physmem.c */
void **calloc_phys_vec(size_t n, size_t size);
unsigned long *xlat_virt(void *const *v, size_t n);
/* grabfb.c */