Commit b03770e4 authored by Linus Torvalds's avatar Linus Torvalds

Import 2.1.124pre2

parent a172a8a2
......@@ -1189,7 +1189,8 @@ CONFIG_TGA_CONSOLE
that implements the TGA interface (much like the VGA standard, but
older TGA adapters are *not* VGA compatible). On such systems, you
should say Y here so that the TGA driver rather than the standard
VGA driver is used.
VGA driver is used. Note that, at this time, there is no X server
for these systems. If unsure, try N.
PCI support
CONFIG_PCI
......@@ -1613,6 +1614,11 @@ CONFIG_FB_PLATINUM
This driver supports a frame buffer for the "platinum" graphics adapter
in some Power Macintoshes.
PowerMac "valkyrie" frame buffer device support
CONFIG_FB_VALKYRIE
This driver supports a frame buffer for the "valkyrie" graphics adapter
in some Power Macintoshes.
Chips 65550 display support
CONFIG_FB_CT65550
This is the frame buffer device driver for the Chips & Technologies
......@@ -1628,15 +1634,7 @@ CONFIG_FB_HP300
This is the frame buffer device driver for the Topcat graphics
hardware found in HP300 workstations.
VGA chipset support (text only)
CONFIG_FB_VGA
This is the frame buffer device driver for generic VGA chips. This
driver works only in text mode and is deprecated; it is preferable
to say Y to "VGA text console" instead. For a graphical frame buffer
device driver that works for VGA cards, say Y to "VESA VGA graphics
console" below.
TGA frame buffer support'
TGA frame buffer support
CONFIG_FB_TGA
This is the frame buffer device driver for generic TGA graphic cards.
Say Y if you have one of those.
......@@ -1647,8 +1645,8 @@ CONFIG_FB_VESA
cards. You will get a boot time penguin logo at no additional cost.
Please read Documentation/fb/vesafb.txt. If unsure, say Y.
MDA dual-headed support
CONFIG_FB_MDA
MDA text console (dual-headed)
CONFIG_MDA_CONSOLE
Say Y here if you have an old MDA or monochrome Hercules graphics
adapter in your system acting as a second head ( = video card). You
will then be able to use two monitors with your Linux system. Do not
......@@ -1657,7 +1655,7 @@ CONFIG_FB_MDA
This driver is also available as a module ( = code which can be
inserted and removed from the running kernel whenever you want).
The module will be called mdafb.o. If you want to compile it as
The module will be called mdacon.o. If you want to compile it as
a module, say M here and read Documentation/modules.txt.
If unsure, say N.
......@@ -9323,17 +9321,6 @@ CONFIG_PROC_DEVICETREE
an image of the device tree that the kernel copies from Open
Firmware. If unsure, say Y here.
Support for ATI Mach64 display cards
CONFIG_ATY_VIDEO
Several of the newer Power Macintoshes and clones have a video
display interface based on the ATI Mach64 chipset. Say N here if
you are sure you don't need this functionality, otherwise Y.
Support for IMS Twin Turbo display card
CONFIG_IMSTT_VIDEO
Some Power Macintosh clones have an IMS Twin Turbo video display
interface. Say Y to include support for this.
MESH (Power Mac internal SCSI) support
CONFIG_SCSI_MESH
Many Power Macintoshes and clones have a MESH (Macintosh Enhanced
......
......@@ -320,11 +320,15 @@ static int __init default_ISA_trigger(int idx)
static int __init default_ISA_polarity(int idx)
{
#if 0
unsigned int irq = mp_irqs[idx].mpc_dstirq;
if (irq == 8)
return 1;
return ISA_ELCR(irq);
#else
return 0;
#endif
}
/*
......@@ -455,6 +459,7 @@ static int __init MPBIOS_trigger(int idx)
static int __init trigger_flag_broken(int idx)
{
#if 0
int bus = mp_irqs[idx].mpc_srcbus;
int polarity = MPBIOS_polarity(idx);
int trigger = MPBIOS_trigger(idx);
......@@ -464,7 +469,7 @@ static int __init trigger_flag_broken(int idx)
(trigger == 1) /* level */ )
return 1; /* broken */
#endif
return 0;
}
......@@ -883,7 +888,7 @@ static void __init construct_default_ISA_mptable(void)
continue;
mp_irqs[pos].mpc_irqtype = mp_INT;
mp_irqs[pos].mpc_irqflag = (1 << 2) | 1; /* High-active edge */
mp_irqs[pos].mpc_irqflag = 0; /* default */
mp_irqs[pos].mpc_srcbus = MP_BUS_ISA;
mp_irqs[pos].mpc_srcbusirq = i;
mp_irqs[pos].mpc_dstapic = 0;
......
......@@ -122,9 +122,16 @@
Added sanity check for <mtrr_add>/<mtrr_del> before <mtrr_init>.
Created addition queue for prior to SMP commence.
v1.23
19980902 Richard Gooch <rgooch@atnf.csiro.au>
Ported patch to kernel 2.1.120-pre3.
v1.24
19980910 Richard Gooch <rgooch@atnf.csiro.au>
Removed sanity checks and addition queue: Linus prefers an OOPS.
v1.24
v1.25
19981001 Richard Gooch <rgooch@atnf.csiro.au>
Fixed harmless compiler warning in include/asm-i386/mtrr.h
Fixed version numbering and history for v1.23 -> v1.24.
v1.26
*/
#include <linux/types.h>
#include <linux/errno.h>
......@@ -157,7 +164,7 @@
#include <asm/bitops.h>
#include <asm/atomic.h>
#define MTRR_VERSION "1.24 (19980910)"
#define MTRR_VERSION "1.26 (19981001)"
#define TRUE 1
#define FALSE 0
......
......@@ -782,6 +782,8 @@ asmlinkage int sys_execve(struct pt_regs regs)
if (IS_ERR(filename))
goto out;
error = do_execve(filename, (char **) regs.ecx, (char **) regs.edx, &regs);
if (error == 0)
current->flags &= ~PF_DTRACE;
putname(filename);
out:
unlock_kernel();
......
......@@ -541,6 +541,10 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
if ((unsigned long) data > _NSIG)
goto out;
child->flags &= ~PF_TRACESYS;
if ((child->flags & PF_DTRACE) == 0) {
/* Spurious delayed TF traps may occur */
child->flags |= PF_DTRACE;
}
tmp = get_stack_long(child, EFL_OFFSET) | TRAP_FLAG;
put_stack_long(child, EFL_OFFSET, tmp);
child->exit_code = data;
......
......@@ -339,7 +339,16 @@ asmlinkage void do_debug(struct pt_regs * regs, long error_code)
/* Mask out spurious TF errors due to lazy TF clearing */
if (condition & DR_STEP) {
if ((tsk->flags & PF_PTRACED) == 0)
/*
* The TF error should be masked out only if the current
* process is not traced and if the TRAP flag has been set
* previously by a tracing process (condition detected by
* the PF_DTRACE flag); remember that the i386 TRAP flag
* can be modified by the process itself in user mode,
* allowing programs to debug themselves without the ptrace()
* interface.
*/
if ((tsk->flags & (PF_DTRACE|PF_PTRACED)) == PF_DTRACE)
goto clear_TF;
}
......@@ -390,7 +399,7 @@ void math_error(void)
* (this will also clear the error)
*/
task = current;
unlazy_fpu(task);
save_fpu(task);
task->tss.trap_no = 16;
task->tss.error_code = 0;
force_sig(SIGFPE, task);
......
......@@ -8,6 +8,12 @@
# Note 2! The CFLAGS definition is now in the main makefile...
O_TARGET := 8xx_io.a
O_OBJS = commproc.o uart.o enet.o
O_OBJS = commproc.o uart.o
ifdef CONFIG_MBX
O_OBJS += enet.o
endif
ifdef CONFIG_FADS
O_OBJS += fec.o
endif
include $(TOPDIR)/Rules.make
......@@ -29,7 +29,12 @@
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <asm/irq.h>
#ifdef CONFIG_MBX
#include <asm/mbx.h>
#endif
#ifdef CONFIG_FADS
#include <asm/fads.h>
#endif
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/8xx_immap.h>
......@@ -52,13 +57,13 @@ static void cpm_interrupt(int irq, void * dev, struct pt_regs * regs);
static void cpm_error_interrupt(void *);
void
mbx_cpm_reset(uint host_page_addr)
m8xx_cpm_reset(uint host_page_addr)
{
volatile immap_t *imp;
volatile cpm8xx_t *commproc;
pte_t *pte;
imp = (immap_t *)MBX_IMAP_ADDR;
imp = (immap_t *)IMAP_ADDR;
commproc = (cpm8xx_t *)&imp->im_cpm;
#ifdef notdef
......@@ -78,6 +83,10 @@ mbx_cpm_reset(uint host_page_addr)
#endif
/* Set SDMA Bus Request priority 5.
* On 860T, this also enables FEC priority 6. I am not sure
* this is what we realy want for some applications, but the
* manual recommends it.
* Bit 25, FAM can also be set to use FEC aggressive mode (860T).
*/
imp->im_siu_conf.sc_sdcr = 1;
......@@ -99,10 +108,10 @@ mbx_cpm_reset(uint host_page_addr)
/* Initialize the CPM interrupt controller.
*/
((immap_t *)MBX_IMAP_ADDR)->im_cpic.cpic_cicr =
((immap_t *)IMAP_ADDR)->im_cpic.cpic_cicr =
(CICR_SCD_SCC4 | CICR_SCC_SCC3 | CICR_SCB_SCC2 | CICR_SCA_SCC1) |
((CPM_INTERRUPT/2) << 13) | CICR_HP_MASK;
((immap_t *)MBX_IMAP_ADDR)->im_cpic.cpic_cimr = 0;
((immap_t *)IMAP_ADDR)->im_cpic.cpic_cimr = 0;
/* Set our interrupt handler with the core CPU.
*/
if (request_irq(CPM_INTERRUPT, cpm_interrupt, 0, "cpm", NULL) != 0)
......@@ -111,7 +120,7 @@ mbx_cpm_reset(uint host_page_addr)
/* Install our own error handler.
*/
cpm_install_handler(CPMVEC_ERROR, cpm_error_interrupt, NULL);
((immap_t *)MBX_IMAP_ADDR)->im_cpic.cpic_cicr |= CICR_IEN;
((immap_t *)IMAP_ADDR)->im_cpic.cpic_cicr |= CICR_IEN;
}
/* CPM interrupt controller interrupt.
......@@ -124,19 +133,19 @@ cpm_interrupt(int irq, void * dev, struct pt_regs * regs)
/* Get the vector by setting the ACK bit and then reading
* the register.
*/
((volatile immap_t *)MBX_IMAP_ADDR)->im_cpic.cpic_civr = 1;
vec = ((volatile immap_t *)MBX_IMAP_ADDR)->im_cpic.cpic_civr;
((volatile immap_t *)IMAP_ADDR)->im_cpic.cpic_civr = 1;
vec = ((volatile immap_t *)IMAP_ADDR)->im_cpic.cpic_civr;
vec >>= 11;
if (cpm_vecs[vec].handler != 0)
(*cpm_vecs[vec].handler)(cpm_vecs[vec].dev_id);
else
((immap_t *)MBX_IMAP_ADDR)->im_cpic.cpic_cimr &= ~(1 << vec);
((immap_t *)IMAP_ADDR)->im_cpic.cpic_cimr &= ~(1 << vec);
/* After servicing the interrupt, we have to remove the status
* indicator.
*/
((immap_t *)MBX_IMAP_ADDR)->im_cpic.cpic_cisr |= (1 << vec);
((immap_t *)IMAP_ADDR)->im_cpic.cpic_cisr |= (1 << vec);
}
......@@ -160,7 +169,7 @@ cpm_install_handler(int vec, void (*handler)(void *), void *dev_id)
(uint)handler, (uint)cpm_vecs[vec].handler);
cpm_vecs[vec].handler = handler;
cpm_vecs[vec].dev_id = dev_id;
((immap_t *)MBX_IMAP_ADDR)->im_cpic.cpic_cimr |= (1 << vec);
((immap_t *)IMAP_ADDR)->im_cpic.cpic_cimr |= (1 << vec);
}
/* Allocate some memory from the dual ported ram. We may want to
......@@ -168,7 +177,7 @@ cpm_install_handler(int vec, void (*handler)(void *), void *dev_id)
* citizen.
*/
uint
mbx_cpm_dpalloc(uint size)
m8xx_cpm_dpalloc(uint size)
{
uint retloc;
......@@ -185,7 +194,7 @@ mbx_cpm_dpalloc(uint size)
* UART "fifos" and the like.
*/
uint
mbx_cpm_hostalloc(uint size)
m8xx_cpm_hostalloc(uint size)
{
uint retloc;
......@@ -201,13 +210,13 @@ mbx_cpm_hostalloc(uint size)
/* Set a baud rate generator. This needs lots of work. There are
* four BRGs, any of which can be wired to any channel.
* The internal baud rate clock is the system clock divided by 16.
* I need to find a way to get this system clock frequency, which is
* part of the VPD.......
* This assumes the baudrate is 16x oversampled by the uart.
*/
#define BRG_INT_CLK (40000000/16)
#define BRG_INT_CLK (((bd_t *)res)->bi_intfreq * 1000000)
#define BRG_UART_CLK (BRG_INT_CLK/16)
void
mbx_cpm_setbrg(uint brg, uint rate)
m8xx_cpm_setbrg(uint brg, uint rate)
{
volatile uint *bp;
......@@ -215,5 +224,6 @@ mbx_cpm_setbrg(uint brg, uint rate)
*/
bp = (uint *)&cpmp->cp_brgc1;
bp += brg;
*bp = ((BRG_INT_CLK / rate) << 1) | CPM_BRG_EN;
*bp = ((BRG_UART_CLK / rate) << 1) | CPM_BRG_EN;
}
......@@ -62,9 +62,9 @@
* and dual port ram.
*/
extern cpm8xx_t *cpmp; /* Pointer to comm processor */
uint mbx_cpm_dpalloc(uint size);
uint mbx_cpm_hostalloc(uint size);
void mbx_cpm_setbrg(uint brg, uint rate);
uint m8xx_cpm_dpalloc(uint size);
uint m8xx_cpm_hostalloc(uint size);
void m8xx_cpm_setbrg(uint brg, uint rate);
/* Buffer descriptors used by many of the CPM protocols.
*/
......@@ -87,8 +87,16 @@ typedef struct cpm_buf_desc {
#define BD_SC_OV ((ushort)0x0002) /* Overrun */
#define BD_SC_CD ((ushort)0x0001) /* ?? */
/* Define enough so I can at least use the MBX serial port as a UART.
* The MBX uses SMC1 as the host serial port.
/* Parameter RAM offsets.
*/
#define PROFF_SCC1 ((uint)0x0000)
#define PROFF_SCC2 ((uint)0x0100)
#define PROFF_SCC3 ((uint)0x0200)
#define PROFF_SMC1 ((uint)0x0280)
#define PROFF_SCC4 ((uint)0x0300)
#define PROFF_SMC2 ((uint)0x0380)
/* Define enough so I can at least use the serial port as a UART.
*/
typedef struct smc_uart {
ushort smc_rbase; /* Rx Buffer descriptor base address */
......@@ -114,9 +122,6 @@ typedef struct smc_uart {
ushort smc_rmask; /* Temporary bit mask */
} smc_uart_t;
#define PROFF_SMC1 ((uint)0x0280) /* Offset in Parameter RAM */
#define PROFF_SMC2 ((uint)0x0380)
/* Function code bits.
*/
#define SMC_EB ((u_char)0x10) /* Set big endian byte order */
......@@ -139,7 +144,7 @@ typedef struct smc_uart {
/* SMC Event and Mask register.
*/
#define SMCM_TXE ((unsigned char)0x10)
#define SMCM_BSY ((unsigned char)0x14)
#define SMCM_BSY ((unsigned char)0x04)
#define SMCM_TX ((unsigned char)0x02)
#define SMCM_RX ((unsigned char)0x01)
......@@ -238,6 +243,13 @@ typedef struct smc_uart {
#define SCC_TODR_TOD ((ushort)0x8000)
/* SCC Event and Mask register.
*/
#define SCCM_TXE ((unsigned char)0x10)
#define SCCM_BSY ((unsigned char)0x04)
#define SCCM_TX ((unsigned char)0x02)
#define SCCM_RX ((unsigned char)0x01)
typedef struct scc_param {
ushort scc_rbase; /* Rx Buffer descriptor base address */
ushort scc_tbase; /* Tx Buffer descriptor base address */
......@@ -317,8 +329,6 @@ typedef struct scc_enet {
ushort sen_taddrl; /* temp address (LSB) */
} scc_enet_t;
#define PROFF_SCC1 ((uint)0x0000) /* Offset in Parameter RAM */
/* Bits in parallel I/O port registers that have to be set/cleared
* to configure the pins for SCC1 use. The TCLK and RCLK seem unique
* to the MBX860 board. Any two of the four available clocks could be
......@@ -397,6 +407,37 @@ typedef struct scc_enet {
#define BD_ENET_TX_CSL ((ushort)0x0001)
#define BD_ENET_TX_STATS ((ushort)0x03ff) /* All status bits */
/* SCC as UART
*/
typedef struct scc_uart {
sccp_t scc_genscc;
uint scc_res1; /* Reserved */
uint scc_res2; /* Reserved */
ushort scc_maxidl; /* Maximum idle chars */
ushort scc_idlc; /* temp idle counter */
ushort scc_brkcr; /* Break count register */
ushort scc_parec; /* receive parity error counter */
ushort scc_frmec; /* receive framing error counter */
ushort scc_nosec; /* receive noise counter */
ushort scc_brkec; /* receive break condition counter */
ushort scc_brkln; /* last received break length */
ushort scc_uaddr1; /* UART address character 1 */
ushort scc_uaddr2; /* UART address character 2 */
ushort scc_rtemp; /* Temp storage */
ushort scc_toseq; /* Transmit out of sequence char */
ushort scc_char1; /* control character 1 */
ushort scc_char2; /* control character 2 */
ushort scc_char3; /* control character 3 */
ushort scc_char4; /* control character 4 */
ushort scc_char5; /* control character 5 */
ushort scc_char6; /* control character 6 */
ushort scc_char7; /* control character 7 */
ushort scc_char8; /* control character 8 */
ushort scc_rccm; /* receive control character mask */
ushort scc_rccr; /* receive control character register */
ushort scc_rlbc; /* receive last break character */
} scc_uart_t;
/* SCC Event and Mask registers when it is used as a UART.
*/
#define UART_SCCM_GLR ((ushort)0x1000)
......@@ -411,6 +452,30 @@ typedef struct scc_enet {
#define UART_SCCM_TX ((ushort)0x0002)
#define UART_SCCM_RX ((ushort)0x0001)
/* The SCC PMSR when used as a UART.
*/
#define SCU_PMSR_FLC ((ushort)0x8000)
#define SCU_PMSR_SL ((ushort)0x4000)
#define SCU_PMSR_CL ((ushort)0x3000)
#define SCU_PMSR_UM ((ushort)0x0c00)
#define SCU_PMSR_FRZ ((ushort)0x0200)
#define SCU_PMSR_RZS ((ushort)0x0100)
#define SCU_PMSR_SYN ((ushort)0x0080)
#define SCU_PMSR_DRT ((ushort)0x0040)
#define SCU_PMSR_PEN ((ushort)0x0010)
#define SCU_PMSR_RPM ((ushort)0x000c)
#define SCU_PMSR_REVP ((ushort)0x0008)
#define SCU_PMSR_TPM ((ushort)0x0003)
#define SCU_PMSR_TEVP ((ushort)0x0003)
/* CPM Transparent mode SCC.
*/
typedef struct scc_trans {
sccp_t st_genscc;
uint st_cpres; /* Preset CRC */
uint st_cmask; /* Constant mask for CRC */
} scc_trans_t;
/* CPM interrupts. There are nearly 32 interrupts generated by CPM
* channels or devices. All of these are presented to the PPC core
* as a single interrupt. The CPM interrupt handler dispatches its
......
......@@ -96,7 +96,7 @@
*/
/* The number of Tx and Rx buffers. These are allocated from the page
* pool. The code may assume these are power of two, so it it best
* pool. The code may assume these are power of two, so it is best
* to keep them that size.
* We don't need to allocate pages for the transmitter. We just use
* the skbuffer directly.
......
This diff is collapsed.
This diff is collapsed.
......@@ -14,10 +14,7 @@
KERNELLOAD =0xc0000000
# PowerPC (cross) tools
ifneq ($(shell uname -m),ppc)
CROSS_COMPILE = ppc-linux-elf-
else
ifeq ($(shell uname -m),ppc)
CHECKS = checks
endif
......
This diff is collapsed.
This diff is collapsed.
#include <linux/config.h> /* CONFIG_HEARTBEAT */
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
......
......@@ -22,6 +22,7 @@ CONFIG_MACH_SPECIFIC=y
CONFIG_EXPERIMENTAL=y
# CONFIG_MODULES is not set
# CONFIG_PCI is not set
# CONFIG_PCI_QUIRKS is not set
# CONFIG_PCI_OLD_PROC is not set
CONFIG_NET=y
# CONFIG_SYSCTL is not set
......@@ -32,12 +33,12 @@ CONFIG_KERNEL_ELF=y
# CONFIG_BINFMT_MISC is not set
# CONFIG_BINFMT_JAVA is not set
# CONFIG_PARPORT is not set
CONFIG_ABSTRACT_CONSOLE=y
CONFIG_FB=y
# CONFIG_VGA_CONSOLE is not set
# CONFIG_FB_COMPAT_XPMAC is not set
# CONFIG_PMAC_PBOOK is not set
# CONFIG_MAC_KEYBOARD is not set
# CONFIG_MAC_FLOPPY is not set
# CONFIG_MAC_SERIAL is not set
# CONFIG_MACMOUSE is not set
# CONFIG_PROC_DEVICETREE is not set
# CONFIG_KGDB is not set
......@@ -48,7 +49,6 @@ CONFIG_ZORRO=y
CONFIG_AMIGAMOUSE=y
CONFIG_ABSTRACT_CONSOLE=y
CONFIG_FB=y
CONFIG_AMIGA_FLOPPY=y
CONFIG_AMIGA_BUILTIN_SERIAL=y
CONFIG_GVPIOEXT=y
# CONFIG_GVPIOEXT_LP is not set
......@@ -63,28 +63,34 @@ CONFIG_MULTIFACE_III_TTY=y
# CONFIG_PNP is not set
#
# Floppy, IDE, and other block devices
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
CONFIG_AMIGA_FLOPPY=y
CONFIG_BLK_DEV_IDE=y
#
# Please see Documentation/ide.txt for help/info on IDE drives
#
CONFIG_BLK_DEV_GAYLE=y
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_BLK_DEV_PCIDE is not set
CONFIG_BLK_DEV_GAYLE=y
# CONFIG_BLK_DEV_IDEDOUBLER is not set
CONFIG_BLK_DEV_BUDDHA=y
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_IDE_CHIPSETS is not set
# CONFIG_AMIGA_Z2RAM is not set
#
# Additional Block Devices
#
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_MD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_INITRD=y
......@@ -105,10 +111,7 @@ CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_PNP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_IP_PNP_RARP=y
# CONFIG_IP_ACCT is not set
# CONFIG_IP_PNP is not set
# CONFIG_IP_ROUTER is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
......@@ -138,7 +141,6 @@ CONFIG_SKB_LARGE=y
# CONFIG_NET_HW_FLOWCONTROL is not set
# CONFIG_CPU_IS_SLOW is not set
# CONFIG_NET_SCHED is not set
# CONFIG_NET_PROFILE is not set
#
# SCSI support
......@@ -191,14 +193,13 @@ CONFIG_BLK_DEV_SR_VENDOR=y
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_MESH is not set
CONFIG_A3000_SCSI=y
CONFIG_A2091_SCSI=y
CONFIG_GVP11_SCSI=y
CONFIG_FASTLANE_SCSI=y
# CONFIG_A4000T_SCSI is not set
# CONFIG_A4091_SCSI is not set
# CONFIG_SCSI_MAC53C94 is not set
CONFIG_A4000T_SCSI=y
CONFIG_A4091_SCSI=y
CONFIG_BLZ603EPLUS_SCSI=y
#
# Network device support
......@@ -208,6 +209,8 @@ CONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
CONFIG_NET_ETHERNET=y
# CONFIG_MACE is not set
# CONFIG_BMAC is not set
CONFIG_ARIADNE=y
CONFIG_A2065=y
CONFIG_HYDRA=y
......@@ -215,6 +218,8 @@ CONFIG_HYDRA=y
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_NET_VENDOR_RACAL is not set
# CONFIG_RTL8139 is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_NET_ISA is not set
# CONFIG_NET_EISA is not set
# CONFIG_NET_POCKET is not set
......@@ -248,6 +253,62 @@ CONFIG_SLIP_SMART=y
#
# CONFIG_CD_NO_IDESCSI is not set
#
# Console drivers
#
CONFIG_DUMMY_CONSOLE=y
CONFIG_FB_AMIGA=y
CONFIG_FB_AMIGA_OCS=y
CONFIG_FB_AMIGA_ECS=y
CONFIG_FB_AMIGA_AGA=y
CONFIG_FB_CYBER=y
CONFIG_FB_VIRGE=y
CONFIG_FB_RETINAZ3=y
CONFIG_FB_CLGEN=y
# CONFIG_FB_OF is not set
# CONFIG_FB_VGA is not set
CONFIG_FB_VIRTUAL=y
# CONFIG_FBCON_ADVANCED is not set
CONFIG_FBCON_MFB=y
CONFIG_FBCON_CFB2=y
CONFIG_FBCON_CFB4=y
CONFIG_FBCON_CFB8=y
CONFIG_FBCON_CFB16=y
CONFIG_FBCON_CFB24=y
CONFIG_FBCON_CFB32=y
CONFIG_FBCON_AFB=y
CONFIG_FBCON_ILBM=y
CONFIG_FBCON_MAC=y
# CONFIG_FBCON_FONTWIDTH8_ONLY is not set
# CONFIG_FBCON_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_FONT_PEARL_8x8=y
#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
# CONFIG_SERIAL_CONSOLE is not set
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_UNIX98_PTYS is not set
# CONFIG_MOUSE is not set
# CONFIG_QIC02_TAPE is not set
# CONFIG_APM is not set
# CONFIG_WATCHDOG is not set
# CONFIG_RTC is not set
# CONFIG_VIDEO_DEV is not set
# CONFIG_NVRAM is not set
# CONFIG_JOYSTICK is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
#
# Filesystems
#
......@@ -262,7 +323,6 @@ CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_PROC_FS=y
CONFIG_NFS_FS=y
# CONFIG_ROOT_NFS is not set
# CONFIG_NFSD is not set
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
......@@ -281,11 +341,15 @@ CONFIG_AFFS_FS=y
# Partition Tables
#
CONFIG_AMIGA_PARTITION=y
# CONFIG_FOREIGN_PARTITIONS is not set
CONFIG_FOREIGN_PARTITIONS=y
CONFIG_MSDOS_PARTITION=y
# CONFIG_OSF_PARTITION is not set
# CONFIG_SUN_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
# CONFIG_MAC_PARTITION is not set
# CONFIG_BSD_DISKLABEL is not set
# CONFIG_SOLARIS_X86_PARTITION is not set
# CONFIG_ADFS_FS is not set
# CONFIG_DEVPTS_FS is not set
CONFIG_NLS=y
#
......@@ -318,55 +382,6 @@ CONFIG_NLS=y
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_KOI8_R is not set
#
# Frame buffer devices
#
CONFIG_FB_AMIGA=y
CONFIG_FB_AMIGA_OCS=y
CONFIG_FB_AMIGA_ECS=y
CONFIG_FB_AMIGA_AGA=y
CONFIG_FB_CYBER=y
CONFIG_FB_VIRGE=y
CONFIG_FB_RETINAZ3=y
# CONFIG_FB_OF is not set
# CONFIG_FB_S3TRIO is not set
CONFIG_FB_VIRTUAL=y
# CONFIG_FBCON_ADVANCED is not set
CONFIG_FBCON_MFB=y
CONFIG_FBCON_ILBM=y
CONFIG_FBCON_AFB=y
CONFIG_FBCON_MAC=y
CONFIG_FBCON_CFB2=y
CONFIG_FBCON_CFB4=y
CONFIG_FBCON_CFB8=y
CONFIG_FBCON_CFB16=y
CONFIG_FBCON_CFB24=y
CONFIG_FBCON_CFB32=y
#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
# CONFIG_SERIAL_CONSOLE is not set
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_MOUSE is not set
# CONFIG_QIC02_TAPE is not set
# CONFIG_APM is not set
# CONFIG_WATCHDOG is not set
# CONFIG_RTC is not set
# CONFIG_VIDEO_DEV is not set
# CONFIG_NVRAM is not set
# CONFIG_JOYSTICK is not set
# CONFIG_MISC_RADIO is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
#
# Sound
#
......
......@@ -20,7 +20,6 @@
.S.o:
$(CC) -D__ASSEMBLY__ -traditional -c -o $*.o $<
ZOFF = 0
ZSZ = 0
IOFF = 0
......@@ -58,10 +57,10 @@ zvmlinux.initrd: zvmlinux
--add-section=initrd=ramdisk.image.gz \
--add-section=image=../coffboot/vmlinux.gz \
zvmlinux.initrd.tmp zvmlinux.initrd
$(CC) $(CFLAGS) -DINITRD_OFFSET=`sh offset zvmlinux.initrd initrd` \
-DINITRD_SIZE=`sh size zvmlinux.initrd initrd` \
-DZIMAGE_OFFSET=`sh offset zvmlinux.initrd image` \
-DZIMAGE_SIZE=`sh size zvmlinux.initrd image` \
$(CC) $(CFLAGS) -DINITRD_OFFSET=`sh offset $(OBJDUMP) zvmlinux.initrd initrd` \
-DINITRD_SIZE=`sh size $(OBJDUMP) zvmlinux.initrd initrd` \
-DZIMAGE_OFFSET=`sh offset $(OBJDUMP) zvmlinux.initrd image` \
-DZIMAGE_SIZE=`sh size $(OBJDUMP) zvmlinux.initrd image` \
-DKERNELBASE=$(KERNELBASE) -c -o misc.o misc.c
$(LD) $(ZLINKFLAGS) -o zvmlinux.initrd.tmp $(OBJECTS)
$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
......@@ -77,10 +76,10 @@ zvmlinux.initrd: zvmlinux
--add-section=initrd=ramdisk.image.gz \
--add-section=image=../coffboot/vmlinux.gz \
zvmlinux.initrd.tmp zvmlinux.initrd
$(CC) $(CFLAGS) -DINITRD_OFFSET=`sh offset zvmlinux.initrd initrd` \
-DINITRD_SIZE=`sh size zvmlinux.initrd initrd` \
-DZIMAGE_OFFSET=`sh offset zvmlinux.initrd image` \
-DZIMAGE_SIZE=`sh size zvmlinux.initrd image` \
$(CC) $(CFLAGS) -DINITRD_OFFSET=`sh offset $(OBJDUMP) zvmlinux.initrd initrd` \
-DINITRD_SIZE=`sh size $(OBJDUMP) zvmlinux.initrd initrd` \
-DZIMAGE_OFFSET=`sh offset $(OBJDUMP) zvmlinux.initrd image` \
-DZIMAGE_SIZE=`sh size $(OBJDUMP) zvmlinux.initrd image` \
-DKERNELBASE=$(KERNELBASE) -c -o misc.o misc.c
$(LD) $(ZLINKFLAGS) -o zvmlinux.initrd.tmp $(OBJECTS)
$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
......@@ -90,19 +89,26 @@ zvmlinux.initrd: zvmlinux
rm zvmlinux.initrd.tmp
endif
zImage: zvmlinux mkprep
ifeq ($(CONFIG_PREP),y)
zImage: zvmlinux mkprep
./mkprep -pbp zvmlinux zImage
endif
else
ifeq ($(CONFIG_MBX),y)
zImage: zvmlinux
ln -sf zvmlinux zImage
else
zImage:
endif
endif
zImage.initrd: zvmlinux.initrd mkprep
ifeq ($(CONFIG_PREP),y)
zImage.initrd: zvmlinux.initrd mkprep
./mkprep -pbp zvmlinux.initrd zImage.initrd
endif
ifeq ($(CONFIG_MBX),y)
zImage.initrd: zvmlinux.initrd
ln -sf zvmlinux.initrd zImage.initrd
endif
......@@ -118,8 +124,8 @@ zvmlinux: $(OBJECTS) ../coffboot/vmlinux.gz
# then with the offset rebuild the bootloader so we know where the kernel is
#
$(CC) $(CFLAGS) -DINITRD_OFFSET=0 -DINITRD_SIZE=0 \
-DZIMAGE_OFFSET=`sh offset zvmlinux image` \
-DZIMAGE_SIZE=`sh size zvmlinux image` -DKERNELBASE=$(KERNELBASE) \
-DZIMAGE_OFFSET=`sh offset $(OBJDUMP) zvmlinux image` \
-DZIMAGE_SIZE=`sh size $(OBJDUMP) zvmlinux image` -DKERNELBASE=$(KERNELBASE) \
-c -o misc.o misc.c
$(LD) $(ZLINKFLAGS) -o zvmlinux.tmp $(OBJECTS)
$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment --add-section=image=../coffboot/vmlinux.gz \
......@@ -131,17 +137,21 @@ ifeq ($(CONFIG_PREP),y)
dd if=zImage of=/dev/fd0H1440 bs=64b
endif
mkprep : mkprep.c
ifeq ($(CONFIG_PREP),y)
mkprep : mkprep.c
$(HOSTCC) -DKERNELBASE=$(KERNELBASE) -o mkprep mkprep.c
endif
znetboot : zImage
ifeq ($(CONFIG_PREP),y)
znetboot : zImage
cp zImage /tftpboot/zImage.prep
endif
else
ifeq ($(CONFIG_MBX),y)
znetboot : zImage
cp zImage /tftpboot/zImage.mbx
else
znetboot :
endif
endif
znetboot.initrd : zImage.initrd
......
......@@ -7,7 +7,7 @@
.text
/*
* $Id: head.S,v 1.24 1998/07/21 02:43:50 cort Exp $
* $Id: head.S,v 1.26 1998/09/19 01:21:20 cort Exp $
*
* This code is loaded by the ROM loader at some arbitrary location.
* Move it to high memory so that it can load the kernel at 0x0000.
......@@ -144,6 +144,11 @@ start_ldr:
mr r3, r11
mr r21, r11
bl serial_init /* Init MBX serial port */
lis r8, 0xfa200000@h /* Disable Ethernet SCC */
li r0, 0
stw r0, 0x0a00(r8)
mr r11, r21
lis r8,start@h
ori r8,r8,start@l
......@@ -166,6 +171,7 @@ start_ldr:
as ptr to residual -- Cort*/
lis r6,cmd_line@h
ori r6,r6,cmd_line@l
lwz r6, 0(r6)
subi r7,r6,1
00: lbzu r2,1(r7)
cmpi 0,r2,0
......
......@@ -13,13 +13,20 @@
* use SMC1, but gave up and decided to fix it here.
*/
#include <linux/types.h>
#ifdef CONFIG_MBX
#include <asm/mbx.h>
#endif
#ifdef CONFIG_FADS
#include <asm/fads.h>
#endif
#include "../8xx_io/commproc.h"
#ifdef CONFIG_MBX
#define MBX_CSR1 ((volatile u_char *)0xfa100000)
#define CSR1_COMEN (u_char)0x02
#endif
static cpm8xx_t *cpmp = (cpm8xx_t *)&(((immap_t *)MBX_IMAP_ADDR)->im_cpm);
static cpm8xx_t *cpmp = (cpm8xx_t *)&(((immap_t *)IMAP_ADDR)->im_cpm);
void
serial_init(bd_t *bd)
......@@ -38,6 +45,7 @@ serial_init(bd_t *bd)
*/
sp->smc_smcmr &= ~(SMCMR_REN | SMCMR_TEN);
#ifdef CONFIG_MBX
if (*MBX_CSR1 & CSR1_COMEN) {
/* COM1 is enabled. Initialize SMC1 and use it for
* the console port.
......@@ -45,7 +53,7 @@ serial_init(bd_t *bd)
/* Enable SDMA.
*/
((immap_t *)MBX_IMAP_ADDR)->im_siu_conf.sc_sdcr = 1;
((immap_t *)IMAP_ADDR)->im_siu_conf.sc_sdcr = 1;
/* Use Port B for SMCs instead of other functions.
*/
......@@ -103,6 +111,7 @@ serial_init(bd_t *bd)
*MBX_CSR1 &= ~CSR1_COMEN;
}
else {
#endif
/* SMC1 is used as console port.
*/
tbdf = (cbd_t *)&cp->cp_dpmem[up->smc_tbase];
......@@ -113,7 +122,9 @@ serial_init(bd_t *bd)
cp->cp_cpcr = mk_cr_cmd(CPM_CR_CH_SMC1,
CPM_CR_STOP_TX) | CPM_CR_FLG;
while (cp->cp_cpcr & CPM_CR_FLG);
#ifdef CONFIG_MBX
}
#endif
/* Make the first buffer the only buffer.
*/
......
This diff is collapsed.
......@@ -10,16 +10,18 @@
* 3) -asm - strips elf header and writes out as asm data
* useful for generating data for a compressed image
* -- Cort
*
* Modified for x86 hosted builds by Matt Porter <porter@neta.com>
*/
#ifdef linux
#include <linux/types.h>
#include <asm/stat.h>
/*#include <asm/stat.h>*/
/*#include <asm/byteorder.h>*/ /* the byte swap funcs don't work here -- Cort */
#else
#include <unistd.h>
#include <sys/stat.h>
#endif
#include <sys/stat.h>
#include <stdio.h>
#include <errno.h>
......@@ -164,8 +166,13 @@ void write_prep_partition(int in, int out)
bzero( block, sizeof block );
/* set entry point and boot image size skipping over elf header */
#ifdef __i386__
*entry = 0x400/*+65536*/;
*length = info.st_size+0x400;
#else
*entry = cpu_to_le32(0x400/*+65536*/);
*length = cpu_to_le32(info.st_size+0x400);
#endif /* __i386__ */
/* sets magic number for msdos partition (used by linux) */
block[510] = 0x55;
......@@ -202,9 +209,18 @@ void write_prep_partition(int in, int out)
pe->beginning_sector = cpu_to_le32(1);
#else
/* This has to be 0 on the PowerStack? */
#ifdef __i386__
pe->beginning_sector = 0;
#else
pe->beginning_sector = cpu_to_le32(0);
#endif /* __i386__ */
#endif
#ifdef __i386__
pe->number_of_sectors = 2*18*80-1;
#else
pe->number_of_sectors = cpu_to_le32(2*18*80-1);
#endif /* __i386__ */
write( out, block, sizeof(block) );
write( out, entry, sizeof(*entry) );
......
#!/bin/bash
OFFSET=`objdump -h $1 | grep $2 | grep -v zvmlinux| awk '{print $6}'`
OFFSET=`$1 -h $2 | grep $3 | grep -v zvmlinux| awk '{print $6}'`
echo "0x"$OFFSET
#!/bin/bash
OFFSET=`objdump -h $1 | grep $2 | grep -v zvmlinux | awk '{print $3}'`
OFFSET=`$1 -h $2 | grep $3 | grep -v zvmlinux | awk '{print $3}'`
echo "0x"$OFFSET
......@@ -41,10 +41,11 @@ CONFIG_FB_COMPAT_XPMAC=y
CONFIG_MAC_KEYBOARD=y
# CONFIG_MAC_FLOPPY is not set
# CONFIG_MAC_SERIAL is not set
CONFIG_MACMOUSE=y
# CONFIG_ADBMOUSE is not set
CONFIG_PROC_DEVICETREE=y
# CONFIG_KGDB is not set
# CONFIG_XMON is not set
# CONFIG_TOTALMP is not set
#
# Plug and Play support
......@@ -148,12 +149,11 @@ CONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_NCR53C7xx is not set
CONFIG_SCSI_NCR53C8XX=y
# CONFIG_SCSI_NCR53C8XX_NVRAM_DETECT is not set
# CONFIG_SCSI_NCR53C8XX_TAGGED_QUEUE is not set
# CONFIG_SCSI_NCR53C8XX_IOMAPPED is not set
CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=4
CONFIG_SCSI_NCR53C8XX_SYNC=5
# CONFIG_SCSI_NCR53C8XX_NO_DISCONNECT is not set
# CONFIG_SCSI_NCR53C8XX_PROFILE is not set
# CONFIG_SCSI_NCR53C8XX_IOMAPPED is not set
# CONFIG_SCSI_NCR53C8XX_SYMBIOS_COMPAT is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PCI2000 is not set
......@@ -199,9 +199,9 @@ CONFIG_DEC_ELCP=y
# CONFIG_EEXPRESS_PRO100 is not set
# CONFIG_LNE390 is not set
# CONFIG_NE2K_PCI is not set
# CONFIG_TLAN is not set
# CONFIG_ES3210 is not set
# CONFIG_EPIC100 is not set
# CONFIG_TLAN is not set
# CONFIG_ZNET is not set
# CONFIG_NET_POCKET is not set
# CONFIG_FDDI is not set
......@@ -227,51 +227,30 @@ CONFIG_DEC_ELCP=y
#
# CONFIG_CD_NO_IDESCSI is not set
#
# Filesystems
#
# CONFIG_QUOTA is not set
# CONFIG_MINIX_FS is not set
CONFIG_EXT2_FS=y
CONFIG_ISO9660_FS=y
# CONFIG_JOLIET is not set
# CONFIG_FAT_FS is not set
# CONFIG_MSDOS_FS is not set
# CONFIG_UMSDOS_FS is not set
# CONFIG_VFAT_FS is not set
CONFIG_PROC_FS=y
CONFIG_NFS_FS=y
# CONFIG_NFSD is not set
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
# CONFIG_CODA_FS is not set
# CONFIG_SMB_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_AFFS_FS is not set
CONFIG_HFS_FS=y
# CONFIG_ROMFS_FS is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_DEVPTS_FS is not set
CONFIG_MAC_PARTITION=y
# CONFIG_NLS is not set
#
# Console drivers
#
CONFIG_DUMMY_CONSOLE=y
CONFIG_FB_OF=y
CONFIG_FB_S3TRIO=y
# CONFIG_FB_CONTROL is not set
# CONFIG_FB_PLATINUM is not set
# CONFIG_FB_VALKYRIE is not set
CONFIG_FB_ATY=y
CONFIG_FB_IMSTT=y
# CONFIG_FB_CT65550 is not set
# CONFIG_FB_S3TRIO is not set
CONFIG_FB_VGA=y
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FBCON_ADVANCED is not set
CONFIG_FBCON_CFB8=y
CONFIG_FBCON_CFB16=y
CONFIG_FBCON_CFB24=y
CONFIG_FBCON_CFB32=y
CONFIG_FBCON_VGA=y
# CONFIG_FBCON_FONTWIDTH8_ONLY is not set
# CONFIG_FBCON_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
#
# Character devices
......@@ -282,6 +261,7 @@ CONFIG_SERIAL=y
# CONFIG_SERIAL_CONSOLE is not set
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_UNIX98_PTYS is not set
# CONFIG_MOUSE is not set
# CONFIG_UMISC is not set
# CONFIG_QIC02_TAPE is not set
......@@ -291,15 +271,50 @@ CONFIG_SERIAL=y
# CONFIG_VIDEO_DEV is not set
CONFIG_NVRAM=y
# CONFIG_JOYSTICK is not set
# CONFIG_MISC_RADIO is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
#
# Filesystems
#
# CONFIG_QUOTA is not set
# CONFIG_MINIX_FS is not set
CONFIG_EXT2_FS=y
CONFIG_ISO9660_FS=y
# CONFIG_JOLIET is not set
# CONFIG_FAT_FS is not set
# CONFIG_MSDOS_FS is not set
# CONFIG_UMSDOS_FS is not set
# CONFIG_VFAT_FS is not set
CONFIG_PROC_FS=y
CONFIG_NFS_FS=y
# CONFIG_NFSD is not set
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
# CONFIG_CODA_FS is not set
# CONFIG_SMB_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_AFFS_FS is not set
CONFIG_HFS_FS=y
# CONFIG_ROMFS_FS is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_ADFS_FS is not set
CONFIG_MAC_PARTITION=y
# CONFIG_NLS is not set
#
# Sound
#
CONFIG_SOUND=y
# CONFIG_SOUND_ES1370 is not set
# CONFIG_SOUND_ES1371 is not set
# CONFIG_SOUND_SONICVIBES is not set
# CONFIG_SOUND_MSNDCLAS is not set
# CONFIG_SOUND_MSNDPIN is not set
# CONFIG_SOUND_OSS is not set
......@@ -20,7 +20,7 @@ CFLAGS = -O -fno-builtin -DSTDC_HEADERS -I$(TOPDIR)/include
LD_ARGS = -T ../vmlinux.lds -Ttext 0x00800000
OBJCOPY = $(CROSS_COMPILE)objcopy
OBJS = crt0.o start.o main.o misc.o string.o zlib.o image.o # initrd.o
OBJS = crt0.o start.o main.o misc.o ../coffboot/string.o ../coffboot/zlib.o image.o # initrd.o
LIBS = $(TOPDIR)/lib/lib.a
......
......@@ -6,8 +6,8 @@
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#include "nonstdio.h"
#include "zlib.h"
#include "../coffboot/nonstdio.h"
#include "../coffboot/zlib.h"
extern void *finddevice(const char *);
extern int getprop(void *, const char *, void *, int);
......
/*
* Copyright (C) Paul Mackerras 1997.
*
* 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; either version
* 2 of the License, or (at your option) any later version.
*/
typedef int FILE;
extern FILE *stdin, *stdout;
#define NULL ((void *)0)
#define EOF (-1)
#define fopen(n, m) NULL
#define fflush(f) 0
#define fclose(f) 0
extern char *fgets();
#define perror(s) printf("%s: no files!\n", (s))
This diff is collapsed.
This diff is collapsed.
......@@ -9,6 +9,13 @@ CROSS_COMPILE =powerpc-eabi-
endif
# PowerPC (cross) tools
ifneq ($(shell uname -m),ppc)
#CROSS_COMPILE =powerpc-eabi-
CROSS_COMPILE =ppc-linux-elf-
endif
HOSTCC = gcc
HOSTCFLAGS = -O -I$(TOPDIR)/include
......
......@@ -21,13 +21,16 @@ setup_bats:
bne 4f
ori 4,4,4 /* set up BAT registers for 601 */
li 5,0x7f
b 5f
4: ori 4,4,0xff /* set up BAT registers for 604 */
mtibatu 3,4
mtibatl 3,5
isync
blr
4: ori 4,4,0xfe /* set up BAT registers for 604 */
li 5,2
mtdbatu 3,4
mtdbatl 3,5
5: mtibatu 3,4
mtdbatu 3,4
mtibatl 3,5
mtibatu 3,4
isync
blr
......
......@@ -11,7 +11,7 @@
* - added Z_PACKET_FLUSH (see zlib.h for details)
* - added inflateIncomp
*
* $Id: zlib.c,v 1.1 1997/07/31 07:16:14 paulus Exp $
* $Id: zlib.c,v 1.2 1998/09/03 17:40:53 cort Exp $
*/
/*+++++*/
......@@ -80,7 +80,7 @@ extern char *z_errmsg[]; /* indexed by 1-zlib_error */
/* functions */
#include <string.h>
#include <linux/string.h>
#define zmemcpy memcpy
#define zmemzero(dest, len) memset(dest, 0, len)
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment