Question :
Write a code in C that will partition your PIC32 32KB RAM into four equal segments (8KB each) for the kernel data, kernel program, user data and user program segments.
Hint: Assign the correct values to each of the base address registers for each segment.