diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-18 01:44:38 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-18 01:44:38 +0000 |
commit | 9596ebb7012a19a45ca036a200acd617a93a321b (patch) | |
tree | df011db5945e48dc0c86c04daf2c2072f43f2867 /hw/pc.c | |
parent | 4c1b1bfe30dab7bc08e3ff8f179f8e11be9d7f04 (diff) |
Add statics and missing #includes for prototypes.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3683 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pc.c')
-rw-r--r-- | hw/pc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -317,7 +317,7 @@ static uint32_t ioport92_read(void *opaque, uint32_t addr) /***********************************************************/ /* Bochs BIOS debug ports */ -void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val) +static void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val) { static const char shutdown_str[8] = "Shutdown"; static int shutdown_index = 0; @@ -361,7 +361,7 @@ void bochs_bios_write(void *opaque, uint32_t addr, uint32_t val) } } -void bochs_bios_init(void) +static void bochs_bios_init(void) { register_ioport_write(0x400, 1, 2, bochs_bios_write, NULL); register_ioport_write(0x401, 1, 2, bochs_bios_write, NULL); @@ -431,8 +431,8 @@ static void generate_bootsect(uint32_t gpr[8], uint16_t segs[6], uint16_t ip) bdrv_set_boot_sector(bs_table[0], bootsect, sizeof(bootsect)); } -int load_kernel(const char *filename, uint8_t *addr, - uint8_t *real_addr) +static int load_kernel(const char *filename, uint8_t *addr, + uint8_t *real_addr) { int fd, size; int setup_sects; |