foss-for-synopsys-dwc-arc-processors / linux

Helpful resources for users & developers of Linux kernel for ARC
22 stars 13 forks source link

Move ARC64 to high address #63

Closed VVIsaev closed 2 years ago

VVIsaev commented 2 years ago

These changes move Linux kernel PAGE_OFFSET to 0xffff_0000_0000_0000. It allows us to use RTP1 for kernel and RTP0 for userspace, so no need to remap kernel for each memory map switch.

WIP because:

  1. Need to be tested compared to general ARC64 build; 2. SMP need to be fixed, GET_CURR_TASK_ON_CPU and SET_CURR_TASK_ON_CPU don't support 64-bit addresses at the moment.
VVIsaev commented 2 years ago

Update:

  1. SMP support
  2. Addressed comments