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:
parent
93b980a802
commit
444c6d6f03
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332092
@ -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() */
|
||||
|
@ -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_ */
|
||||
|
@ -160,6 +160,8 @@ struct cache_info {
|
||||
|
||||
unsigned int boot_address;
|
||||
|
||||
#define MiB(v) (v ## ULL << 20)
|
||||
|
||||
void
|
||||
mem_range_AP_init(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user