Skip to content

Commit

Permalink
Fix: Allow util.h to be included in assembly files
Browse files Browse the repository at this point in the history
  • Loading branch information
Hesham Almatary committed May 29, 2017
1 parent 3230c90 commit 1930cf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/util.h
Expand Up @@ -87,7 +87,6 @@ int PURE strncmp(const char *s1, const char *s2, int n);
long CONST char_to_long(char c);
long PURE str_to_long(const char* str);

#endif /* !__ASSEMBLER__ */

int __builtin_clzl (unsigned long x);
int __builtin_ctzl (unsigned long x);
Expand Down Expand Up @@ -133,4 +132,5 @@ CONST popcountl(unsigned long x)

#define POPCOUNTL(x) __builtin_popcountl(x)

#endif /* !__ASSEMBLER__ */
#endif /* __UTIL_H */
3 changes: 1 addition & 2 deletions src/arch/arm/32/traps.S
Expand Up @@ -9,13 +9,12 @@
*/

#include <config.h>
#include <util.h>

#ifndef CONFIG_ARM_HYPERVISOR_SUPPORT

#include <machine/assembler.h>

#define BIT(n) (1 << (n))

.code 32
.section .vectors, "ax"

Expand Down

0 comments on commit 1930cf2

Please sign in to comment.