Re: [PATCH 12/15] riscv: clear the instruction cache and all registers when booting

2019-10-17 Thread Anup Patel
On Thu, Oct 17, 2019 at 11:08 PM Christoph Hellwig wrote: > > When we get booted we want a clear slate without any leaks from previous > supervisors or the firmware. Flush the instruction cache and then clear > all registers to known good values. This is really important for the > upcoming

[PATCH 12/15] riscv: clear the instruction cache and all registers when booting

2019-10-17 Thread Christoph Hellwig
When we get booted we want a clear slate without any leaks from previous supervisors or the firmware. Flush the instruction cache and then clear all registers to known good values. This is really important for the upcoming nommu support that runs on M-mode, but can't really harm when running in