Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jul 2010 04:31:52 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 180743 for review
Message-ID:  <201007110431.o6B4VqDh065149@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@180743?ac=10

Change 180743 by gonzo@gonzo_figaro on 2010/07/11 04:31:08

	Protect kernel-only part from being used in userland apps

Affected files ...

.. //depot/projects/avr32/src/sys/avr32/include/cpu.h#7 edit

Differences ...

==== //depot/projects/avr32/src/sys/avr32/include/cpu.h#7 (text+ko) ====

@@ -30,6 +30,7 @@
 #ifndef MACHINE_CPU_H
 #define MACHINE_CPU_H
 
+#ifdef	_KERNEL
 #ifndef LOCORE
 #include <machine/bus.h>
 #include <machine/psl.h>
@@ -46,6 +47,7 @@
 void	fork_trampoline(void);
 
 #endif /* !LOCORE */
+#endif
 
 // Macros for segment addressing
 #define AVR32_SEG_P0			0x00000000



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007110431.o6B4VqDh065149>