I've tested the patch by booting a 10GB FreeBSD VM with two domains: `-n id=0,start=0x0,end=0x160000000,cpus=0-4 -n id=1,start=0x160000000,end=0x2c0000000,cpus=5-9`.
I can confirm that FreeBSD detects the specified domains properly.
```
bojan@dev /u/h/bojan> sysctl vm.phys_segs
vm.phys_segs:
SEGMENT 0:
start: 0x1000
end: 0xa0000
domain: 0
free list: 0xffffffff812462b0
...
SEGMENT 6:
start: 0x160000000
end: 0x2b6d24000
domain: 1
free list: 0xffffffff81246790
...
```