aboutsummaryrefslogtreecommitdiffstats
path: root/menu/syslinux.c
diff options
context:
space:
mode:
authorhpa <hpa>2005-04-28 23:12:09 +0000
committerhpa <hpa>2005-04-28 23:12:09 +0000
commit6ff6bfa27a7c611c3ff52020fb5c71202c96331b (patch)
treee67c0da0053ecec3f4a5414f71b3d2a982f23b19 /menu/syslinux.c
parentfded392bcacd004e7fa57eada39d825da33399cb (diff)
downloadsyslinux-elf-6ff6bfa27a7c611c3ff52020fb5c71202c96331b.tar.gz
syslinux-elf-6ff6bfa27a7c611c3ff52020fb5c71202c96331b.tar.xz
syslinux-elf-6ff6bfa27a7c611c3ff52020fb5c71202c96331b.zip
Rewritten advanced menuing system from Murali.
Diffstat (limited to 'menu/syslinux.c')
-rw-r--r--menu/syslinux.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/menu/syslinux.c b/menu/syslinux.c
deleted file mode 100644
index 232f2f40..00000000
--- a/menu/syslinux.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- c -*- ------------------------------------------------------------- *
- *
- * Copyright 2004 Murali Krishnan Ganapathy - All Rights Reserved
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
- * Boston MA 02111-1307, USA; either version 2 of the License, or
- * (at your option) any later version; incorporated herein by reference.
- *
- * ----------------------------------------------------------------------- */
-
-#include "syslinux.h"
-#include "biosio.h"
-
-static inline int asm_issyslinux(void)
-{
- unsigned long eax, ebx, ecx, edx;
-
- eax = 0x00003000;
- ebx = ecx = edx = 0xFFFFFFFF;
-
- asm("int $0x21"
- : "+a" (eax), "+b" (ebx), "+c" (ecx), "+d" (edx));
-
- return (eax == 0x59530000) && (ebx == 0x4c530000) &&
- (ecx == 0x4e490000) && (edx == 0x58550000);
-}
-
-int issyslinux(void)
-{
- return asm_issyslinux();
-}
-
-static inline void asm_runcommand(const char *cmd)
-{
- asm volatile("int $0x22" : : "a" (0x0003), "b" (cmd));
-}
-
-void runcommand(const char *cmd)
-{
- asm_runcommand(cmd);
-}
-
-static inline void asm_gototxtmode(void)
-{
- asm volatile("int $0x22" : : "a" (0x0005));
-}
-
-void gototxtmode()
-{
- asm_gototxtmode();
-}
-