[libre-riscv-dev] [Bug 168] create naturally aligned partition points

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Thu Feb 13 13:50:47 GMT 2020


http://bugs.libre-riscv.org/show_bug.cgi?id=168

Michael Nolan <mtnolan2640 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mtnolan2640 at gmail.com

--- Comment #1 from Michael Nolan <mtnolan2640 at gmail.com> ---
I had an idea about this last night. If it were acceptable that all the
partitions be the same size, then something like this seems reasonable:

   c   b   c   a   c   b   c
xxx|xxx|xxx|xxx|xxx|xxx|xxx|xxx

partition bits: abc

Guaranteeing that all the partitions are the same size and naturally aligned is
just a matter of ensuring that if a partition bit is set, then all previous
partition bits must also be set.

If we need to have different width partitions, something like this might work,
though it's a bit messier:
   a   b   c   d   e   f   g
xxx|xxx|xxx|xxx|xxx|xxx|xxx|xxx

partition bits: dbfaceg
or 
partition bits: dbacfeg

My idea was that it'd be sort of like a serialized binary tree. To ensure that
the partitions are naturally aligned, a given bit can only be set if its parent
bits are set, which seems harder to check/enforce than the method above

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-riscv-dev mailing list