Merge pull request #1 from Ignat99/feature

New kernel from Ignat99
This commit is contained in:
Ryan McGrath 2018-12-20 00:11:58 -08:00 committed by GitHub
commit e698d8c11f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 415 additions and 404 deletions

673
0-README

File diff suppressed because it is too large Load diff

View file

@ -44,7 +44,7 @@ CONFDIR = $(SRCDIR)/src/config
# Common prefix for installation directories. # Common prefix for installation directories.
# NOTE: This directory must exist when you start the install. # NOTE: This directory must exist when you start the install.
TOPDIR= TOPDIR=
prefix = $(TOPDIR)/usr prefix = $(TOPDIR)/usr/local
exec_prefix = $(prefix) exec_prefix = $(prefix)
# Directory where the shared stubs and static library will be installed. # Directory where the shared stubs and static library will be installed.

View file

@ -24,7 +24,10 @@
#include <linux/thread_info.h> #include <linux/thread_info.h>
#endif #endif
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/smp_lock.h>
/* #include <linux/smp_lock.h> */
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/wait.h> #include <linux/wait.h>
@ -38,7 +41,7 @@ asmlinkage long (*s_ioperm)(unsigned long from, unsigned long num, int turn_on);
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/system.h> /* cli(), *_flags */ /* #include <asm/system.h> */ /* cli(), *_flags */
#include <asm/segment.h> /* memcpy and such */ #include <asm/segment.h> /* memcpy and such */
#include <asm/io.h> #include <asm/io.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>

View file

@ -438,9 +438,9 @@ int mouse_open = 0;
static int mouse_mode = 0; static int mouse_mode = 0;
static int mouse_type = -1; static int mouse_type = -1;
static int mouse_modem_ctl = 0; static int mouse_modem_ctl = 0;
char *__svgalib_mouse_device = "/dev/mouse"; char *__svgalib_mouse_device = "/dev/input/mice";
int __svgalib_mouse_flag; int __svgalib_mouse_flag;
static char *helper_device = "/dev/svga"; static char *helper_device = "/dev/svga0";
static int __svgalib_oktowrite = 1; static int __svgalib_oktowrite = 1;
static int modeinfo_mask = ~0; static int modeinfo_mask = ~0;
static int configfile_chipset = UNDEFINED; static int configfile_chipset = UNDEFINED;

13
stars/stars.c Normal file
View file

@ -0,0 +1,13 @@
#include <vga.h>
#include <stdlib.h>
int main(void)
{ vga_init();
/* vga_setmode(G320x200x256); */
vga_setmode(146);
while(vga_getkey()==0) vga_setcolor(rand()&255),
vga_drawpixel(rand()%320,rand()%200);
vga_setmode(TEXT);
exit(0);
}