]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/console/serial_general.c
xnu-3789.51.2.tar.gz
[apple/xnu.git] / osfmk / console / serial_general.c
index d51e98dabe32ec12153dc5e16a0353a6c3d9049d..c6d43f858c4ec88260cc774c7431871694e1111d 100644 (file)
  * @APPLE_FREE_COPYRIGHT@
  */
 
-#include <mach_kdb.h>
-#include <platforms.h>
 #include <kern/spl.h>
 #include <mach/std_types.h>
 #include <types.h>
 #include <kern/thread.h>
 #include <console/serial_protos.h>
+#include <libkern/section_keywords.h>
 
 extern void cons_cinput(char ch);              /* The BSD routine that gets characters */
 
-unsigned int serialmode;                               /* Serial mode keyboard and console control */
+SECURITY_READ_ONLY_LATE(unsigned int) serialmode;                              /* Serial mode keyboard and console control */
 
 /*
  *  This routine will start a thread that polls the serial port, listening for