git: vkernel64 - Cleanup, unbreak 32 bit
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Mar 24 13:30:13 PDT 2010
commit 8608b85890bfee745009ebbd1b5eaf4a0077d794
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Mar 23 11:42:42 2010 -0700
vkernel64 - Cleanup, unbreak 32 bit
* Remove stdio cruft from init_main.c
* Change vpte_t from 64-bits to u_long, so it will be 32 bits
on 32 bit machines and 64 bits on 64 bit machines. 32 bit
machines can't handle the address space breakdown or issue
atomic ops on 64 bit quantities.
Adjust various defines in sys/vkernel.h to accomodate both
cases.
* Adjust atomic ops used by vm/vm_fault.c for virtual page
table access (int -> long).
* Adjust atomic ops and types used by the 32 bit
platform/vkernel code, primarily (int -> long) and
also some vm_offset_t's which are really vm_paddr_t's
or vpte_t's.
* Adjust src/test/vkernel/Makefile to run properly on
a 32 or 64 bit system.
Summary of changes:
sys/kern/init_main.c | 6 +--
sys/platform/vkernel/include/pmap.h | 2 +-
sys/platform/vkernel/platform/pmap.c | 31 ++++++++-------
sys/platform/vkernel/platform/pmap_inval.c | 12 +++---
sys/platform/vkernel64/platform/pmap.c | 2 +-
sys/sys/vkernel.h | 25 ++++++++++--
sys/vm/vm_fault.c | 4 +-
test/vkernel/Makefile | 58 +++++++++++++++------------
8 files changed, 79 insertions(+), 61 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8608b85890bfee745009ebbd1b5eaf4a0077d794
--
DragonFly BSD source repository
More information about the Commits
mailing list