Anything good here? Diff of elks -> nanox
I've run a diff between the nanox project on Google Code and the ELKS project as seen in Git, removed all documentation-style files from the diff, and am attaching it here. Does anyone see anything of interest that should be included in the ELKS code base?
Jody Bruchon
nanox-read-only/Makefile renamed from Makefile +2 -2
@@ -142,7 +142,7 @@ include/linuxmt/compiler-generated.h: printf > include/linuxmt/compiler-generated.h \ '#define %s %s\n' \ - UTS_VERSION "\"#$(DIST)���$(shell date)\"" + UTS_VERSION "\"#$(DIST)���$(shell date +%Y-%m-%d)\"" ######################################################################### # lint rule
@@ -197,7 +197,7 @@ @printf '\n %076u\n\n' 0 | tr 0 = distclean: clean nodep - rm -f .config* .menuconfig* arch/i86/Image + rm -f .config* .menuconfig* ######################################################################### # Create distribution archives.
nanox-read-only/Makefile-rules renamed from Makefile-rules +1 -1
@@ -91,7 +91,7 @@ DIST = $(shell printf '%u.%u.%u-pre%u' \ $(VERSION) $(PATCHLEVEL) $(SUBLEVEL) $(PRE)) -VSNCODE = $(shell printf '0x%06X%02X' $$(($(VSNCODE1)-1)) $(PRE)) +VSNCODE = $(shell printf '0x%06X%02X' $$[$(VSNCODE1)-1] $(PRE)) endif
nanox-read-only/arch/i86/Makefile renamed from arch/i86/Makefile +7 -8
@@ -61,7 +61,7 @@ .PHONY: boot/system toolkit boot/bootsect: boot/bootsect.o - $(LD) -0 $(ARCH_LD) -s -o boot/bootsect -M boot/bootsect.o > Boot.map + $(LD) -0 -M $(ARCH_LD) -s -o boot/bootsect boot/bootsect.o > Boot.map boot/bootsect.o: boot/bootsect.s
@@ -70,12 +70,12 @@ boot/crt1.o: boot/crt1.c boot/netbootsect: boot/netbootsect.o - $(LD) $(LDFLAGS) $(ARCH_LD) -s -o boot/netbootsect -M boot/netbootsect.o > Netboot.map + $(LD) $(LDFLAGS) -M $(ARCH_LD) -s -o boot/netbootsect boot/netbootsect.o > Netboot.map boot/netbootsect.o: boot/netbootsect.s boot/setup: boot/setup.o - $(LD) -0 $(ARCH_LD) -s -o boot/setup -M boot/setup.o > Setup.map + $(LD) -0 -M $(ARCH_LD) -s -o boot/setup boot/setup.o > Setup.map boot/setup.o: boot/setup.s
@@ -89,10 +89,10 @@ ifeq ($(CONFIG_ARCH_SIBO), y) boot/system: $(AARCHIVES) $(ADRIVERS) sibo/crt1.o sibo/crt0.o - (cd $(BASEDIR) ; $(LD) $(LDFLAGS) $(ARCH_LD) \ + (cd $(BASEDIR) ; $(LD) $(LDFLAGS) -t -M $(ARCH_LD) \ $(ARCH_DIR)/sibo/crt0.o $(ARCH_DIR)/sibo/crt1.o \ init/main.o $(ARCHIVES) $(DRIVERS) \ - -t -M -o $(ARCH_DIR)/boot/system > System.tmp ; \ + -o $(ARCH_DIR)/boot/system > System.tmp ; \ sort -k4 System.tmp > System.map ; rm -f System.tmp ) #SIBO image build
@@ -104,11 +104,10 @@ else boot/system: $(AARCHIVES) $(ADRIVERS) boot/crt1.o boot/crt0.o - (cd $(BASEDIR) ; $(LD) $(LDFLAGS) $(ARCH_LD) \ - -t -M -o $(ARCH_DIR)/boot/system \ + (cd $(BASEDIR) ; $(LD) $(LDFLAGS) -t -M $(ARCH_LD) \ $(ARCH_DIR)/boot/crt0.o $(ARCH_DIR)/boot/crt1.o \ init/main.o $(ARCHIVES) $(DRIVERS) \ - > System.tmp ; \ + -o $(ARCH_DIR)/boot/system > System.tmp ; \ sort -k4 System.tmp > System.map ; rm -f System.tmp ) #PC image build
nanox-read-only/arch/i86/boot/setup.S renamed from arch/i86/boot/setup.S +39 -7
94 lines not on this page · raw message
nanox-read-only/arch/i86/drivers/block/doshd.c renamed from arch/i86/drivers/block/doshd.c +5 -4
@@ -168,7 +168,7 @@if ((BD_AX !=0x100 ) && (!CARRY_SET )) { drivep->cylinders = ((BD_CX >>8 ) &255 ); drivep->cylinders += (((BD_CX >>6 ) &3 ) *256 ); - drivep->heads = ((BD_DX >>8 ) &63 ) +1 ; + drivep->heads = ((BD_DX >>8 )) +1 ; drivep->sectors = (BD_CX &63 ); drivep->fdtype =-1 ; }
@@ -461,8 +461,9 @@BD_DX = hd_drive_map[target];/* Head 0, drive number */ call_bios ();if (!CARRY_SET ) { - drivep->sectors = (BD_CX &0xff ) +1 ; - drivep->cylinders = (BD_CX >>8 ) +1 ; + drivep->sectors = (BD_CX &0x3f )/* + 1*/ ; + drivep->cylinders = ((BD_CX >>8 ) | ((BD_CX &0xC0 ) <<2 )) +1 ; + drivep->heads = (BD_DX >>8 ) +1 ; }else printk ("bioshd_open: no diskinfo %d\n" , hd_drive_map[target]);
@@ -700,7 +701,7 @@ start = req->rq_sector; buff = req->rq_buffer; -if ((int ) hd[minor].start_sect ==-1 || start >= hd[minor].nr_sects) { +if ((int ) hd[minor].start_sect ==-1 /*|| start >= hd[minor].nr_sects*/ ) {printk ("hd: bad partition start=%d sect=%d nr_sects=%d.\n" , start, (int ) hd[minor].start_sect, (int ) hd[minor].nr_sects);
nanox-read-only/arch/i86/drivers/char/Config.in renamed from arch/i86/drivers/char/Config.in +1 -1
@@ -3,7 +3,7 @@ # mainmenu_option next_comment - comment 'Character device drivers' + comment 'Character device drivers (SUBMENU IS CURRENTLY BROKEN!)' if [ "$CONFIG_ARCH_SIBO" != "y" ]; then choice 'Select console driver' \
nanox-read-only/arch/i86/drivers/char/KeyMaps/Config.in renamed from arch/i86/drivers/char/KeyMaps/Config.in +0 -14
@@ -1,14 +0,0 @@ -# Automatically created - do not edit. - -choice 'XT Keyboard support' \ - "Belgique CONFIG_KEYMAP_BE \ - Deutsch CONFIG_KEYMAP_DE \ - Dvorak CONFIG_KEYMAP_DV \ - Espanol CONFIG_KEYMAP_ES \ - Fran���ais CONFIG_KEYMAP_FR \ - Italiano CONFIG_KEYMAP_IT \ - Suede CONFIG_KEYMAP_SE \ - British CONFIG_KEYMAP_UK \ - American CONFIG_KEYMAP_US" American - -# EOF.
nanox-read-only/arch/i86/drivers/char/KeyMaps/keymaps.h renamed from arch/i86/drivers/char/KeyMaps/keymaps.h +0 -11
@@ -1,11 +0,0 @@ -/* Automatically created - do not edit */ - -#include "keys-be.h" /* BE Belgique */ -#include "keys-de.h" /* DE Deutsch */ -#include "keys-dv.h" /* DV Dvorak */ -#include "keys-es.h" /* ES Espanol */ -#include "keys-be.h" /* FR Fran���ais */ -#include "keys-it.h" /* IT Italiano */ -#include "keys-se.h" /* SE Suede */ -#include "keys-uk.h" /* UK British */ -#include "keys-us.h" /* US American */
nanox-read-only/arch/i86/drivers/char/KeyMaps/mkcfg renamed from arch/i86/drivers/char/KeyMaps/mkcfg +1 -1
@@ -23,4 +23,4 @@ printf '"\t\tAmerican\n\n# EOF.\n' >&3 } -codes | sort -k 2 | process 3> Config.in 4> keymaps.h +codes | sort -k 2f | process 3> Config.in 4> keymaps.h
nanox-read-only/arch/i86/drivers/char/bioscon.c renamed from arch/i86/drivers/char/bioscon.c +1 -0
@@ -15,6 +15,7 @@#include <linuxmt/major.h> #include <linuxmt/sched.h> #include <linuxmt/ntty.h> +#include <linuxmt/debug.h> #ifdef CONFIG_CONSOLE_BIOS
nanox-read-only/arch/i86/drivers/char/meta.c renamed from arch/i86/drivers/char/meta.c +1 -1
@@ -67,11 +67,11 @@static void do_meta_request (kdev_t device) { -int major =MAJOR (device);struct ud_driver *driver =get_driver (major);struct ud_request *udr;struct request *req;char *buff; +int major =MAJOR (device);printk ("do_meta_request %d %x\n" , major, blk_dev[major].current_request);if (NULL == driver) {
nanox-read-only/arch/i86/kernel/irqtab.c renamed from arch/i86/kernel/irqtab.c +157 -60
330 lines not on this page · raw message
nanox-read-only/arch/i86/mm/user.c renamed from arch/i86/mm/user.c +36 -24
100 lines not on this page · raw message
nanox-read-only/arch/i86/tools/wrt_disk.c renamed from arch/i86/tools/wrt_disk.c +4 -2
@@ -7,7 +7,7 @@* pick up any improvements as that developes. */ -#define DEBUG +#define DEBUG_WRT_DISK #include "tools.h"
@@ -51,7 +51,7 @@LCD_WriteChar (' ' ); } -#ifndef DEBUG +#ifndef DEBUG_WRT_DISK void debug (char *a) {while (*a)
@@ -314,3 +314,5 @@return 0 ; } + +#undef DEBUG_WRT_DISK
nanox-read-only/fs/romfs/inode.c renamed from fs/romfs/inode.c +2 -2
@@ -243,7 +243,7 @@return res; } -static int romfs_copyfrom (struct inode *i,char *dest,loff_t offset, +static int romfs_copyfrom (struct inode *i,void *dest,loff_t offset,size_t count) {struct buffer_head *bh;
@@ -279,7 +279,7 @@while (res < count) { offset += maxsize; - *dest += maxsize; + ((char *) dest) += maxsize; bh =bread (i->i_dev, (block_t) (offset >>ROMBSBITS ));
nanox-read-only/include/arch/debug_disp.h renamed from include/arch/debug_disp.h +4 -1
@@ -7,7 +7,10 @@* Debugging facility over i/o port * Modifications: * -* $Log$ +* $Log: debug_disp.h,v $ +* Revision 1.3 2002/04/26 19:45:17 rhw2 +* Next stage of `make lint` verification of the ELKS source code. +* * Revision 1.2 2002/02/24 17:29:00 rhw2 * Fixed #else and #endif to not fox the bcc -ansi option. Reformatted scripts/Configure and scripts/Menuconfig to a consistent style. Removed ELKS dependency on the Linux kernel source being available. *
nanox-read-only/include/arch/dma.h renamed from include/arch/dma.h +1 -1
@@ -1,4 +1,4 @@ -/* $Id$ +/* $Id: dma.h,v 1.5 2002/04/26 19:45:18 rhw2 Exp $ * linux/include/asm/dma.h: Defines for using and allocating dma channels. * Written by Hennus Bergman, 1992. * High DMA channel support & info by Hannu Savolainen
nanox-read-only/init/main.c renamed from init/main.c +1 -1
@@ -1,4 +1,4 @@ -/* $Header$ +/* $Header: /cvsroot/elks/elks/init/main.c,v 1.28 2006/11/08 22:57:21 segin Exp $ */ #include <linuxmt/config.h>
nanox-read-only/kernel/printk.c renamed from kernel/printk.c +45 -47
153 lines not on this page · raw message