Restore important part of example comment

This commit is contained in:
gil 2024-05-18 00:07:42 -05:00
parent 1b90501975
commit 531f0b8a59

View file

@ -25,6 +25,7 @@ unsafe extern "C" fn _enter() -> ! {
".option push", // pushes the current option stack
".option norelax", // disable relaxation so we can properly set `gp`
// this instruction compiles to:
// 1:
// auipc gp, %pcrel_hi(_global_pointer)
// addi gp, gp, %pcrel_lo(1b)
// if relaxation were on, this would simply be `mv gp, gp` or `addi gp, gp, 0`