1 // Copyright 2016 The Fuchsia Authors
2 //
3 // Use of this source code is governed by a MIT-style
4 // license that can be found in the LICENSE file or at
5 // https://opensource.org/licenses/MIT
6 
7 #pragma once
8 
9 #include <asm.h>
10 
11 /* x86 assembly macros used in a few files */
12 
13 #define PHYS_LOAD_ADDRESS (KERNEL_LOAD_OFFSET)
14 #define PHYS_ADDR_DELTA (KERNEL_BASE - PHYS_LOAD_ADDRESS)
15 #define PHYS(x) ((x) - PHYS_ADDR_DELTA)
16