next up previous contents
Next: 4. Exporting the hardware Up: 3.3.1 Basic console output Previous: 3.3.1 Basic console output

3.3.1.1 Memory banks

To get installed memory bank information we rely on machine dependent memory banks.

<off_mdepNode::get_minfo implementation. >= (<-U)
// Returns machine dependent information about the memory bank #n
off_mdepMBank off_mdepNode::get_minfo(natural_t n) const
{
  return off_mdepMBank(n);
}

\subsubsection{IO banks}

On Intels we will provide an unique IO bank.

<off_mdepNode::get_ioinfo implementation. >= (<-U)
off_mdepIOBank off_mdepNode::get_ioinfo(natural_t n) const
{
  return off_mdepIOBank(n);
}

\subsubsection{Processors}

We ask to the machine dependent processor implementation for processor information.

<off_mdepNode::get_procinfo implementation. >= (<-U)
// Returns machine dependent information about the memory bank #n
off_mdepProcessor off_mdepNode::get_procinfo(natural_t n) const
{
  return off_mdepProcessor(n);
}

\subsubsection{DMAs}

NOTE: move this to dma.nw

On Intels we include a single DMA table with several DMA lines.

<off_mdepNode::get_dmainfo implementation. >= (<-U)

#if 0               // XXX fix it

// Returns machine dependent information about the DMA bank #n
off_mdepDMA    off_mdepNode::get_dmainfo(natural_t n) const
{
  static off_mdepDMA d;
  switch(n){
  case 0:
    d.d_first=0;
    d.d_last=32;
    d.d_mat=128;
    break;
  default:
    d.d_first=d.d_last=0;
  }
  return d;
}
#endif

\subsection{Serial line debugging}

We provide start_dbserial which starts a serial line debugger and sets an immediate breakpoint.

<off_mdepNode::start_dbserial implementation. >= (<-U)
// Starts serial-line debugging. 
void off_mdepNode::start_dbserial(void)
{
  gdb_pc_com_init(1,0);
  gdb_breakpoint();
}

<Off machine dependent node implementation dependencies. >+= (<-U) [<-D]
#include <flux/gdb_serial.h>    // OSKit gdb support 
#include <flux/gdb.h>           // OSKit gdb support 

%% --------------------------------------------------------------



Francisco J. Ballesteros
1998-05-25