Subject: vm_map.{min,max}_offset
To: None <tech-kern@NetBSD.org>
From: Bang Jun-Young <junyoung@NetBSD.org>
List: tech-kern
Date: 04/27/2004 17:06:12
Hi,

Could anybody shed a light why the following two defines, min_offset and 
max_offset are reversed?

struct vm_map {
...
	struct vm_map_entry	header;		/* List of entries */
...
#define	min_offset		header.end
#define	max_offset		header.start
};

Shouldn't min_offset be smaller than max_offset like

#define	min_offset		header.start
#define	max_offset		header.end

? In uvmspace_exec() in uvm_map.c those are initialized as

		...
		map->min_offset = start;
		map->max_offset = end;
		...

Jun-Young