aboutsummaryrefslogtreecommitdiff
path: root/i386/i386at
diff options
context:
space:
mode:
Diffstat (limited to 'i386/i386at')
-rw-r--r--i386/i386at/kd.c4
-rw-r--r--i386/i386at/kd_event.c4
-rw-r--r--i386/i386at/mem.c1
-rw-r--r--i386/i386at/model_dep.c2
-rw-r--r--i386/i386at/rtc.c12
5 files changed, 12 insertions, 11 deletions
diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c
index 5b932889..70737479 100644
--- a/i386/i386at/kd.c
+++ b/i386/i386at/kd.c
@@ -1448,7 +1448,7 @@ kd_parseesc(void)
*/
#define reverse_video_char(a) (((a) & 0x88) | ((((a) >> 4) | ((a) << 4)) & 0x77))
-void
+static void
kd_update_kd_attr(void)
{
kd_attr = kd_color;
@@ -2721,7 +2721,7 @@ bmpput(
* bmpcp1char: copy 1 char from one place in the frame buffer to
* another.
*/
-void
+static void
bmpcp1char(
csrpos_t from,
csrpos_t to)
diff --git a/i386/i386at/kd_event.c b/i386/i386at/kd_event.c
index 518e4859..5b1f7098 100644
--- a/i386/i386at/kd_event.c
+++ b/i386/i386at/kd_event.c
@@ -90,7 +90,7 @@ static boolean_t initialized = FALSE;
* kbdinit - set up event queue.
*/
-void
+static void
kbdinit(void)
{
spl_t s = SPLKD();
@@ -304,7 +304,7 @@ kbd_enqueue(kd_event *ev)
u_int X_kdb_enter_str[512], X_kdb_exit_str[512];
int X_kdb_enter_len = 0, X_kdb_exit_len = 0;
-void
+static void
kdb_in_out(const u_int *p)
{
int t = p[0];
diff --git a/i386/i386at/mem.c b/i386/i386at/mem.c
index ac0fd301..f46fc038 100644
--- a/i386/i386at/mem.c
+++ b/i386/i386at/mem.c
@@ -27,6 +27,7 @@
#include <device/io_req.h>
#include <i386/model_dep.h>
#include <i386at/biosmem.h>
+#include <i386at/mem.h>
/* This provides access to any memory that is not main RAM */
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 1819526b..0fc99406 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -361,7 +361,7 @@ register_boot_data(const struct multiboot_raw_info *mbi)
* Basic PC VM initialization.
* Turns on paging and changes the kernel segments to use high linear addresses.
*/
-void
+static void
i386at_init(void)
{
/* XXX move to intel/pmap.h */
diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c
index d771df8e..b2068416 100644
--- a/i386/i386at/rtc.c
+++ b/i386/i386at/rtc.c
@@ -60,7 +60,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
static boolean_t first_rtcopen_ever = TRUE;
-void
+static void
rtcinit(void)
{
outb(RTC_ADDR, RTC_A);
@@ -70,7 +70,7 @@ rtcinit(void)
}
-int
+static int
rtcget(struct rtc_st *st)
{
unsigned char *regs = (unsigned char *)st;
@@ -87,7 +87,7 @@ rtcget(struct rtc_st *st)
return(0);
}
-void
+static void
rtcput(struct rtc_st *st)
{
unsigned char *regs = (unsigned char *)st;
@@ -111,7 +111,7 @@ extern struct timeval time;
static int month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
-int
+static int
yeartoday(int year)
{
if (year%4)
@@ -134,13 +134,13 @@ yeartoday(int year)
return 366;
}
-int
+static int
hexdectodec(char n)
{
return(((n>>4)&0x0F)*10 + (n&0x0F));
}
-char
+static char
dectohexdec(int n)
{
return((char)(((n/10)<<4)&0xF0) | ((n%10)&0x0F));