2 * Console output routines
3 * NetWatch multiboot loader
5 * Copyright (c) 2008 Jacob Potter and Joshua Wise. All rights reserved.
6 * This program is free software; you can redistribute and/or modify it under
7 * the terms found in the file LICENSE in the root of this source tree.
20 static void safeputs(const char *s)
22 smram_state_t old = smram_save_state();
23 smram_aseg_set_state(SMRAM_ASEG_SMMONLY);
25 smram_restore_state(old);
27 void (*output)(const char *s) = safeputs;
29 static void miniprintf(const char *fmt, ...)
35 vsnprintf(b, OUTBLEN, fmt, va);
42 void (*outputf)(const char *s, ...) = miniprintf;