To achieve great things, two things are needed; a plan and not quite enough time.
I’ve been using Vim and some handy plugins for a while. Today when I was trying to use the “copy-to-clipboard” combo-key "+y in Vim, I found that it didn’t work for me. After doing some Google search I realized that to use the “copy-to-clipboard” function the Vim has to enable GUI. However, the Vim on my computer didn’t support GUI: 1 2 3 4 5 6 7 8 $ vim --version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48) Included patches: 1-1689 Extra patches: 8.0.0056 Modified by pkg-vim-maintaine
Q1: Compare kern/mpentry.S side by side with boot/boot.S. Bearing in mind that kern/mpentry.S is compiled and linked to run above KERNBASE just like everything else in the kernel, what is the purpose of macro MPBOOTPHYS? Why is it necessary in kern/mpentry.S but not in boot/boot.S? In other words, what could go wrong if it were omitted in kern/mpentry.S? A1: Macro MPBOOTPHYS maps a virtual address (above KERNBASE) to be its physical address. It is needed because mpentry.S is linked at high addresses but get