while (1) { #ifdef KERNEL physicalAddress = 0x1000; #else physicalAddress = 0x2000; #endif ... other code ... }