summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-07-25 11:53:30 +0000
committerphk <phk@FreeBSD.org>1997-07-25 11:53:30 +0000
commit1333c949c4dda1da7a84f8cb112ae7111f77605a (patch)
tree4f9537d42fe55b02f6de5fedd13eabe699bc0bd9 /sys
parent909df620d07fa17271ce88c44d1dd81776fc68b0 (diff)
downloadFreeBSD-src-1333c949c4dda1da7a84f8cb112ae7111f77605a.zip
FreeBSD-src-1333c949c4dda1da7a84f8cb112ae7111f77605a.tar.gz
Add option for compiling in a 8x16 font.
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/Makefile.i3864
-rw-r--r--sys/conf/Makefile.powerpc4
-rw-r--r--sys/conf/NOTES4
-rw-r--r--sys/conf/files.i3867
-rw-r--r--sys/conf/options.i3863
-rw-r--r--sys/dev/syscons/syscons.c19
-rw-r--r--sys/i386/conf/LINT4
-rw-r--r--sys/i386/conf/Makefile.i3864
-rw-r--r--sys/i386/conf/NOTES4
-rw-r--r--sys/i386/conf/files.i3867
-rw-r--r--sys/i386/conf/options.i3863
-rw-r--r--sys/i386/isa/syscons.c19
-rw-r--r--sys/isa/syscons.c19
13 files changed, 76 insertions, 25 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index 04e035d..c50b2fa 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.99 1997/05/31 17:59:56 peter Exp $
+# $Id: Makefile.i386,v 1.100 1997/06/29 16:39:09 bde Exp $
#
# Makefile for FreeBSD
#
@@ -20,6 +20,8 @@ BINFORMAT?= aout
#BINFORMAT?= aoutkld
#BINFORMAT?= elf
+STD8X16FONT?= iso
+
.if exists(./@/.)
S= ./@
.else
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index 04e035d..c50b2fa 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.99 1997/05/31 17:59:56 peter Exp $
+# $Id: Makefile.i386,v 1.100 1997/06/29 16:39:09 bde Exp $
#
# Makefile for FreeBSD
#
@@ -20,6 +20,8 @@ BINFORMAT?= aout
#BINFORMAT?= aoutkld
#BINFORMAT?= elf
+STD8X16FONT?= iso
+
.if exists(./@/.)
S= ./@
.else
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 19555b1..a79b943 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
-# $Id: LINT,v 1.351 1997/07/17 06:01:10 dyson Exp $
+# $Id: LINT,v 1.352 1997/07/20 05:27:59 bde Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@@ -636,6 +636,8 @@ options PCVT_SCANSET=2 # IBM keyboards are non-std
device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr
options MAXCONS=16 # number of virtual consoles
options SLOW_VGA # do byte-wide i/o's to TS and GDC regs
+options "STD8X16FONT" # Compile font in
+makeoptions "STD8X16FONT"="cp850"
#
# `flags' for sc0:
diff --git a/sys/conf/files.i386 b/sys/conf/files.i386
index b1cd4e9..fe46c28 100644
--- a/sys/conf/files.i386
+++ b/sys/conf/files.i386
@@ -1,7 +1,7 @@
# This file tells config what files go into building a kernel,
# files marked standard are always included.
#
-# $Id: files.i386,v 1.1 1997/07/24 19:05:09 smp Exp smp $
+# $Id: files.i386,v 1.167 1997/07/24 23:45:17 fsmp Exp $
#
aic7xxx_asm optional ahc device-driver \
dependency "$S/dev/aic7xxx/*.[chyl]" \
@@ -31,6 +31,11 @@ linux_assym.h optional compat_linux \
no-obj no-implicit-rule before-depend \
clean "linux_assym.h"
#
+font8x16.o optional std8x16font \
+ compile-with "uudecode < /usr/share/syscons/fonts/${STD8X16FONT}-8x16.fnt && file2c 'unsigned char font_16[16*256] = {' '};' < ${STD8X16FONT}-8x16 > font8x16.c && ${CC} -c ${CFLAGS} font8x16.c" \
+ no-implicit-rule before-depend \
+ clean "${STD8X16FONT}-8x16 font8x16.c"
+#
i386/scsi/93cx6.c optional ahc device-driver
i386/apm/apm.c optional apm device-driver
i386/apm/apm_setup.s optional apm
diff --git a/sys/conf/options.i386 b/sys/conf/options.i386
index dd06313..f9c2fde 100644
--- a/sys/conf/options.i386
+++ b/sys/conf/options.i386
@@ -1,4 +1,4 @@
-# $Id: options.i386,v 1.49 1997/06/30 14:37:43 yokota Exp $
+# $Id: options.i386,v 1.50 1997/07/13 15:26:54 bde Exp $
BOUNCEPAGES opt_bounce.h
USER_LDT
@@ -72,6 +72,7 @@ I686_CPU opt_cpu.h
SC_SPLASH_SCREEN opt_syscons.h
MAXCONS opt_syscons.h
SLOW_VGA opt_syscons.h
+STD8X16FONT opt_syscons.h
PSM_ACCEL opt_psm.h
PSM_EMULATION opt_psm.h
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index a2b843a..6f901d0 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.225 1997/07/15 14:43:22 yokota Exp $
+ * $Id: syscons.c,v 1.226 1997/07/20 14:10:13 bde Exp $
*/
#include "sc.h"
@@ -119,10 +119,15 @@ static long scrn_time_stamp;
u_char scr_map[256];
u_char scr_rmap[256];
char *video_mode_ptr = NULL;
- int fonts_loaded = 0;
+ int fonts_loaded = 0
+#ifdef STD8X16FONT
+ | FONT_16
+#endif
+ ;
+
char font_8[256*8];
char font_14[256*14];
- char font_16[256*16];
+extern unsigned char font_16[256*16];
char palette[256*3];
static char vgaregs[64];
static char *cut_buffer;
@@ -2696,8 +2701,12 @@ scinit(void)
/* Save font and palette if VGA */
if (crtc_vga) {
- copy_font(SAVE, FONT_16, font_16);
- fonts_loaded = FONT_16;
+ if (fonts_loaded & FONT_16) {
+ copy_font(LOAD, FONT_16, font_16);
+ } else {
+ copy_font(SAVE, FONT_16, font_16);
+ fonts_loaded = FONT_16;
+ }
save_palette();
set_destructive_cursor(console[0]);
}
diff --git a/sys/i386/conf/LINT b/sys/i386/conf/LINT
index 19555b1..a79b943 100644
--- a/sys/i386/conf/LINT
+++ b/sys/i386/conf/LINT
@@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
-# $Id: LINT,v 1.351 1997/07/17 06:01:10 dyson Exp $
+# $Id: LINT,v 1.352 1997/07/20 05:27:59 bde Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@@ -636,6 +636,8 @@ options PCVT_SCANSET=2 # IBM keyboards are non-std
device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr
options MAXCONS=16 # number of virtual consoles
options SLOW_VGA # do byte-wide i/o's to TS and GDC regs
+options "STD8X16FONT" # Compile font in
+makeoptions "STD8X16FONT"="cp850"
#
# `flags' for sc0:
diff --git a/sys/i386/conf/Makefile.i386 b/sys/i386/conf/Makefile.i386
index 04e035d..c50b2fa 100644
--- a/sys/i386/conf/Makefile.i386
+++ b/sys/i386/conf/Makefile.i386
@@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.99 1997/05/31 17:59:56 peter Exp $
+# $Id: Makefile.i386,v 1.100 1997/06/29 16:39:09 bde Exp $
#
# Makefile for FreeBSD
#
@@ -20,6 +20,8 @@ BINFORMAT?= aout
#BINFORMAT?= aoutkld
#BINFORMAT?= elf
+STD8X16FONT?= iso
+
.if exists(./@/.)
S= ./@
.else
diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES
index 19555b1..a79b943 100644
--- a/sys/i386/conf/NOTES
+++ b/sys/i386/conf/NOTES
@@ -2,7 +2,7 @@
# LINT -- config file for checking all the sources, tries to pull in
# as much of the source tree as it can.
#
-# $Id: LINT,v 1.351 1997/07/17 06:01:10 dyson Exp $
+# $Id: LINT,v 1.352 1997/07/20 05:27:59 bde Exp $
#
# NB: You probably don't want to try running a kernel built from this
# file. Instead, you should start from GENERIC, and add options from
@@ -636,6 +636,8 @@ options PCVT_SCANSET=2 # IBM keyboards are non-std
device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr
options MAXCONS=16 # number of virtual consoles
options SLOW_VGA # do byte-wide i/o's to TS and GDC regs
+options "STD8X16FONT" # Compile font in
+makeoptions "STD8X16FONT"="cp850"
#
# `flags' for sc0:
diff --git a/sys/i386/conf/files.i386 b/sys/i386/conf/files.i386
index b1cd4e9..fe46c28 100644
--- a/sys/i386/conf/files.i386
+++ b/sys/i386/conf/files.i386
@@ -1,7 +1,7 @@
# This file tells config what files go into building a kernel,
# files marked standard are always included.
#
-# $Id: files.i386,v 1.1 1997/07/24 19:05:09 smp Exp smp $
+# $Id: files.i386,v 1.167 1997/07/24 23:45:17 fsmp Exp $
#
aic7xxx_asm optional ahc device-driver \
dependency "$S/dev/aic7xxx/*.[chyl]" \
@@ -31,6 +31,11 @@ linux_assym.h optional compat_linux \
no-obj no-implicit-rule before-depend \
clean "linux_assym.h"
#
+font8x16.o optional std8x16font \
+ compile-with "uudecode < /usr/share/syscons/fonts/${STD8X16FONT}-8x16.fnt && file2c 'unsigned char font_16[16*256] = {' '};' < ${STD8X16FONT}-8x16 > font8x16.c && ${CC} -c ${CFLAGS} font8x16.c" \
+ no-implicit-rule before-depend \
+ clean "${STD8X16FONT}-8x16 font8x16.c"
+#
i386/scsi/93cx6.c optional ahc device-driver
i386/apm/apm.c optional apm device-driver
i386/apm/apm_setup.s optional apm
diff --git a/sys/i386/conf/options.i386 b/sys/i386/conf/options.i386
index dd06313..f9c2fde 100644
--- a/sys/i386/conf/options.i386
+++ b/sys/i386/conf/options.i386
@@ -1,4 +1,4 @@
-# $Id: options.i386,v 1.49 1997/06/30 14:37:43 yokota Exp $
+# $Id: options.i386,v 1.50 1997/07/13 15:26:54 bde Exp $
BOUNCEPAGES opt_bounce.h
USER_LDT
@@ -72,6 +72,7 @@ I686_CPU opt_cpu.h
SC_SPLASH_SCREEN opt_syscons.h
MAXCONS opt_syscons.h
SLOW_VGA opt_syscons.h
+STD8X16FONT opt_syscons.h
PSM_ACCEL opt_psm.h
PSM_EMULATION opt_psm.h
diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c
index a2b843a..6f901d0 100644
--- a/sys/i386/isa/syscons.c
+++ b/sys/i386/isa/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.225 1997/07/15 14:43:22 yokota Exp $
+ * $Id: syscons.c,v 1.226 1997/07/20 14:10:13 bde Exp $
*/
#include "sc.h"
@@ -119,10 +119,15 @@ static long scrn_time_stamp;
u_char scr_map[256];
u_char scr_rmap[256];
char *video_mode_ptr = NULL;
- int fonts_loaded = 0;
+ int fonts_loaded = 0
+#ifdef STD8X16FONT
+ | FONT_16
+#endif
+ ;
+
char font_8[256*8];
char font_14[256*14];
- char font_16[256*16];
+extern unsigned char font_16[256*16];
char palette[256*3];
static char vgaregs[64];
static char *cut_buffer;
@@ -2696,8 +2701,12 @@ scinit(void)
/* Save font and palette if VGA */
if (crtc_vga) {
- copy_font(SAVE, FONT_16, font_16);
- fonts_loaded = FONT_16;
+ if (fonts_loaded & FONT_16) {
+ copy_font(LOAD, FONT_16, font_16);
+ } else {
+ copy_font(SAVE, FONT_16, font_16);
+ fonts_loaded = FONT_16;
+ }
save_palette();
set_destructive_cursor(console[0]);
}
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c
index a2b843a..6f901d0 100644
--- a/sys/isa/syscons.c
+++ b/sys/isa/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.225 1997/07/15 14:43:22 yokota Exp $
+ * $Id: syscons.c,v 1.226 1997/07/20 14:10:13 bde Exp $
*/
#include "sc.h"
@@ -119,10 +119,15 @@ static long scrn_time_stamp;
u_char scr_map[256];
u_char scr_rmap[256];
char *video_mode_ptr = NULL;
- int fonts_loaded = 0;
+ int fonts_loaded = 0
+#ifdef STD8X16FONT
+ | FONT_16
+#endif
+ ;
+
char font_8[256*8];
char font_14[256*14];
- char font_16[256*16];
+extern unsigned char font_16[256*16];
char palette[256*3];
static char vgaregs[64];
static char *cut_buffer;
@@ -2696,8 +2701,12 @@ scinit(void)
/* Save font and palette if VGA */
if (crtc_vga) {
- copy_font(SAVE, FONT_16, font_16);
- fonts_loaded = FONT_16;
+ if (fonts_loaded & FONT_16) {
+ copy_font(LOAD, FONT_16, font_16);
+ } else {
+ copy_font(SAVE, FONT_16, font_16);
+ fonts_loaded = FONT_16;
+ }
save_palette();
set_destructive_cursor(console[0]);
}
OpenPOWER on IntegriCloud