* Re: ACK ANSI C compiler
2005-08-16 18:49 ` Harry Kalogirou
@ 2005-08-16 23:56 ` David Given
2005-08-17 14:42 ` [PATCH 1 DMA] Small Error Fixes Nanakos Chrysostomos
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: David Given @ 2005-08-16 23:56 UTC (permalink / raw)
To: linux-8086
[-- Attachment #1: Type: text/plain, Size: 1120 bytes --]
On Tuesday 16 August 2005 19:49, Harry Kalogirou wrote:
> > Does ACK compiles ELKS
>
> No it doesn't. Actually it is going to be a nightmare to make it compile
> under
> ACK. But we probably should face the daemons...
Apart from inline assembly, the biggest problem would most likely be
generating the output binaries: the ACK's linker won't generate output files.
Instead, the linker (it's called led) produces ack.out format files, just
like any other object file, and relies on an architecture specific program to
convert them into executable binaries.
(Given the vast number of different output formats, this is entirely
reasonable, if a little unhelpful.)
For ELKS, you'd probably have to write two binary converters: one for the
kernel, and one for the executables themselves. Neither of these would be
particularly difficult, especially since ELKS binaries are heavily based on
Minix binaries, and of course a Minix converter is supplied.
(arch/i86/cv/cv.c if anyone's interested.)
--
"Curses! Foiled by the chilled dairy treats of righteousness!" --- Earthworm
Jim (evil)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH 1 DMA] Small Error Fixes
2005-08-16 18:49 ` Harry Kalogirou
2005-08-16 23:56 ` David Given
@ 2005-08-17 14:42 ` Nanakos Chrysostomos
2005-08-17 14:44 ` [PATCH 2 DIRECTHD] " Nanakos Chrysostomos
2005-08-17 14:45 ` [PATCH 3 META] " Nanakos Chrysostomos
3 siblings, 0 replies; 7+ messages in thread
From: Nanakos Chrysostomos @ 2005-08-17 14:42 UTC (permalink / raw)
To: Harry Kalogirou; +Cc: Hans, linux-8086
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: patch1.dma --]
[-- Type: application/octet-stream, Size: 732 bytes --]
Signed-off-by: Nanakos Chrysostomos <nanakos@wired-net.gr>
--- kernel/dma.c.orig Wed Aug 17 16:56:24 2005
+++ kernel/dma.c Wed Aug 17 16:58:01 2005
@@ -93,6 +93,7 @@ void free_dma(unsigned char dma)
printk("Trying to free DMA%u\n", dma);
else if (!xchg(&dma_chan_busy[dma].lock, 0)) {
printk("Trying to free free DMA%u\n", dma);
+ } /* Nanakos Chrysostomos */
} /* free_dma */
/* enable/disable a specific DMA channel */
@@ -235,8 +236,8 @@ int get_dma_residue(unsigned char dma)
unsigned short count = 1 + dma_inb(io_port);
count += dma_inb(io_port) << 8;
-
- return (dmanr <= 3) ? count : (count << 1);
+ /* Nanakos Chrysostomos */
+ return (dma <= 3) ? count : (count << 1);
}
#endif
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH 2 DIRECTHD] Small Error Fixes
2005-08-16 18:49 ` Harry Kalogirou
2005-08-16 23:56 ` David Given
2005-08-17 14:42 ` [PATCH 1 DMA] Small Error Fixes Nanakos Chrysostomos
@ 2005-08-17 14:44 ` Nanakos Chrysostomos
2005-08-17 14:45 ` [PATCH 3 META] " Nanakos Chrysostomos
3 siblings, 0 replies; 7+ messages in thread
From: Nanakos Chrysostomos @ 2005-08-17 14:44 UTC (permalink / raw)
To: Harry Kalogirou; +Cc: Hans, linux-8086
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: patch2.directhd --]
[-- Type: application/octet-stream, Size: 518 bytes --]
Signed-off-by: Nanakos Chrysostomos <nanakos@wired-net.gr>
--- arch/i86/drivers/block/directhd.c.orig Wed Aug 17 17:05:54 2005
+++ arch/i86/drivers/block/directhd.c Wed Aug 17 17:03:12 2005
@@ -214,8 +214,8 @@ void swap_order(unsigned char *buffer,in
}
#endif
-
-void out_hd(unsinged int drive,unsigned int nsect,unsigned int sect,
+/*Nanakos Chrysostomos*/
+void out_hd(unsigned int drive,unsigned int nsect,unsigned int sect,
unsigned int head,unsigned int cyl,unsigned int cmd)
{
unsigned int port;
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH 3 META] Small Error Fixes
2005-08-16 18:49 ` Harry Kalogirou
` (2 preceding siblings ...)
2005-08-17 14:44 ` [PATCH 2 DIRECTHD] " Nanakos Chrysostomos
@ 2005-08-17 14:45 ` Nanakos Chrysostomos
3 siblings, 0 replies; 7+ messages in thread
From: Nanakos Chrysostomos @ 2005-08-17 14:45 UTC (permalink / raw)
To: Harry Kalogirou; +Cc: Hans, linux-8086
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
Commit these files with:
e.g
#patch -p0 < patch1.dma
[-- Attachment #2: patch3.meta --]
[-- Type: application/octet-stream, Size: 632 bytes --]
Signed-off-by: Nanakos Chrysostomos <nanakos@wired-net.gr>
--- arch/i86/drivers/char/meta.c.orig Wed Aug 17 17:06:09 2005
+++ arch/i86/drivers/char/meta.c Wed Aug 17 17:04:35 2005
@@ -64,14 +64,14 @@ int post_request(struct ud_driver *drive
return 0;
}
-
+/*Nanakos Chrysostomos*/
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) {
^ permalink raw reply [flat|nested] 7+ messages in thread