max device extension size

Is there a max size for a deviceExtension when calling IoCreateDevice(…)?
I haven’t found the trip point but when I pass a size of 1K there is no
problem while a 5K device extension causes a KMODE_EXCEPTION bugcheck (later
in the boot process).

Thanks,

Daniel Nemiroff
Intel Corporation
System Software Engineering
(916) 356-5723