minix/drivers/memory/local.h
Ben Gras ed1af3c86c VM: full munmap
complete munmap implementation; single-page references made
a general munmap() implementation possible to write cleanly.

	. memory: let the MIOCRAMSIZE ioctl set the imgrd device
	  size (but only to 0)
	. let the ramdisk command set sizes to 0
	. use this command to set /dev/imgrd to 0 after mounting /usr
	  in /etc/rc, so the boot time ramdisk is freed (about 4MB
	  currently)
2012-09-18 13:17:52 +02:00

9 lines
241 B
C

/*
local defines and declarations
*/
extern unsigned char _binary_imgrd_mfs_start, _binary_imgrd_mfs_end;
#define imgrd &_binary_imgrd_mfs_start
#define imgrd_size \
(((size_t) &_binary_imgrd_mfs_end - (size_t)&_binary_imgrd_mfs_start))