HomeFreeBSD

[PowerPC64] Fix xive order calculation in qemu TCG

Description

[PowerPC64] Fix xive order calculation in qemu TCG

When emulating a single thread system for testing reasons, mp_maxid can
be 0. This trips up our math for calculating the order.

Account for this to fix xive attachment when emulating a single-thread
core on qemu powernv (a configuration that doesn't exist in the real world.)

Sponsored by: Tag1 Consulting, Inc.

Details

Provenance
bdragonAuthored on
Parents
rS365486: Add kern_mmap_racct_check(), a helper to verify limits in vm_mmap*().
Branches
Unknown
Tags
Unknown