remove GiB/MiB macros from param.h

And instead define them in the files where they are used.

Requested by: bde
This commit is contained in:
Roger Pau Monné 2018-04-06 11:20:06 +00:00
parent 93b980a802
commit 444c6d6f03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332092
3 changed files with 4 additions and 4 deletions

View File

@ -83,6 +83,8 @@ __FBSDID("$FreeBSD$");
#define BIOS_RESET (0x0f)
#define BIOS_WARM (0x0a)
#define GiB(v) (v ## ULL << 30)
extern struct pcpu __pcpu[];
/* Temporary variables for init_secondary() */

View File

@ -362,8 +362,4 @@ __END_DECLS
*/
#define __PAST_END(array, offset) (((__typeof__(*(array)) *)(array))[offset])
/* Unit conversion macros. */
#define GiB(v) (v ## ULL << 30)
#define MiB(v) (v ## ULL << 20)
#endif /* _SYS_PARAM_H_ */

View File

@ -160,6 +160,8 @@ struct cache_info {
unsigned int boot_address;
#define MiB(v) (v ## ULL << 20)
void
mem_range_AP_init(void)
{