1 2007-09-27 Grant Edwards <grante@visi.com>
3 * include/hal_endian.h (SWAP16): Fix "return value" so
4 that it only returns data in lower 16 bits instead of 24.
6 2006-05-09 Andrew Lunn <andrew.lunn@ascom.ch>
8 * src/hal_if.c (cyg_hal_diag_mangler_gdb_flush): Fix compiler
9 warning about signed/unsigned.
11 2006-04-19 Alexander Neundorf <alexander.neundorf@jenoptik.com
13 * include/hal_if.h, src/hal_if.c: add a VV call for modifying
14 the FIS table from eCos applications
16 2005-06-27 Andrew Lunn <andrew.lunn@ascom.ch>
18 * include/hal_tables.h (CYG_HAL_TABLE_{QUALIFIED_}ENTRY): added
19 CYGBLD_ATTRIB_USED so that gcc 3.4.4 does not discard entries
20 which are not refereced explicitly. Problem reported by
23 2005-06-26 Bart Veer <bartv@ecoscentric.com>
25 * doc/hal.sgml: make HAL_DELAY_US() mandatory and define it to be
28 2005-05-19 Peter Korsgaard <jacmet@sunsite.dk>
30 * doc/porting.sgml: Changed dead sourceware.cygnus.com links to
33 2005-04-27 Enrico Piria <epiria@libero.it>
35 * src/hal_if.c Added missing declarations of tries when compiling
36 with CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES != 0.
38 2004-11-20 Andrew Lunn <andrew.lunn@ascom.ch>
40 * tests/intr.c: Make the ISR call the DSR to make sure this works
43 2004-08-22 Gary Thomas <gary@mlbassoc.com>
45 * doc/porting.sgml: Replace [very misleading dated] comments
46 about CygMon and platforms which use/need GDB stubs.
48 2004-08-12 Jani Monoses <jani@iv.ro>
50 * include/hal_if.h: Make monitor locking work with CYGPKG_LWIP.
52 2004-05-19 John Newlin <jnewlin@stretchinc.com>
55 (cyg_hal_gdb_interrupt)
56 (cyg_hal_gdb_remove_break): Changed both to use
57 _read_mem_safe/__write_mem_safe for inserting a breakpoint, and
58 restoring the original instruction.
59 The Xtensa architecture (and others maybe?) can have unaligned
60 instructions, which caused unaligned load/store exception.
62 2004-04-22 Jani Monoses <jani@iv.ro>
65 Invoke tail with stricter syntax that works in latest coreutils.
67 2004-02-23 Jonathan Larmour <jifl@eCosCentric.com>
69 * cdl/debugging.cdl (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS): Included
70 stubs should always mean saving full context both on interrupts
71 and context swaps, so make it explicit.
73 2004-01-05 Gary Thomas <gary@mlbassoc.com>
75 * include/hal_if.h: Minor fixup - new 'fconfig' functions broke
76 existing uses of CYGACC_CALL_IF_FLASH_CFG_OP. Added a new macro
77 CYGACC_CALL_IF_FLASH_CFG_OP2 which handles new API and a wrapper
78 to handle the old way (backwards compatability).
80 2003-12-21 Gary Thomas <gary@mlbassoc.com>
82 * src/hal_if.c (flash_config_op):
83 * include/hal_if.h: New expanded functions for RedBoot 'fconfig'
86 2003-09-04 Patrick Doyle <wpd@dtccom.com>
89 * src/hal_if.c (flash_fis_op): Added support for the rest of the
92 2003-08-06 Bob Koninckx <bob.koninckx@mech.kuleuven.ac.be>
94 * src/drv_api.c: Added definition of cyg_interrupt_post_dsr() for
95 use in those HALs that need it.
97 * include/hal_arbiter.h (hal_call_isr): Removed ifdef on
98 CYGFUN_HAL_COMMON_KERNEL_SUPPORT around test and call to
99 cyg_interrupt_post_dsr().
101 2003-07-21 Nick Garnett <nickg@balti.calivar.com>
103 * doc/hal.sgml: Reorganized description of clock and timer related
104 stuff into their own section and added a piece about how to change
107 2003-06-25 Nick Garnett <nickg@balti.calivar.com>
109 * src/hal_if.c (delay_us): The first test against
110 CYGNUM_KERNEL_COUNTERS_RTC_PERIOD is now against the period
111 divided by two. By the time we get to this test we know that usecs
112 can never be > usec_per_period/2 so we can double the range of
113 period values that we can handle without overflow and use the more
114 efficient approximation. The second test is not changed since we
115 cannot make the same assumptions about the elapsed count.
117 2003-06-24 Jonathan Larmour <jifl@eCosCentric.com>
119 * src/generic-stub.c (crc32): Fix crctable option name typo.
121 * src/hal_if.c (hal_if_init): Remove kill_by_reset.
122 (kill_by_reset): Remove, unused.
123 (reset): ifdef test on HAL_PLATFORM_RESET and assert on reset failure.
125 * cdl/interrupts.cdl (CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE): No
126 reason to forbid people setting this quite small.
128 2003-06-19 Nick Garnett <nickg@balti.calivar.com>
130 * src/hal_if.c (delay_us): Reorganized to cope with high frequency
131 timers by eliminating a source of arithmetic overflow.
133 2003-05-06 Mark Salter <msalter@redhat.com>
135 * src/hal_stub.c (handle_exception_exit): Call sys_profile_reset from
136 here. Setup to return through return_from_stub() when appropriate.
137 (return_from_stub): New function to call CYGACC_CALL_IF_MONITOR_RETURN
140 * src/generic-stub.c (__handle_exception): Call exit_vec if
141 hal_syscall_handler returns negative number.
143 2003-04-08 Mark Salter <msalter@redhat.com>
145 * src/hal_misc.c (hal_default_isr): Allow HAL to override default
146 GDB vector matching test.
148 2003-04-08 Yoshinori Sato <qzb04471@nifty.ne.jp>
149 2003-04-08 Jonathan Larmour <jifl@eCosCentric.com>
151 * cdl/debugging.cdl: Allow CRC to be allocated in ROM as well as RAM.
152 * src/generic-stub.c: as above.
154 2003-04-02 Gary Thomas <gary@mlbassoc.com>
156 * src/generic-stub.c:
157 * include/generic-stub.h: Cleanup when program args are not
158 supported (remove some unused static storage).
160 2003-03-03 Knud Woehler <knud.woehler@microplex.de>
163 * include/hal_if.h: Add CYGNUM_CALL_IF_FLASH_FIS_OP. FIS read
164 via the virtual vector table.
166 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
168 * cdl/hal.cdl: Fix doc links.
170 * doc/hal.sgml: hal-common-current-doc-porting-sgml entity ->
171 hal-common-porting-sgml in line with other docs.
173 2003-02-13 Mark Salter <msalter@redhat.com>
175 * src/gdb-fileio.h (FILEIO_O_BINARY): New flag.
176 (FILEIO_O_TEXT): New flag.
178 2003-01-31 Mark Salter <msalter@redhat.com>
180 * include/hal_if.h: Add CYGNUM_CALL_IF_MONITOR_RETURN.
182 2002-12-04 Gary Thomas <gthomas@ecoscentric.com>
184 * cdl/hal.cdl: RAM applications should not claim (reset) version
187 2002-12-03 Gary Thomas <gthomas@ecoscentric.com>
189 * src/hal_if.c (hal_if_init):
191 * cdl/hal.cdl: Allow monitor (RedBoot) version string to be exported
192 via the virtual vector table.
194 2002-11-13 Gary Thomas <gthomas@ecoscentric.com>
196 * cdl/hal.cdl: Add CDL control over DATA cache startup mode.
198 2002-09-11 Mark Salter <msalter@redhat.com>
200 * include/hal_if.h: Add __COMMCTL_ENABLE_LINE_FLUSH and
201 __COMMCTL_DISABLE_LINE_FLUSH.
203 2002-08-29 Mark Salter <msalter@redhat.com>
205 * include/generic-stub.h: Add defines for Z packet types.
206 * src/bplist-dynamic.c: Add support for deferred hardware breakpoint
207 and watchpoint insertion/deletion. This gets around gdb problem where
208 gdb tries accessing watched memory before removing watchpoint.
209 * src/generic-stub.c (__process_packet): Ditto.
210 * include/hal_stub.h: Ditto.
212 2002-05-23 Jesper Skov <jskov@redhat.com>
214 * cdl/hal.cdl: Don't build tests that are not applicable with the
215 current configuration.
216 Added CYGINT_HAL_TESTS_NO_CACHES which allows cache tests to be
219 2002-05-13 Jesper Skov <jskov@redhat.com>
221 * cdl/hal.cdl: Removed
222 CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT_NOT_GUARANTEED option and its
225 2002-05-02 Nick Garnett <nickg@redhat.com>
227 * doc/hal.sgml: Added description of HAL_DELAY_US().
229 * doc/porting.sgml: Expanded section on architecture porting.
231 2002-04-30 Jonathan Larmour <jlarmour@redhat.com>
233 * src/gdb-fileio.c (cyg_hal_gdbfileio_process_F_packet): Reset
234 retcode/errno/ctrlc status every F packet.
236 2002-04-23 Jesper Skov <jskov@redhat.com>
238 * doc/porting.sgml: Fix some typos.
240 2002-04-22 Jonathan Larmour <jlarmour@redhat.com>
242 * include/generic-stub.h: Prototype __getpacket().
243 * src/generic-stub.c: Rename getpacket() -> __getpacket(),
244 remcomInBuffer -> __remcomInBuffer, and
245 remcomOutBuffer -> __remcomOutBuffer throughout file, and export
246 them (i.e. not file local).
247 (__process_packet): Handle $F packets file I/O protocol responses.
249 * src/gdb-fileio.c: New file to implement file I/O operations over
250 the GDB remote protocol.
251 * src/gdb-fileio.h: New file. Header for above.
253 2002-03-15 Nick Garnett <nickg@redhat.com>
255 * doc/porting.sgml: Platform HAL porting guide tidied up and
256 expanded somewhat. Some work also done on variant
257 guide. Architecture guided needs a lot more work.
259 * doc/hal.sgml: Changed explicit section tags to recursive section
260 tags to make any future restructuring easier.
262 2002-03-14 Nick Garnett <nickg@redhat.com>
264 * src/hal_stub.c: Add calls to HAL memory access check macros in
265 memory access functions.
267 * include/hal_stub.h: Added default definitions for HAL memory access
270 2002-03-06 Nick Garnett <nickg@redhat.com>
272 * tests/cache.c: Changed tests so that zero sized caches and HALs
273 that define HAL_DCACHE_PURGE_ALL() don't cause this test to throw
276 2002-02-28 Jesper Skov <jskov@redhat.com>
278 * src/generic-stub.c (__handle_exception): Pay attention to return
279 value from hal_syscall_handler.
281 2002-02-21 Mark Salter <msalter@redhat.com>
283 * src/hal_if.c (cyg_hal_diag_mangler_gdb_flush): Don't do anything
286 2002-02-20 Nick Garnett <nickg@redhat.com>
288 * doc/hal.sgml: Updated and tidied. Now includes porting guide
289 from a separate file.
291 * doc/porting.sgml: Added this file to contain the porting guide
292 section of the HAL document. This is currently largely a
293 conversion of Jesper's porting guide from the website.
294 Unfortunately I have had no time to do much more than include it
295 wholesale, with only minor edits. There are some notes at the end
296 of the file describing what I would like to do.
298 2002-02-18 Nick Garnett <nickg@redhat.com>
300 * doc/hal.sgml: Restructured most of this document and rewrote
301 large chunks of the basic HAL description stuff. Only the skeleton
302 of the porting guided is currently done. This checkin in mostly
303 for safety and to let others read the current state.
305 2002-02-06 Mark Salter <msalter@redhat.com>
307 * src/hal_if.c (cyg_hal_diag_mangler_gdb_control): Add flush support.
308 (cyg_hal_diag_mangler_gdb_flush): New function to flush mangler output.
309 (cyg_hal_diag_mangler_gdb_putc): Use new function to flush output.
311 2002-01-30 Hugo Tyson <hmt@redhat.com>
313 * include/hal_if.h (CYGNUM_FLASH_CFG_OP_CONFIG_INT): New defines for
314 getting Flash Config options out of RedBoot using VV call
315 CYGACC_CALL_IF_FLASH_CFG_OP(). These need to be kept uptodate
316 with (or must override) those in RedBoot's flash_config.h
317 Previously only used for getting an ESA.
319 2002-01-25 Hugo Tyson <hmt@redhat.com>
321 * src/generic-stub.c (__process_packet): If detach or kill, call
322 sys_profile_reset() if BSP_SYSCALLS_GPROF are enabled, to clear
323 out any dangerous state there. Such as a callback function
324 pointer into application code.
326 2002-01-23 Jonathan Larmour <jlarmour@redhat.com>
328 * include/drv_api.h: Add cyg_drv_interrupt_mask/unmask_intunsafe
329 * src/drv_api.c: Ditto. And modify
330 cyg_drv_interrupt_mask/unmask to be interrupt safe.
332 2002-01-21 Mark Salter <msalter@redhat.com>
334 * include/hal_spd.h: New file. Definitions for SDRAM module SPD.
336 2002-01-18 Jesper Skov <jskov@redhat.com>
338 * src/hal_stub.c (__build_t_packet): don't declare extend_val
341 2001-12-12 Jesper Skov <jskov@redhat.com>
343 * include/hal_stub.h: Add goto to the used label.
344 * src/hal_misc.c: Added (dummy) got for label used in
345 CYGARC_HAL_GET_RETURN_ADDRESS_BACKUP.
347 2001-12-05 Jonathan Larmour <jlarmour@redhat.com>
349 * src/dbg-threads-syscall.c (dbg_thread_syscall): Don't bother to
350 deref a func ptr. The opcode could theoretically be 0x0!
352 2001-12-04 Richard Sandiford <rsandifo@redhat.com>
354 * src/generic-stub.c (__add_char_to_packet): Reverse check for
355 end of buffer and end of packet to fix potential buffer overrun.
357 2001-12-01 Jonathan Larmour <jlarmour@redhat.com>
359 * src/dbg-threads-syscall.c (dbg_thread_syscall): check for
360 NULL dbg_syscall_ptr.
362 * cdl/hal.cdl: require CYGPKG_INFRA since all HALs do!
364 2001-11-29 Hugo Tyson <hmt@redhat.com>
366 * src/hal_stub.c: Enable HAL_STUB_HW_SEND_STOP_REASON_TEXT for
367 XScale architectures per Mark's request; XScale GDB needs to know
368 what's happening with watchpoints (= work around previous change)
370 2001-11-29 Hugo Tyson <hmt@redhat.com>
372 * src/hal_stub.c: Condition out sending the reason for hardware
373 watchpoint stop in the stop packet as $T05watch:01234568;... most
374 GDBs do not understand it and in fact object to it.
376 2001-11-23 Nick Garnett <nickg@redhat.com>
378 * src/generic-stub.c (__process_packet): Fixed bogosity in
379 handling of 'r' packet. It tried to send two replies, messing up
380 the protocol and confusing GDB.
382 2001-11-02 Hugo Tyson <hmt@redhat.com>
384 * include/hal_stub.h (CYG_HAL_GDB_LEAVE_CRITICAL_IO_REGION):
385 Permit this too to be defined externally ie. in a platform HAL.
387 2001-10-25 Gary Thomas <gthomas@redhat.com>
390 * cdl/debugging.cdl: Reorg CDL a little so that GDB stub routines
391 are only compiled when needed (instead of being compiled "empty").
393 2001-10-24 Gary Thomas <gthomas@redhat.com>
395 * cdl/hal.cdl: Add 'basic' test.
397 * tests/basic.c: New test of some minimal HAL functionality.
399 2001-10-18 Gary Thomas <gthomas@redhat.com>
401 * src/hal_if.c (cyg_hal_diag_mangler_gdb_putc):
402 * cdl/debugging.cdl: CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES is now
403 defined as CDL 'data' flavor (tested via #if vs. #ifdef)
405 2001-10-17 Jesper Skov <jskov@redhat.com>
407 * src/generic-stub.c: Prefixed local version of memcpy and memset
410 2001-10-17 Gary Thomas <gthomas@redhat.com>
413 * src/hal_if.c (cyg_hal_diag_mangler_gdb_putc): Make retry/abort optional,
414 only attemped if CYGNUM_HAL_DEBUG_GDB_PROTOCOL_RETRIES is configured to
415 be non-zero (default now 0).
417 2001-10-16 Jesper Skov <jskov@redhat.com>
419 * include/hal_stub.h: Allow ISOINFRA/LIBC to provide string
422 2001-10-16 Gary Thomas <gthomas@redhat.com>
424 * include/generic-stub.h: Add prototypes for breakpoint_list functions.
426 2001-10-15 David Howells <dhowells@redhat.com>
428 * include/hal_stub.h: put semicolon between goto-label and close curly.
430 2001-10-12 Mark Salter <msalter@redhat.com>
432 * src/thread-packets.c: Don't specify array sizes in extern decls.
434 * src/hal_stub.c: Use HAL_STUB_REGISTERS_SIZE to set number of elements
435 in register save areas. Default to NUMREGS if not defined by HAL.
436 Allow HALs to provide specialized get_register()/put_register().
438 * src/generic-stub.c (stub_format_registers): Support 'p' packet.
439 (__process_packet): Rearrange ifdefs so error is sent for unsupported
441 (process_query): Add hook for HAL specific queries.
442 (process_set): Add hook for HAL specific sets.
444 * include/generic-stub.h: Add extern decls to quiet compiler warnings.
446 2001-10-11 Gary Thomas <gthomas@redhat.com>
448 * include/generic-stub.h:
449 * src/generic-stub.c: Improve error handling more. Make sure that
450 packets are consumed, even if they are going to be tossed (overflow).
451 This keeps TCP based connections going, even when the data is bad.
452 (getpacket): Only send NAK in case of overflow.
454 2001-10-09 Jesper Skov <jskov@redhat.com>
456 * src/hal_if.c (flash_config_op): Protect with
459 2001-10-04 Jesper Skov <jskov@redhat.com>
461 * include/hal_endian.h: Added.
464 2001-10-03 Jonathan Larmour <jlarmour@redhat.com>
466 * include/hal_tables.h (CYG_HAL_TABLE_BEGIN): Use plain "object"
467 because some (only some though) MIPS tools complain with %object.
468 (CYG_HAL_TABLE_END): Ditto.
470 2001-10-02 Jonathan Larmour <jlarmour@redhat.com>
472 * include/hal_tables.h (CYG_HAL_TABLE_BEGIN): Use %object syntax
473 rather than @object since @ is a comment character on ARM. gas
474 accepts either syntax.
475 (CYG_HAL_TABLE_END): Ditto.
477 2001-10-01 Gary Thomas <gthomas@redhat.com>
479 * src/generic-stub.c (getpacket): Send back error response (E01) if
480 packet received which overflows buffers. GDB doesn't always do much
481 with this error, but at least it keeps the protocol moving.
483 2001-09-26 Gary Thomas <gthomas@redhat.com>
485 * cdl/common.cdl: New interface CYGINT_HAL_SUPPORTS_MMU_TABLES which
486 indicates if the HAL supports MMU tables (few do).
488 2001-09-25 Gary Thomas <gthomas@redhat.com>
490 * cdl/common.cdl (CYGSEM_HAL_INSTALL_MMU_TABLES): Change to be
491 default for ROM startup.
493 2001-09-20 Jesper Skov <jskov@redhat.com>
495 * tests/vaargs.c (cyg_start): Call CYG_TEST_INIT.
497 2001-09-10 Nick Garnett <nickg@redhat.com>
499 * include/hal_stub.h (strlen): Changed return type to size_t from
500 int so it matches <string.h>. For some reason the compiler has
501 suddenly started complaining about the type mismatch. Strange.
503 2001-09-07 Nick Garnett <nickg@redhat.com>
505 * src/hal_stub.c (put_register): Added kludge for VR4300 targets
506 to sign extent the PC when it is being set. This is due to the
507 age of the VR4300 toolchain and the fact that the VR4300 is the
508 only target to do full 64bit register saves/restores.
510 2001-09-07 Jesper Skov <jskov@redhat.com>
512 * include/hal_if.h: Fix typo in below change.
514 2001-09-07 Jonathan Larmour <jlarmour@redhat.com>
516 * include/hal_if.h (CYGACC_CALL_IF_DBG_SYSCALL): Define and call
517 with correct arguments.
519 2001-08-24 Mark Salter <msalter@redhat.com>
521 * src/generic-stub.c (__process_packet): Add support for 'D' packet.
522 (__process_packet): Check for impossible mem write length.
524 2001-08-17 Jonathan Larmour <jlarmour@redhat.com>
526 * cdl/hal.cdl: Add CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
529 2001-08-16 Gary Thomas <gthomas@redhat.com>
531 * cdl/hal.cdl: Add CDL options to control GDB protocol retries.
533 2001-08-14 Gary Thomas <gthomas@redhat.com>
535 * src/hal_if.c (cyg_hal_diag_mangler_gdb_putc): Use timeout
536 functions to allow for retries. This should improve the case
537 where [for whatever reason] the host GDB misses or ignores
538 a $O packet - it will get resent after a reasonable timeout.
540 2001-08-03 Gary Thomas <gthomas@redhat.com>
541 2001-08-03 Jesper Skov <jskov@redhat.com>
543 * include/hal_if.h: Use inline functions for calls - allowing
544 interrupts to be disabled while services are called
545 [CYGACC_COMM_IF_CONTROL is an exception since it's using variable
546 arguments - so it's still a macro].
547 Pruned unused IF vectors: ICTRL_TABLE, EXC_TABLE, DBG_VECTOR,
548 CPU_DATA, BOARD_DATA, SYSINFO, SET_SERIAL_BAUD.
549 Note: this should fix bug CR 902745-CR.
551 * cdl/hal.cdl: Removed CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_ICTRL.
552 * src/hal_if.c (hal_if_init): Removed initialization of
553 ICTRL_TABLE, EXC_TABLE, CPU_DATA and BOARD_DATA entries.
555 2001-08-03 Nick Garnett <nickg@redhat.com>
557 Imported from a development branch:
559 2001-07-11 Nick Garnett <nickg@redhat.com>
563 Added API for controlling routing of interrupts to CPUs in SMP
566 2001-06-29 Nick Garnett <nickg@cygnus.co.uk>
570 Added API for using spinlocks.
572 2001-08-03 Jesper Skov <jskov@redhat.com>
574 * tests/vaargs.c: Added.
575 * cdl/hal.cdl: Added CYGPKG_HAL_BUILD_COMPILER_TESTS to allow cpp1
576 and vaargs tests to be compiled conditionally.
578 2001-07-27 Jesper Skov <jskov@redhat.com>
580 * tests/intr.c: Set up interrupt ISR using driver API so it works
581 properly in chained mode in the presence of arbiters.
583 * src/drv_api.c (chain_isr): Call default ISR when
584 appropriate. Return ISR return value.
586 * include/hal_arbiter.h (hal_call_isr): Added version to be used
587 with interrupt chaining.
589 2001-07-24 Mark Salter <msalter@redhat.com>
591 * cdl/hal.cdl (CYGINT_HAL_PLF_IF_IDE): New interface which
592 indicates platform supports IDE controller I/F macros.
594 2001-06-29 Jonathan Larmour <jlarmour@redhat.com>
596 * cdl/hal.cdl (CYGPKG_HAL_TESTS): Remove redundant .c extension
598 2001-06-29 Jesper Skov <jskov@redhat.com>
600 * include/hal_misc.h: Moved arbiter helper to
601 * include/hal_arbiter.h: this file to avoid header file inclusion
604 2001-06-28 Jesper Skov <jskov@redhat.com>
606 * include/hal_misc.h (hal_call_isr): Added. Used by ISR arbiters.
608 2001-06-22 Gary Thomas <gthomas@redhat.com>
610 * src/generic-stub.c (BUFMAX): Define as platform specific, thus
611 reducing memory requirements.
612 (__process_packet): Eliminate program arguments support until eCos
613 makes use of them (more memory savings).
615 2001-06-22 Mark Salter <msalter@redhat.com>
617 * src/hal_stub.c (__do_copy_mem): Add goto statement to prevent
618 compiler from moving instructions across 'err' label.
620 2001-06-14 Jonathan Larmour <jlarmour@redhat.com>
622 * src/generic-stub.c (__process_packet): Don't reset the board
623 straight away with a 'r' packet. Let a 'k' packet do it instead.
625 * src/hal_stub.c (__install_traps): Remove redundant comment.
627 2001-06-11 Jonathan Larmour <jlarmour@redhat.com>
629 * src/hal_if.c (delay_us): Revert below change of 2001-05-17
631 2001-06-05 Hugo Tyson <hmt@redhat.com>
633 * src/hal_if.c (cyg_hal_diag_mangler_gdb_putc): The nesting of
634 CYGARC_HAL_SAVE_GP() and the instant-out if sending a carriage
635 return "\r" was wrong - it scrambled the gp for the caller! Since
636 the return-test is trivial, I simply re-ordered rather than making
637 the exit clause complex with a restore in it.
639 2001-05-17 Jonathan Larmour <jlarmour@redhat.com>
641 * src/hal_if.c (delay_us): Warn if using default
643 2001-05-14 Jonathan Larmour <jlarmour@redhat.com>
645 * cdl/interrupts.cdl (CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE):
646 Default stack size to 32K for non-kernel configs, and describe
649 2001-05-07 Gary Thomas <gthomas@redhat.com>
651 * src/hal_if.c (hal_ctrlc_check): Only return 'true' if the ISR/DSR
652 actually processes a ^C. Otherwise, interrupts/date can be lost on
653 a shared channel (like an ethernet device).
655 2001-04-30 Gary Thomas <gthomas@redhat.com>
657 * cdl/hal.cdl: Add configury to control initial cache behaviour.
659 2001-04-30 Hugo Tyson <hmt@redhat.com>
661 * cdl/hal.cdl: Add tests/cpp1.c to the tests list.
663 * tests/cpp1.c: New test, to test for regressions in the tools.
664 This one is for a CPP bug in the XScale tools where '+' binds too
665 strongly following a ')' because it is mistaken for unary plus.
667 2001-04-25 Bart Veer <bartv@redhat.com>
670 Fix test for cache presence.
672 * src/drv_api.c (cyg_drv_interrupt_detach):
673 Added missing indirection.
675 2001-03-28 Jonathan Larmour <jlarmour@redhat.com>
677 * include/dbg-threads-api.h: Add dbg_thread_id() function prototype.
679 2001-03-21 Mark Salter <msalter@redhat.com>
681 * src/hal_if.c (hal_if_init): Add explicit typecast when setting
682 version. Needed when sizeof(int) < sizeof(CYG_ADDRWORD).
684 2001-03-21 Jesper Skov <jskov@redhat.com>
686 * src/hal_if.c (hal_if_init): Added warning about debugging.
688 2001-03-20 Jonathan Larmour <jlarmour@redhat.com>
690 * include/hal_if.h: Add argument names to __call_if_flash_cfg_op_fn_t
692 2001-03-16 Mark Salter <msalter@redhat.com>
694 * src/hal_stub.c (__build_t_packet): Add hook for adding arch-specific
695 registers to T packet.
696 (handle_exception_cleanup): Skip orig_registers past breakpoint so we
697 return to original context rather than hit breakpoint again.
699 2001-03-16 Hugo Tyson <hmt@redhat.com>
701 * include/hal_if.h: Define types and slots and macros themed with
702 the phrase CALL_IF_FLASH_CFG_OP following the pattern of what's
703 there for the other slots. Thus CYGNUM_CALL_IF_FLASH_CFG_OP,
704 CYGACC_CALL_IF_FLASH_CFG_OP(...) and __call_if_flash_cfg_op_fn_t
705 are all newly defined. Also CYGNUM_CALL_IF_FLASH_CFG_GET which is
706 the only operation supported in this initial version.
708 Also changed many typedef'd function pointers to not include the
709 pointerness; that way the type can be used to validate the
710 correctness of arguments in the called function.
712 * src/hal_stub.c (__reset): Minor change to reset function
713 handling; pointerness of typedef removed.
715 * src/hal_if.c (flash_config_op): New function to call flash ops
716 in RedBoot. This is so that RedBoot can manage ethernet addresses
717 for you, and the application can get at the data "cleanly".
718 (hal_if_init): Install flash_config_op() in the table if defined.
720 2001-03-12 Mark Salter <msalter@redhat.com>
722 * src/hal_misc.c (cyg_hal_user_break): Use macro to find PC
725 * src/generic-stub.c: Add support for harvard memories.
726 * src/bplist-dynamic.c: Ditto.
727 * include/generic-stub.h: Ditto.
728 * include/hal_stub.h: Add dummy harvard memory macros for
729 princeton memory systems.
731 2001-03-12 Jesper Skov <jskov@redhat.com>
733 * src/drv_api.c (cyg_drv_interrupt_detach): Fix missing intr->
736 2001-03-08 Jesper Skov <jskov@redhat.com>
738 * cdl/hal.cdl: Change sense of
739 CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT_GUARANTEED to new
740 CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT_NOT_GUARANTEED.
742 2001-03-07 Jesper Skov <jskov@redhat.com>
744 * src/drv_api.c: Use macro to provide symbol alias.
746 2001-03-05 Jesper Skov <jskov@redhat.com>
748 * src/hal_if.c (hal_if_diag_init): Ensure the function only
751 2001-03-02 Gary Thomas <gthomas@redhat.com>
755 * src/hal_if.c (hal_if_init):
756 Support platform specific initializations.
758 2001-02-26 Mark Salter <msalter@redhat.com>
760 * src/generic-stub.c (__process_packet): Change 'k' packet to cause
761 return to original context. Change 'r' packet to respond with empty
762 packet before resetting board.
764 * src/hal_stub.c (handle_exception_exit): New function. Restores
765 original context saved when stub was entered for the first time.
766 (handle_exception_cleanup): Save original context.
767 (__install_traps): Set __process_exit_vec to handle_exception_exit.
769 2001-02-09 Jesper Skov <jskov@redhat.com>
771 * cdl/debugging.cdl: Make CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT and
772 CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT options have sensible defaults.
774 2001-02-08 Jesper Skov <jskov@redhat.com>
776 * cdl/hal.cdl: Added CYGSEM_HAL_VIRTUAL_VECTOR_INHERIT_CONSOLE and
777 CHANNEL_CONFIGURABLE options.
778 * cdl/common.cdl: Added CYGDBG_HAL_DIAG_TO_DEBUG_CHAN option.
779 * src/hal_if.c: Changes to respect new options. Always do platform
780 driver init from CLAIM_COMMS code.
781 * src/hal_stub.c: Leave channel setup to CLAIM_COMMS code.
783 * src/hal_if.c: Added null mangler that gets called via the
784 virtual vector console comms entry and just forwards IO to the
785 debug comms entries. This differs from setting the console
786 channel to the same as the debug channel in that console output
787 will go to the debug channel even if the debug channel is changed.
789 2001-02-07 Jesper Skov <jskov@redhat.com>
791 * include/hal_if.h: Allow architecture to override COMM and CALL
794 2001-02-03 Gary Thomas <gthomas@redhat.com>
796 * src/bplist-dynamic.c (__set_breakpoint, __remove_breakpoint):
797 Fix error introduced below when no breakpoint list defined.
799 2001-02-02 Mark Salter <msalter@redhat.com>
801 * src/generic-stub.c: __set_breakpoint and __remove_breakpoint now
802 take a length argument.
804 * src/bplist-dynamic.c: Support breakpoint length. Use
805 HAL_BREAKINST_ADDR macro (if defined) to get actual breakpoint based
806 on breakpoint length.
808 * include/hal_stub.h: Add len argument to __set_breakpoint and
811 2001-02-01 Jesper Skov <jskov@redhat.com>
813 * src/drv_api.c: Make it build with chaining.
815 * include/hal_if.h: Introduce macros for legal version range and
816 special hacked version number used by ctrlc magic.
817 * src/hal_if.c (hal_ctrlc_isr_init): Be more careful with how the
818 version number is checked (and trashed) by the ctrlc init code.
819 * src/hal_misc.c (hal_default_isr): Same.
821 * src/hal_stub.c: Moved mangling code to hal_if.c
822 * src/hal_if.c: New policies for when and how to initialize the
823 IO channels. Mangler code now set up by diag_init to allow for
824 mangling when no stub is included.
826 * include/hal_if.h: Added COMM version in upper 16 bits of version
827 word. Removed CYGPRI_HAL_IMPLEMENTS_IF_SERVICES.
828 * src/hal_misc.c: Use masks when checking vv versions.
830 * cdl/hal.cdl: Add new options for selecting which parts of the
831 virtual vector table to initialize.
832 * src/hal_if.c: Matching granularity in initialization code.
833 Extra checking of services before using these.
835 * cdl/debugging.cdl: Require channel initialization when enabling
838 2001-01-31 Jesper Skov <jskov@redhat.com>
840 * cdl/common.cdl: Get rid of CYGDBG_HAL_DIAG_DISABLE_GDB_PROTOCOL
841 options. They are replaced by the CYGSEM_HAL_DIAG_MANGLER option.
843 2001-01-31 Hugo Tyson <hmt@redhat.com>
845 * include/hal_if.h: Make it possible to build logical ether driver
846 even without virtual vectors present, by defining a dummy
847 HAL_CTRLC_CHECK in that case; other code invokes it if debugging
850 2001-01-26 Jesper Skov <jskov@redhat.com>
852 * src/hal_stub.c (__reset): Rename HAL_STUB_PLATFORM_RESETx macros
853 to HAL_PLATFORM_RESETx.
854 * src/hal_if.c (reset): Same.
856 2001-01-15 Nick Garnett <nickg@cygnus.co.uk>
858 * src/drv_api.c: Initialized isr_disable_counter to 1 so that it
859 indicates that interrupts are initially disabled.
861 2000-12-15 Gary Thomas <gthomas@redhat.com>
863 * src/generic-stub.c: Define 'version' string to be a weak
864 symbol that can be easily overridden (e.g. by RedBoot).
866 2000-12-11 Gary Thomas <gthomas@redhat.com>
868 * src/hal_if.c: Remove unnecessary (polluting) include file.
870 * include/hal_stub.h: Support platform/variant supplied
871 include files. <cyg/hal/plf_XXX.h> can now be layered
872 as <cyg/hal/var_XXX.h> which includes <cyg/hal/plf_XXX.h>.
874 2000-12-06 Jesper Skov <jskov@redhat.com>
876 * src/hal_if.c (delay_us): Ensure proper _GP save/restore.
877 Reduce number of loops in fall-back code.
879 2000-12-05 Drew Moseley <dmoseley@redhat.com>
881 * src/hal_stub.c (__build_t_packet): Handle
882 CYGARC_REGSIZE_DIFFERS_FROM_TARGET_REGISTER_T with Little Endian
885 * include/hal_misc.h: Added BIT and SZ_ defines.
887 2000-11-22 Mark Salter <msalter@redhat.com>
889 * src/hal_misc.c (hal_default_isr): Version check only when
890 CYGSEM_HAL_ROM_MONITOR not defined.
892 2000-11-20 Mark Salter <msalter@redhat.com>
894 * src/hal_stub.c (hal_flush_output): New function to flush debug
897 * src/generic-stub.c (__process_packet): Use hal_flush_output when
898 killing or continuing.
900 * include/hal_stub.h: Add declaration for hal_flush_output().
902 * include/hal_if.h (__COMMCTL_FLUSH_OUTPUT): New comm control cmd.
904 2000-11-17 Jesper Skov <jskov@redhat.com>
906 * src/hal_if.c (delay_us): Add dummy loop.
907 Duh! Take usecs argment into account.
909 2000-11-06 Mark Salter <msalter@redhat.com>
911 * src/generic-stub.c (__handle_exception): Add support for GNUPro bsp
914 * src/board.h: Include pkgconf/redboot.h for CYGSEM_REDBOOT_BSP_SYSCALLS.
916 2000-11-06 Jesper Skov <jskov@redhat.com>
918 * src/hal_if.c (hal_if_diag_write_char): Clear interrupt flag before
921 2000-11-04 Mark Salter <msalter@redhat.com>
923 * src/hal_stub.c (__build_t_packet): Report reason and data
924 address if stopped by hw watchpoint.
926 * src/generic-stub.c (__process_packet): Remove experimental
927 support for type 5 Z packet.
929 * include/hal_stub.h: Define HAL_STUB_STOP_* reasons returned
930 by HAL_IS_STOPPED_BY_HARDWARE.
932 2000-10-27 Mark Salter <msalter@redhat.com>
934 * src/generic-stub.c: Fixed preprocessor warning.
936 2000-10-27 Gary Thomas <gthomas@redhat.com>
938 * src/generic-stub.c (__process_packet): Remove warnings when
939 hardware breakpoint support (Z packet) not enabled.
941 2000-10-26 Mark Salter <msalter@redhat.com>
943 * src/generic-stub.c (__process_packet): Add Z packet support.
945 * src/bplist-dynamic.c: Include <pkgconf/hal.h> to pick up
946 CYGNUM_HAL_BREAKPOINT_LIST_SIZE.
948 2000-10-24 Jesper Skov <jskov@redhat.com>
950 * src/generic-stub.c (__process_packet): Disable buffer size
953 2000-10-23 Jesper Skov <jskov@redhat.com>
955 * src/hal_stub.c: Made __mem_fault_handler pointer volatile.
957 2000-10-20 Jonathan Larmour <jlarmour@redhat.com>
959 * include/drv_api.h (cyg_interrupt): Make dsr_count volatile to
960 prevent compilers optimizing accesses in the wrong place.
962 2000-10-20 Jesper Skov <jskov@redhat.com>
964 * include/drv_api.h: Correct location of volatile keyword.
965 * src/drv_api.c: Same.
967 2000-10-19 Gary Thomas <gthomas@redhat.com>
969 * src/generic-stub.c (__process_packet): Add RedBoot identifier
970 in maintenance 'd' packet reply.
972 2000-10-18 Jesper Skov <jskov@redhat.com>
974 * include/hal_if.h (CYGPRI_HAL_IMPLEMENTS_IF_SERVICES): Set for
975 all non-RAM startup types.
977 2000-10-13 Jonathan Larmour <jlarmour@redhat.com>
979 * src/stubrom/stubrom.c (cyg_start): Remove unnecessary call to
982 2000-09-11 Jonathan Larmour <jlarmour@redhat.com>
984 * include/hal_tables.h (CYG_HAL_TABLE_EXTRA): Use new definition of
985 CYGBLD_ATTRIB_SECTION, and fix the string name up better.
986 (CYG_HAL_TABLE_ENTRY): Ditto
987 (CYG_HAL_TABLE_QUALIFIED_ENTRY): Ditto
989 2000-09-07 Jonathan Larmour <jlarmour@redhat.com>
991 * include/hal_tables.h: Fix non-standard use of paste operator to
992 remove warnings with recent gcc
994 2000-09-04 Jonathan Larmour <jlarmour@redhat.com>
996 * include/hal_tables.h (CYG_HAL_TABLE_END): Use CYGARC_P2ALIGNMENT
998 (CYG_HAL_TABLE_TYPE): Define
1000 2000-09-01 Jonathan Larmour <jlarmour@redhat.com>
1002 * src/hal_stub.c (__build_t_packet): Ensure sign extension applies
1003 in the higher word, not the lower.
1004 (__build_t_packet): Don't need to conditionalize on
1005 CYGARC_REGSIZE_DIFFERS_FROM_TARGET_REGISTER_T as there should be no
1006 problems with the current code.
1007 * src/generic-stub.c (stub_format_registers): Likewise
1009 * include/hal_if.h (CYGACC_COMM_IF_CONTROL): Remove warning due to
1010 unnecessary use of cpp paste operator
1012 2000-08-28 Gary Thomas <gthomas@redhat.com>
1015 * include/hal_if.h (hal_ctrlc_check): Define new routine to be
1016 called by interrupt handlers (DSRs) which may be using hardware
1017 shared with a debug channel. In particular, network adaptors
1018 need to call this function to see if a ^C has occurred on the
1019 network debug connection.
1021 2000-08-24 Gary Thomas <gthomas@redhat.com>
1023 * include/hal_tables.h: Need descriminated tables (for proper sorting).
1025 2000-08-14 Drew Moseley <dmoseley@redhat.com>
1027 * src/hal_if.c: Added an extern declaration for
1028 cyg_hal_plf_comms_init.
1030 * src/bplist-dynamic.c: Only use breakpoint lists when building
1033 2000-08-10 Drew Moseley <dmoseley@redhat.com>
1035 * include/generic-stub.h: Added support for register validity
1037 * src/generic-stub.c: Ditto.
1038 * src/hal_stub.c: Ditto.
1040 * include/drv_api.h: Added cyg_code_t.
1042 2000-08-03 Gary Thomas <gthomas@redhat.com>
1044 * include/hal_if.h (CYGNUM_CALL_IF_DBG_DATA): Move to avoid
1047 2000-07-26 Gary Thomas <gthomas@redhat.com>
1049 * src/hal_stub.c (cyg_hal_gdb_diag_putc): Ignore any characters
1050 other than the protocol chars of ACK/NAK/^C.
1052 * src/hal_if.c (hal_if_diag_init): Only reset console channel
1053 if user has configured a non-default choice.
1055 2000-07-24 Drew Moseley <dmoseley@redhat.com>
1057 * src/bplist-dynamic.c (__install_breakpoint_list): Call
1058 HAL_ICACHE_SYNC() rather than HAL_ICACHE_INVALIDATE_ALL().
1060 2000-07-21 Drew Moseley <dmoseley@cygnus.com>
1062 * src/hal_stub.c: Cleanup of #define's.
1064 * src/generic-stub.c: Rearrange the linkage between Cygmon and HAL so
1065 that Cygmon needs HAL but not vice-versa. ie HAL no longer calls
1066 any Cygmon functions.
1067 * src/hal_misc.c: Ditto.
1069 * src/bplist-dynamic.c: Use HAL macros rather than Cygmon
1070 functions for flushing the cache.
1071 Also handle the case where target_register_t is not defined.
1073 2000-07-21 Gary Thomas <gthomas@redhat.com>
1075 * src/hal_if.c (CYGNUM_HAL_VIRTUAL_VECTOR_NUM_CHANNELS): Define to allow
1076 the number of channels to be extended by "AUX" packages.
1078 2000-07-20 Drew Moseley <dmoseley@redhat.com>
1080 * src/generic-stub.c (stub_format_registers): Make the previous patch
1081 effective only if CYGARC_REGSIZE_DIFFERS_FROM_TARGET_REGISTER_T is
1082 defined so as to not affect any other targets.
1083 * src/hal_stub.c: Ditto.
1085 2000-07-19 Drew Moseley <dmoseley@redhat.com>
1087 * src/generic-stub.c (stub_format_registers): Handle the case
1088 where GDB is expecting registers larger than we are storing. ie
1089 MIPS gdb expects 64 bit registers even if we are on a 32 bit
1090 architecture. Also, handle the sign-extension correctly if
1092 * src/hal_stub.c (__build_t_packet): Ditto.
1094 2000-07-18 Jesper Skov <jskov@redhat.com>
1096 * src/hal_misc.c (hal_default_isr):
1097 Version gets hacked by hal_if_init - check for the hacked value.
1099 2000-07-18 Jesper Skov <jskov@redhat.com>
1101 * src/hal_stub.c (__mem_fault_handler): Made volatile.
1103 2000-07-14 Drew Moseley <dmoseley@redhat.com>
1105 * src/generic-stub.c: Cleanups for better coexistence with Cygmon.
1106 * include/generic-stub.h: Ditto.
1107 * include/hal_if.h: Ditto.
1108 * include/hal_stub.h: Ditto.
1109 * src/hal_stub.c: Ditto.
1111 * cdl/hal.cdl: Compile bplist-dynamic.c.
1113 * src/bplist-dynamic.c: New file for supporting breakpoints in the HAL.
1115 2000-07-14 Gary Thomas <gthomas@redhat.com>
1117 * src/hal_if.c (delay_us): Use HAL_DELAY_US() if defined.
1119 2000-07-07 Jesper Skov <jskov@redhat.com>
1121 * src/hal_stub.c (initHardware): Fix #endif location.
1123 * src/hal_if.c (hal_ctrlc_isr_init): Added hack to work around a
1124 silly but critical problem.
1126 * src/hal_stub.c: Removed some CygMon conditional exclusions.
1128 * src/hal_if.c (hal_ctrlc_isr_init): Don't enable interrupts when
1129 configured as ROM monitor.
1131 2000-07-05 Jesper Skov <jskov@redhat.com>
1133 * cdl/debugging.cdl: Only allow CTRLC support if there's stubs or
1134 a ROM monitor to handle it. (Haruki Kashiwaya (kashiwaya at redhat
1137 2000-06-30 Jesper Skov <jskov@redhat.com>
1139 * include/hal_if.h: Make CYGACC macros call functions. May have to
1140 add some _GET macros at some time if anyone needs to access the
1146 Matching changes of CYGACC clients.
1148 2000-06-29 Jesper Skov <jskov@redhat.com>
1150 * src/hal_stub.c (cyg_hal_gdb_diag_putc): Check console interrupt
1151 flag and breakpoint if set.
1153 2000-06-28 Jesper Skov <jskov@redhat.com>
1155 * src/hal_stub.c (cyg_hal_gdb_diag_putc): Don't try to set
1156 breakpoints in ROM startup - just disable interrupts. Also, use
1157 procs table function to disable device interrupts.
1159 * include/hal_if.h: Mark vector/comms arrays volatile to avoid
1162 * include/dbg-threads-api.h: Fix C/C++ declaration issues.
1164 * src/hal_stub.c: Moved stub platform init call below vector table
1169 * include/hal_if.h: DBG_ISR_VECTOR and SET_TIMEOUT functions added
1170 to comms table. Added DELAY_US function to vector table. Made
1171 switching of debug channel dis/enable Ctrl-c interrupts as
1172 well. Made ctrlc_isr code use new vector entries. All this amounts
1173 to a properly switchable debug channel.
1175 2000-06-21 Jesper Skov <jskov@redhat.com>
1177 * src/hal_stub.c: Fixed clients of vector procs tables to pass
1178 in the correct arguments. Hook O-packetizer up on procs slot
1179 reserved for IO mangler. Install mangler when necessary.
1181 * src/hal_if.c: Extended set procs functions to allow temporarily
1182 switching console procs in a safe manner. Removed debug and
1183 console wrappers - all IO happens via drivers hooked up in tables
1184 rather than through hardwired macros. Proper initialization of
1185 console proc entry. Fixed clients of vector procs tables to pass
1186 in the correct arguments. Stub now does its own vector table
1187 initialization. Added special procs slot for IO manglers.
1189 * include/hal_if.h: Define special IDs used by the set procs
1190 functions. PROCS_HANDLED removed since the procs table will now
1191 always service any port.
1193 2000-06-21 Nick Garnett <nickg@cygnus.co.uk>
1195 * include/hal_stub.h: Added underscore to breakinst().
1197 * include/hal_tables.h:
1198 Added this file to contain macros for defining datatables in a
1199 systematic and extensible way.
1201 2000-06-19 Gary Thomas <gthomas@redhat.com>
1203 * cdl/hal.cdl: Revert change below - GUARANTEED can exist
1206 2000-06-18 Gary Thomas <gthomas@redhat.com>
1208 * cdl/hal.cdl: Use of virtual vector functions for diagnostic
1209 output must be disabled when building with stubs. Note: this
1210 lets stubs be built for platforms with guaranteed virtual
1213 2000-06-16 Jesper Skov <jskov@redhat.com>
1215 * include/hal_if.h: All vector-dependant features hidden when
1216 config option not enabled.
1218 * src/hal_if.c (hal_if_init): Fix warning.
1220 2000-06-15 Jesper Skov <jskov@redhat.com>
1222 * include/hal_if.h: Added console-include decision logic.
1224 2000-06-15 Nick Garnett <nickg@cygnus.co.uk>
1227 * include/drv_api.h: Added boolean result to cyg_drv_cond_wait()
1228 to match change to the kernel and KAPI functionality.
1230 2000-06-14 Jesper Skov <jskov@redhat.com>
1232 * src/hal_stub.c: Added O-packetizer used by GDB stubs for virtual
1233 vector table configs.
1235 * src/hal_misc.c (hal_default_isr): Check Ctrlc for both CTRLC
1240 Define console wrappers when necessary. Platform HALs can use
1241 these by providing raw IO functions and some config data.
1243 2000-06-09 Jesper Skov <jskov@redhat.com>
1245 * src/hal_if.c: Implemented most of the remaining services. Some
1246 just don't have an eCos equivalent at the moment.
1248 * cdl/hal.cdl: Allow virtual_vector options to have sensible
1249 default values depending on when the platform HAL port was
1252 * src/hal_misc.c (cyg_hal_user_break): Also expect CygMon to
1253 provide the breakpoint service.
1255 * src/stubrom/stubrom.c (cyg_start): Reverted change. Now handled
1258 * cdl/hal.cdl: Added option for controlling use of diag services
1259 in the virtual vector table.
1261 2000-06-08 Jesper Skov <jskov@redhat.com>
1263 * src/stubrom/stubrom.c: Call hal_diag_init to ensure IF table
1264 entries related to diag IO get initialized.
1266 * src/hal_stub.c (cyg_hal_gdb_interrupt): save/restore GP so it
1267 can be used by MIPS platforms.
1268 Use reset function in ROM if available.
1271 * include/hal_misc.h: Functions shared between HALs. More
1272 functions are likely to be moved here if appropriate.
1274 * src/hal_if.c: Interfacing related functions: table init code and
1277 * include/hal_if.h: ROM/RAM calling interface table
1278 definitions. The layout is a combination of libbsp and vectors
1279 already in use by some eCos platforms.
1282 * cdl/hal.cdl: Added CYGxxx_HAL_VIRTUAL_VECTOR_SUPPORT
1283 options. These are used to control whether a platform uses the new
1284 ROM/RAM calling interface. All platforms will be converted to use
1285 this, but piecemeal over a period of time, thus the requirement
1286 for selecting behavior.
1288 2000-06-04 Gary Thomas <gthomas@redhat.com>
1290 * cdl/hal.cdl: Support variant 'pkgconf' headers. This will allow
1291 [variant] common symbols to be defined, rather than duplicating
1292 them over all platforms using that variant.
1294 2000-05-25 Jesper Skov <jskov@redhat.com>
1296 * cdl/debugging.cdl: Allow thread support to included for ROM
1299 2000-05-22 Jesper Skov <jskov@redhat.com>
1301 * cdl/debugging.cdl: Allow platform to prevent CTRLC inclusion.
1303 2000-04-12 Jesper Skov <jskov@redhat.com>
1305 * cdl/debugging.cdl: Don't let interfaces define anything.
1307 2000-04-07 Jesper Skov <jskov@redhat.com>
1309 * cdl/hal.cdl: Fix dependencies for stub.
1311 2000-03-28 Jesper Skov <jskov@redhat.com>
1313 * src/generic-stub.c (__process_packet): Added 'z' packet reply.
1315 2000-03-28 John Dallaway <jld@cygnus.co.uk>
1319 Adjust documentation URLs.
1321 2000-03-24 Jesper Skov <jskov@redhat.com>
1323 * include/hal_stub.h: Fixed a bad function name. Made it opssible
1324 for archs to define CYG_HAL_GDB_ENTER_CRITICAL_IO_REGION.
1326 2000-03-20 Jesper Skov <jskov@redhat.com>
1328 * cdl/debugging.cdl: Preclude USE_MONITOR when including stubs.
1330 2000-03-01 Gary Thomas <gthomas@cygnus.co.uk>
1333 Define CYGINT_HAL_DIAG_DISABLE_GDB_PROTOCOL_SUPPORTED as an
1334 'interface' so implementations can be properly specified.
1336 2000-02-29 Gary Thomas <gthomas@cygnus.co.uk>
1338 * cdl/common.cdl: Option to disable GDB protocol now supported
1339 by QUICC based PowerPC systems.
1341 2000-02-29 Jonathan Larmour <jlarmour@redhat.co.uk>
1343 * include/generic-stub.h: Make header C++ safe
1345 2000-02-16 Jesper Skov <jskov@redhat.com>
1347 * include/hal_stub.h: fixed endian definitions.
1349 2000-02-10 Jesper Skov <jskov@redhat.com>
1351 * include/pkgconf/hal.h: Added CYGSEM_HAL_ROM_MONITOR
1352 * src/hal_stub.c (initHardware): CYG_HAL_STARTUP_STUBS ->
1353 CYGSEM_HAL_ROM_MONITOR.
1354 Removed HAL_STUB_PLATFORM_STUBS_INIT.
1356 2000-02-09 Jesper Skov <jskov@redhat.com>
1358 * cdl/hal.cdl: Added remaining build dependencies.
1360 2000-02-04 Jesper Skov <jskov@redhat.com>
1362 * cdl/hal.cdl: Fix test list display.
1364 2000-02-03 Jesper Skov <jskov@redhat.com>
1366 * include/pkgconf/hal.h: CYG_HAL_POWERPC_x->CYGPKG_...
1368 2000-02-03 Jesper Skov <jskov@redhat.com>
1370 * cdl/debugging.cdl: Use interfaces for stub capabilities instead
1372 * cdl/hal.cdl: Add extra dependencies to common stub build rule.
1374 2000-02-02 Jesper Skov <jskov@redhat.com>
1376 * cdl/hal.cdl: Added HAL tests.
1378 2000-01-31 Simon FitzMaurice <sdf@cygnus.co.uk>
1381 Adjust help URLs in line with new doc layout.
1383 2000-01-28 Simon FitzMaurice <sdf@cygnus.co.uk>
1386 Adjust help URLs in line with new doc layout.
1388 2000-01-27 Jesper Skov <jskov@redhat.com>
1390 * cdl/hal.cdl: Added simple build rules for common stub.
1392 2000-01-26 Jonathan Larmour <jlarmour@redhat.co.uk>
1394 * src/hal_stub.c (__reset): Replace CYGDAT_CYGMON_ENABLE
1395 dependency with just CYGPKG_CYGMON
1396 (initHardware): Likewise
1397 (__set_baud_rate): Likewise
1398 (putDebugChar): Likewise
1400 2000-01-17 John Dallaway <jld@cygnus.co.uk>
1405 Modify the default_value attribute for
1406 CYGFUN_HAL_COMMON_KERNEL_SUPPORT, CYGPKG_HAL_EXCEPTIONS
1407 and CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT to do the right
1408 thing in the absence of the eCos kernel package.
1410 1999-12-22 John Dallaway <jld@cygnus.co.uk>
1414 Add CFLAGS to the custom rule for extras.o to accommodate
1415 arm big-endian targets.
1417 1999-12-21 Jonathan Larmour <jlarmour@cygnus.co.uk>
1419 * include/pkgconf/hal.h: Rename all CYG_HAL_USE_ROM_MONITOR_GDB_STUBS
1420 -> CYGSEM_HAL_USE_ROM_MONITOR_GDB_stubs
1421 Rename all CYG_HAL_USE_ROM_MONITOR_CYGMON ->
1422 CYGSEM_HAL_USE_ROM_MONITOR_CygMon
1423 Rename all CYG_HAL_USE_ROM_MONITOR -> CYGSEM_HAL_USE_ROM_MONITOR
1424 Don't need to define CYG_HAL_SH_SH7708 any more
1426 * cdl/hal.cdl: Add CYGPKG_HAL_ROM_MONITOR container package for
1427 platforms to put ROM-monitor related options into
1428 Move all ROM-monitor related options into individual platform CDL
1430 1999-12-02 John Dallaway <jld@cygnus.co.uk>
1434 Use '$<' to reference custom rule dependency.
1436 1999-12-01 John Dallaway <jld@cygnus.co.uk>
1440 Use the <PREFIX> token in custom rules.
1442 1999-11-29 John Dallaway <jld@cygnus.co.uk>
1446 Use wildcard in the custom rule for extras.o to
1447 accommodate 'make -n'.
1449 1999-11-23 Simon Fitzmaurice <sdf@cygnus.co.uk>
1450 * cdl\common.cdl: Correct example of illiteracy
1452 1999-11-20 Gary Thomas <gthomas@cygnus.co.uk>
1454 * cdl/common.cdl: Add MMU tables options.
1456 * include/pkgconf/hal.h (CYGSEM_HAL_INSTALL_MMU_TABLES):
1457 (CYGSEM_HAL_STATIC_MMU_TABLES): New options to control MMU table
1458 flavour and placement.
1460 1999-11-15 Jonathan Larmour <jlarmour@cygnus.co.uk>
1462 * include/dbg-threads-api.h, include/generic-stub.h,
1463 include/hal_stub.h: Add comments to explain these header files should
1464 not be included by user programs
1466 1999-11-09 Gary Thomas <gthomas@cygnus.co.uk>
1468 * cdl/common.cdl: Add CYGDBG_HAL_DIAG_DISABLE_GDB_PROTOCOL.
1470 * include/pkgconf/hal.h (CYGDBG_HAL_DIAG_DISABLE_GDB_PROTOCOL):
1471 New option which [explicitly] controls use of GDB protocol
1474 1999-11-03 Jesper Skov <jskov@cygnus.co.uk>
1476 * cdl/hal.cdl: More crud out + mn10300 fixes.
1478 1999-11-02 Jesper Skov <jskov@cygnus.co.uk>
1480 * cdl/hal.cdl: Cleaned out some of the CPU config entries.
1482 1999-10-29 Gary Thomas <gthomas@cygnus.co.uk>
1484 * tests/PKGconf.mak: Add cache tests for Cirrus Logic boards.
1486 1999-10-29 Jesper Skov <jskov@cygnus.co.uk>
1488 * tests/cache.c: Made safe for targets with no cache.
1490 * tests/PKGconf.mak: Don't build cache test for ARM unless
1493 1999-10-28 Jesper Skov <jskov@cygnus.co.uk>
1495 * tests/cache.c: Fix array size.
1497 1999-10-27 Gary Thomas <gthomas@cygnus.co.uk>
1499 * src/hal_stub.c: Fix typo (CYGDAT_CYGMON_ENABLE). Also need
1500 to include <pkgconf/cygmon.h>
1502 1999-10-27 Gary Thomas <gthomas@cygnus.co.uk>
1504 * src/hal_stub.c: Add explicit enable for CygMon package.
1506 1999-10-27 Hugo Tyson <hmt@cygnus.co.uk>
1508 * src/hal_stub.c (cyg_hal_gdb_interrupt): Bugfix to previous: ^Cs
1509 were being ignored when received by the diag output code, because
1510 there was already a break in place. Solution is to let
1511 cyg_hal_gdb_interrupt() override any previous break, and tidy up
1514 1999-10-26 Hugo Tyson <hmt@cygnus.co.uk>
1516 * include/hal_stub.h (CYG_HAL_GDB_ENTER_CRITICAL_IO_REGION): Place
1517 the break at the address of a label within the calling context
1518 [normally hal_diag_write_char()]; this is neater and more
1519 portable; it's supported for more targets. Also use
1520 cyg_hal_place_break() to place it, define that, &c.
1522 * src/hal_stub.c (cyg_hal_gdb_place_break): New routine to
1523 specially handle the inline breakpoint. It basically does the
1524 same as cyg_hal_gdb_interrupt(), except on some platforms where
1525 you must do different things to set a bp from a non-interrupt
1528 1999-10-25 Gary Thomas <gthomas@cygnus.co.uk>
1530 * src/hal_stub.c (putDebugChar, getDebugChar): When building with
1531 CygMon, these functions are defined by CygMon.
1533 1999-10-26 John Dallaway <jld@cygnus.co.uk>
1537 Modify custom make rule to specify file paths relative
1538 to the package version directory.
1540 1999-10-22 Hugo Tyson <hmt@cygnus.co.uk>
1542 * include/hal_stub.h (CYG_HAL_GDB_ENTER_CRITICAL_IO_REGION):
1543 (CYG_HAL_GDB_LEAVE_CRITICAL_IO_REGION): new macros to be invoked
1544 in hal_diag routines to make atomic the code that outputs a
1545 complete GDB $O packet. This is required so that watching
1546 variables (which is implemented by stepping) and stepping itself
1547 does not try to ss through that $O output code. CASE 102327.
1549 * src/hal_stub.c (cyg_hal_gdb_break_is_set): new routine to query
1550 whether a break is set: used by step in the stubs to decide to
1551 continue instead, because we are in a critical region.
1552 (cyg_hal_gdb_running_step): communication between generic stub and
1553 here: if set, a step has been converted into a continue, so we do
1554 NOT obey cyg_hal_gdb_remove_break until it is cleared, in
1555 handle_exception_cleanup().
1557 * src/generic-stub.c (__process_packet): If there is a break set
1558 by the hal_stub.c, convert a step to continue, and set
1559 cyg_hal_gdb_running_step to say we did so.
1561 1999-10-22 Jesper Skov <jskov@cygnus.co.uk>
1563 * src/generic-stub.c (__handle_exception): Flush and clear caches
1564 after cleaning up after single-stepping.
1566 (memcpy, memset): Added to prevent stub hanging if user puts
1567 breakpoints in either function.
1569 1999-10-19 Nick Garnett <nickg@cygnus.co.uk>
1571 * include/pkgconf/hal.h: Added monitor configury for Brother
1574 1999-10-10 Gary Thomas <gthomas@cygnus.co.uk>
1576 * src/thread-packets.c (stub_pkt_currthread): Fix typo in comment.
1578 * src/generic-stub.c: Reorg to expose register get/set functions.
1580 1999-10-08 Simon Fitzmaurice <sdf@cygnus.co.uk>
1581 * cdl\interrupts.cdl: Quoted '[' and ']' (significant in TCL and thus CDL)
1583 1999-10-08 Jesper Skov <jskov@cygnus.co.uk>
1585 * cdl/interrupts.cdl: Added
1586 CYGIMP_HAL_COMMON_INTERRUPTS_IGNORE_SPURIOUS.
1588 1999-09-22 Simon FitzMaurice <sdf@cygnus.co.uk>
1590 * cdl\hal.cdl : add priority field to "extras.o" rule
1592 1999-09-21 Gary Thomas <gthomas@cygnus.co.uk>
1594 * src/thread-packets.c: Fix some typos in comments.
1596 1999-09-15 Jesper Skov <jskov@cygnus.co.uk>
1598 * src/hal_stub.c: Override generic GDB interrupt functions for
1599 ARM. Need them to be thumb aware.
1601 1999-09-13 Gary Thomas <gthomas@cygnus.co.uk>
1603 * include/pkgconf/hal.h: Add new config option to allow spurious
1604 interrupts to be ignored by the HAL.
1606 * src/generic-stub.c (__process_packet): Build in version string
1607 (date/time) for stubs in ROM to be returned via 'd' packet.
1609 1999-09-09 Jonathan Larmour <jlarmour@cygnus.co.uk>
1611 * include/pkgconf/hal.h (CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS): Rename
1612 CYGPKG_HAL_MN10300_SIM to CYGPKG_HAL_MN10300_AM31_SIM
1614 1999-09-07 Nick Garnett <nickg@cygnus.co.uk>
1616 * src/dbg-threads-syscall.c (dbg_currthread_id): Fixed to return
1617 zero if dbg_currthread() returns false. Previously it could have
1618 returned a random value which would have made GDB think there had
1619 been a thread switch when there hadn't. It was particularly prone
1620 to do this in configurations where the kernel was absent.
1622 1999-09-01 Gary Thomas <gthomas@cygnus.co.uk>
1624 * include/pkgconf/hal.h: Always include target and platform package
1625 include (pkgconf) files.
1627 1999-08-26 Jonathan Larmour <jlarmour@cygnus.co.uk>
1629 * src/generic-stub.c (__hex2mem_helper):
1630 Use target_register_t when casting to address type, rather than long
1631 Since the compiler can choose arbitrary alignment of unions, force
1632 to use byte array only
1633 Restore use of loop termination test for *hexMemSrc, just in case
1634 since that's how it used to be
1635 Increment destination, not source at end of loop
1638 Use target_register_t when casting to address type, rather than long.
1639 Since the compiler can choose arbitrary alignment of unions, force
1640 to use byte array only. Therefore use single __read_mem_safe() call
1642 * src/hal_stub.c (__do_copy_mem): Reassign back from dst/src at start
1643 of each "if" clause in case we go round the loop again.
1645 1999-08-24 Gary Thomas <gthomas@cygnus.co.uk>
1647 * src/hal_stub.c (__do_copy_mem): Move temp variables to top of
1648 function - potentially safer if there is an error.
1650 1999-08-23 Jonathan Larmour <jlarmour@cygnus.co.uk>
1652 * src/generic-stub.c (__process_packet): For 'g' and 'G' packets,
1653 when the register size differs from sizeof(target_register_t) we must
1654 adjust according to the endianness
1656 * include/hal_stub.h: Ensure __LITTLE_ENDIAN__ is defined on
1657 little-endian targets
1659 * src/hal_stub.c (__build_t_packet): Use the correct register sizes
1660 for PC and SP rather than assuming they are the same as target_register_t
1662 1999-08-23 Gary Thomas <gthomas@cygnus.co.uk>
1664 * include/generic-stub.h: Change prototypes for internal functions.
1666 * src/hal_stub.c (__do_copy_mem):
1667 * src/generic-stub.c (__mem2hex_helper): Rework to perform aligned,
1668 multi-byte operations when conditions allow. This should handle
1669 most "hardware register" access cases. Note: there currently is
1670 no good way to force GDB to require/use such accesses.
1672 1999-08-17 Jonathan Larmour <jlarmour@cygnus.co.uk>
1674 * tests/intr.c (cyg_start): Use CYG_TEST_NA rather than a pass saying
1677 1999-08-16 Jonathan Larmour <jlarmour@cygnus.co.uk>
1679 * include/pkgconf/hal.h: Rename CYG_HAL_MN10300_AM32_STDEVAL1 to
1680 CYG_HAL_MN10300_AM31_STDEVAL1
1682 1999-08-13 Nick Garnett <nickg@cygnus.co.uk>
1684 * src/hal_stub.c: Removed superfluous trace() extern.
1686 1999-08-12 Nick Garnett <nickg@cygnus.co.uk>
1688 Imported following changes from AM33 branch:
1690 1999-07-27 Nick Garnett <nickg@cygnus.co.uk>
1692 * src/hal_stub.c: Added support for 1 byte breakpoints.
1693 Removed invalidates for cache flushes - I am not entirely sure why
1694 we have these here, since HAL_DCACHE_SYNC() should do what we
1695 need, and these invalidates are causing a problem on the MIPS and
1698 * include/pkgconf/hal.h: Added Monitor selection for AM33.
1700 1999-06-29 Nick Garnett <nickg@cygnus.co.uk>
1702 * include/pkgconf/hal.h: Modified to match new MN10300 HAL
1705 1999-08-06 Jesper Skov <jskov@cygnus.co.uk>
1707 * src/generic-stub.c (__process_packet): FLush and clear caches
1708 after call to __single_step.
1710 1999-07-05 Jesper Skov <jskov@cygnus.co.uk>
1712 * tests/intr.c: Don't use kernel's RTC definitions.
1714 1999-07-02 Jesper Skov <jskov@cygnus.co.uk>
1716 * tests/cache.c: Print stride values, preventing timeout on slow
1719 1999-06-28 Jesper Skov <jskov@cygnus.co.uk>
1721 * include/pkgconf/hal.h (CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT):
1724 1999-06-24 Jonathan Larmour <jlarmour@cygnus.co.uk>
1726 * include/pkgconf/hal.h: Clarify descriptions of
1727 CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT and
1728 CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT.
1730 1999-06-17 Nick Garnett <nickg@cygnus.co.uk>
1732 * include/pkgconf/hal.h: Added CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
1733 to enable inclusion of ^C interrupt handler. Added CDL to control
1736 1999-06-10 Hugo Tyson <hmt@cygnus.co.uk>
1738 * include/pkgconf/hal.h: Add support for the PowerPC target MBX860
1739 platform, CYG_HAL_POWERPC_MBX.
1741 1999-06-10 Gary Thomas <gthomas@cygnus.co.uk>
1743 * src/hal_stub.c: Need to init register pointer.
1745 1999-06-08 Jesper Skov <jskov@cygnus.co.uk>
1747 * include/pkgconf/hal.h: Added CYG_HAL_ROM_MONITOR for EDK7708.
1749 1999-05-31 Jesper Skov <jskov@cygnus.co.uk>
1751 * src/hal_stub.c: Respect HAL_BREAKINST_SIZE setting.
1753 1999-05-28 Jesper Skov <jskov@cygnus.co.uk>
1755 * include/pkgconf/hal.h: Renamed SH platform package to edk7708.
1757 1999-05-28 Nick Garnett <nickg@cygnus.co.uk>
1759 * src/hal_stub.c (initHardware): Added call to
1760 HAL_STUB_PLATFORM_INIT if it is defined.
1762 * include/pkgconf/hal.h: Added a #undef for CYG_HAL_ROM_MONITOR,
1763 largely so that a stubrom permutation can define it.
1765 1999-05-27 Nick Garnett <nickg@cygnus.co.uk>
1767 * src/hal_stub.c: Do not call HAL_ICACHE_INVALIDATE_ALL() and
1768 HAL_DCACHE_INVALIDATE_ALL() in __instruction_cache() and
1769 __data_cache() for MIPS targets. These macros are simply
1772 1999-05-27 Jesper Skov <jskov@cygnus.co.uk>
1774 * tests/cache.c: Added handling of unified caches.
1776 1999-05-25 Jonathan Larmour <jlarmour@cygnus.co.uk>
1778 * tests/cache.c: Use HAL_DCACHE_SYNC if available
1780 1999-05-24 Jesper Skov <jskov@cygnus.co.uk>
1782 * include/pkgconf/hal.h: Added CPU specifier for EDK board.
1784 1999-05-21 Jesper Skov <jskov@cygnus.co.uk>
1786 * src/hal_stub.c (__install_traps): Set exit vector to __reset.
1788 1999-05-21 Nick Garnett <nickg@cygnus.co.uk>
1790 * include/pkgconf/hal.h: Switched VR4300 over to using GDB STUBS
1793 1999-05-21 Jesper Skov <jskov@cygnus.co.uk>
1795 * tests/intr.c: Get RTC values from CYGBLD_HAL_PLATFORM_H.
1796 Ensure there are fallback definitions.
1798 * src/hal_stub.c (handle_exception_cleanup): Added optional call
1799 of HAL_STUB_PLATFORM_STUBS_FIXUP macro.
1801 1999-05-18 Jesper Skov <jskov@cygnus.co.uk>
1803 * src/hal_stub.c (hal_output_gdb_string): Added missing ;
1805 1999-05-13 Nick Garnett <nickg@cygnus.co.uk>
1807 The following changes were all made on a branch and imported into
1808 the main trunk later.
1810 1999-05-11 Nick Garnett <nickg@cygnus.co.uk>
1812 * include/pkgconf/hal.h:
1813 tidied up all MIPS targets to include CYGBLD_HAL_TARGET_H. This
1814 will eventually apply to all configurations.
1816 1999-05-06 Nick Garnett <nickg@cygnus.co.uk>
1818 * src/PKGconf.mak (COMPILE): Added dbg-threads-syscall.c.
1820 * include/dbg-thread-syscall.h:
1821 * src/dbg-threads-syscall.c:
1822 Files added to enable support for thread-awareness in GDB stub
1823 ROMs. The .h file has been moved from kernel/src/debug.
1825 1999-04-28 Nick Garnett <nickg@cygnus.co.uk>
1827 * src/hal_stub.c (__build_t_packet): Changed sp variable to a
1828 non-pointer type to force it to be installed in the T packet with
1831 * src/drv_api.c: Added cyg_interrupt_call_pending_DSRs() to keep
1832 HAL happy in non-kernel configurations.
1834 1999-04-21 Nick Garnett <nickg@cygnus.co.uk>
1836 * include/pkgconf/hal.h:
1837 Added VR4300 configury for ROM monitor use and inclusion of
1838 variant-specific configuration header. This needs some further
1841 1999-04-28 Bart Veer <bartv@cygnus.co.uk>
1844 Use the new rules for generating libextras.a
1846 1999-04-27 Jesper Skov <jskov@cygnus.co.uk>
1848 * include/pkgconf/hal.h: GDB_BREAK support now available for ARM
1851 1999-04-16 Bart Veer <bartv@cygnus.co.uk>
1855 New file that can always be added to libextras.a without
1856 affecting image sizes.
1858 1999-04-14 Jonathan Larmour <jlarmour@cygnus.co.uk>
1860 * include/hal_stub.h:
1861 Make sure all functions have C linkage even in C++
1863 1999-04-14 Jesper Skov <jskov@cygnus.co.uk>
1865 * src/generic-stub.c (__process_packet): Reset _register pointer
1866 to the exception state before attempting to set up single-step
1869 1999-04-14 Jesper Skov <jskov@cygnus.co.uk>
1871 * include/hal_stub.h: Added declaration for __stub_copy_registers.
1873 1999-04-14 Jesper Skov <jskov@cygnus.co.uk>
1875 * src/hal_stub.c: Use HAL_xCACHE_IS_ENABLED if defined.
1877 1999-04-09 Jesper Skov <jskov@cygnus.co.uk>
1880 Moved get_register and put_register here. Made them access the
1881 currently selected register set.
1883 1999-03-22 Jonathan Larmour <jlarmour@cygnus.co.uk>
1885 * include/dbg-threads-api.h: Update copyright
1887 * src/generic-stub.c: Change Cygnus Support->Cygnus Solutions
1889 * src/thread-packets.c: Update copyright
1891 * src/thread-pkts.h: Update copyright
1893 1999-03-19 Nick Garnett <nickg@cygnus.co.uk>
1895 * tests/cache.c: Added interrupt disable and enable to cache state
1896 change blocks, in line with similar changes to kcache1.
1898 1999-03-17 Jesper Skov <jskov@cygnus.co.uk>
1900 * src/hal_stub.c (hal_output_gdb_string): Use disable/restore
1901 macros to make sure it works even when interruptible() is a NOP
1904 1999-03-10 Nick Garnett <nickg@cygnus.co.uk>
1906 * include/pkgconf/hal.h:
1907 Changed include of hal_tx39_jmr3904.h to hal_tx39.h.
1909 1999-03-05 Nick Garnett <nickg@cygnus.co.uk>
1911 * include/drv_api.h:
1913 Fixed some typos in non-kernel configuration support.
1915 1999-03-04 Jesper Skov <jskov@cygnus.co.uk>
1917 * include/pkgconf/hal.h: Exclude GDB stubs on sparc.
1919 1999-02-26 Jesper Skov <jskov@cygnus.co.uk>
1921 * src/generic-stub.c:
1922 * include/generic-stub.h:
1923 Added binary download patches from libstub.
1925 1999-02-25 Nick Garnett <nickg@cygnus.co.uk>
1927 * include/drv_api.h:
1929 Added these files to define driver API.
1931 1999-02-23 Nick Garnett <nickg@cygnus.co.uk>
1933 * include/pkgconf/hal.h:
1934 Added include of <pkgconf/hal_tx39_jmr3904.h> to get TX39 speed
1935 configuration options.
1937 1999-02-20 Jonathan Larmour <jlarmour@cygnus.co.uk>
1940 Rename CYGNUM_VECTOR_RTC -> CYGNUM_HAL_INTERRUPT_RTC in line with
1943 1999-02-17 Jesper Skov <jskov@cygnus.co.uk>
1946 * src/generic-stub.c (__handle_exception):
1947 Only include cyg_hal_gdb_break magic when stub is configured to
1948 handle GDB BREAK signals.
1950 1999-02-17 Jesper Skov <jskov@cygnus.co.uk>
1952 * src/generic-stub.c (__handle_exception): Moved special signal
1953 handling here to avoid duplication for all architectures.
1955 1999-02-16 Jesper Skov <jskov@cygnus.co.uk>
1957 * src/stubrom/stubrom.c: Changed set_debug_traps to initialize_stub.
1959 * include/hal_stub.h: [added]
1960 * include/generic-stub.h:
1961 * src/hal_stub.c: [added]
1962 * src/board.h: [added]
1963 * src/thread-pkts.h:
1964 * src/thread-packets.c:
1965 * src/generic-stub.c:
1967 Merged in latest libstub changes. Moved most eCos specific changes
1968 into hal_stub.[ch], reducing effort required for further
1969 merging/integration.
1971 1999-02-05 Jesper Skov <jskov@cygnus.co.uk>
1973 * include/pkgconf/hal.h: Cleaned up the MPC8xx configuration.
1975 1999-01-29 Jesper Skov <jskov@cygnus.co.uk>
1977 * include/pkgconf/hal.h: Added simple MPC8xx configuration.
1979 1999-01-26 Hugo Tyson <hmt@cygnus.co.uk>
1981 * tests/cache.c (time0): Waste much less time if running in a
1982 simulator. Do only 40 loops instead of 4000.
1983 In consequence the nasty meddling with MAX_STRIDE depending on
1984 HAL_xxx_SIM package definitions can go.
1986 1999-01-22 Jesper Skov <jskov@cygnus.co.uk>
1988 * include/pkgconf/hal.h: Renamed CYG_HAL_POWERPC_FADS to
1989 CYGPKG_HAL_POWERPC_FADS.
1991 1999-01-21 Jonathan Larmour <jlarmour@cygnus.co.uk>
1993 * include/pkgconf/hal.h:
1994 Tidy up and update description
1995 Add new CYGSEM_HAL_STOP_CONSTRUCTORS_ON_FLAG option to allow default
1996 priority static constructors to be deferred
1997 Remove all traces of non-CYG_KERNEL_USE_INIT_PRIORITY code
1999 1999-01-21 Jesper Skov <jskov@cygnus.co.uk>
2000 Merge with FADS branch.
2002 1998-12-17 Jesper Skov <jskov@cygnus.co.uk>
2004 * include/pkgconf/hal.h: Don't allow GDB BREAK support on FADS.
2005 Define _MPC860, not _MP860.
2007 1998-12-17 Jesper Skov <jskov@cygnus.co.uk>
2009 * include/pkgconf/hal.h:
2010 Added FADS entry from Kevin Hester <KHester@opticworks.com>.
2012 1999-01-19 Hugo Tyson <hmt@cygnus.co.uk>
2014 * include/pkgconf/hal.h:
2015 Add CYG_KERNEL_USE_INIT_PRIORITY for SPARCLITE.
2017 1999-01-18 Jesper Skov <jskov@cygnus.co.uk>
2019 * include/pkgconf/hal.h: Don't allow GDB stubs to be configured
2022 1999-01-18 Jesper Skov <jskov@cygnus.co.uk>
2024 * include/pkgconf/hal.h: GDB_BREAK support not available for ARM
2027 1999-01-14 Gary Thomas <gthomas@cygnus.co.uk>
2029 * src/stubrom/PKGconf.mak: Rename 'TESTS' to 'PROGS' due to
2030 changes in 'makrules.prv'.
2032 1999-01-14 Jesper Skov <jskov@cygnus.co.uk>
2034 * src/stubrom/stubrom.c (cyg_start): Fix compiler warning.
2036 * include/dbg-threads-api.h: Include cyg_type.h to get externC
2039 1999-01-14 Nick Garnett <nickg@cygnus.co.uk>
2041 * include/dbg-threads-api.h: Added prototype for dbg_scheduler().
2043 1999-01-13 Gary Thomas <gthomas@cygnus.co.uk>
2045 * src/generic-stub.c (__output_hex_value): Change buffer size
2046 [2048 was rather large] and make stack based. Also don't
2047 allow for string to exceed buffer.
2049 1999-01-13 Jesper Skov <jskov@cygnus.co.uk>
2051 * src/generic-stub.c (strcpy): Terminate copied string.
2053 1999-01-11 Jesper Skov <jskov@cygnus.co.uk>
2055 * tests/intr.c (CYGNUM_KERNEL_COUNTERS_RTC_PERIOD): Added RTC data
2058 Wed Dec 9 14:07:30 GMT 1998 Chris Provenzano <proven@cygnus.com>
2060 * include/pkgconf/hal.h: Compile the i386 linux target with
2061 CYG_KERNEL_USE_INIT_PRIORITY defined.
2063 1999-01-04 Jesper Skov <jskov@cygnus.co.uk>
2065 * src/generic-stub.c (interruptible): Cleaned up a bit.
2067 1999-01-04 Jesper Skov <jskov@cygnus.co.uk>
2070 * tests/cache.c: Purge data cache before invalidating it.
2072 1998-12-09 Gary Thomas <gthomas@cygnus.co.uk>
2074 * src/generic-stub.c: Better handling of errors while stubs
2075 are accessing memory on behalf of GDB. Requires support for
2076 GCC 'computed goto label' in top-level exception handler.
2078 1998-12-09 Jesper Skov <jskov@cygnus.co.uk>
2080 * include/pkgconf/hal.h: Removed the
2081 CYGARC_HAL_COMMON_EXPORT_CPU_MACROS option. Causing failures in
2084 1998-12-07 Jesper Skov <jskov@cygnus.co.uk>
2086 * src/generic-stub.c (process_exception): Send an acknowledge char
2087 on first entry so GDB doesn't timeout before resending its initial
2090 1998-11-26 Jesper Skov <jskov@cygnus.co.uk>
2092 * include/pkgconf/hal.h: Added
2093 CYGARC_HAL_COMMON_EXPORT_CPU_MACROS.
2095 1998-11-23 Jesper Skov <jskov@cygnus.co.uk>
2097 * tests/cache.c: Only run with stride 1 on SIMs.
2099 1998-11-23 Jesper Skov <jskov@cygnus.co.uk>
2101 * include/pkgconf/hal.h: Define SIM as a 603 CPU.
2103 1998-11-19 Jesper Skov <jskov@cygnus.co.uk>
2106 Make the test do nothing if kernel real-time clock is enabled.
2107 Added different timer constants for PPC SIM and HW.
2109 1998-11-17 Jesper Skov <jskov@cygnus.co.uk>
2112 * include/pkgconf/hal.h:
2113 Renamed CYG_HAL_POWERPC_MP860 to CYG_HAL_POWERPC_MPC860.
2115 1998-11-04 Jesper Skov <jskov@cygnus.co.uk>
2117 * include/pkgconf/hal.h: Made CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT a
2118 sub-option of CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS.
2120 1998-11-16 Jesper Skov <jskov@cygnus.co.uk>
2122 * include/pkgconf/hal.h: Allow GDB stubs to be configured for
2123 MN10300 HW. Allow GDB_BREAK for all but tx39.
2125 1998-11-04 Jesper Skov <jskov@cygnus.co.uk>
2127 * include/pkgconf/hal.h: Made CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT a
2128 sub-option of CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS.
2130 1998-11-04 Jesper Skov <jskov@cygnus.co.uk>
2132 * src/generic-stub.c (process_packet): Flush D cache before
2133 invalidating I cache.
2135 1998-11-02 Jesper Skov <jskov@cygnus.co.uk>
2137 * src/generic-stub.c (__handle_exception): Check for breakpoints
2138 set by GDB interrupt handler.
2140 1998-10-25 Jesper Skov <jskov@cygnus.co.uk>
2142 * src/thread-packets.c: Fixed closing #endif comment.
2144 * src/generic-stub.c: Fixed closing #endif comment.
2146 1998-10-23 Jesper Skov <jskov@cygnus.co.uk>
2148 * src/hal_common.c: Removed. We can't use weak default functions
2149 when they may conflict with strong functions in the library.
2151 1998-10-23 Jesper Skov <jskov@cygnus.co.uk>
2153 * include/generic-stub.h: Added __interruptible_control.
2155 1998-10-23 Jesper Skov <jskov@cygnus.co.uk>
2158 * include/pkgconf/hal.h: Let HAL exception support require Kernel
2161 1998-10-21 Jesper Skov <jskov@cygnus.co.uk>
2164 * include/pkgconf/hal.h: Let HAL GDB thread support require Kernel
2167 1998-10-20 Jesper Skov <jskov@lassi.cygnus.co.uk>
2170 * src/hal_common.c: Added. Includes a weak handle_exception
2173 1998-10-20 Jesper Skov <jskov@cygnus.co.uk>
2174 PR 17885, 17880, 17841
2176 * include/pkgconf/hal.h: Don't allow GDB stubs to be configured
2177 for SIMs or MN10300.
2179 1998-10-19 Jesper Skov <jskov@lassi.cygnus.co.uk>
2181 * src/thread-packets.c: Sync'd with libstub source.
2183 1998-10-16 Bart Veer <bartv@cygnus.co.uk>
2185 * include/pkgconf/hal.h (CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE):
2186 Added new configuration option for interrupt stack size.
2188 Thu Oct 15 21:25:55 1998 Jonathan Larmour <jlarmour@cygnus.co.uk>
2190 * include/pkgconf/hal.h:
2191 Make CYGFUN_HAL_COMMON_KERNEL_SUPPORT require the kernel, as it
2192 is enabling this is eCos-kernel specific, and relies on
2193 configuration options defined only in the kernel
2194 Required for PR 17229
2196 1998-10-15 Jesper Skov <jskov@cygnus.co.uk>
2198 * include/pkgconf/hal.h (CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT):
2199 Added config option.
2201 1998-10-14 Nick Garnett <nickg@cygnus.co.uk>
2203 * include/pkgconf/hal.h:
2204 Move some configury from kernel.h to here. Particularly the
2205 support for GDB stubs.
2210 * tests/PKGconf.mak:
2211 New directory of HAL-only test programs. Currently contains some
2212 very basic test programs.
2214 * include/generic-stub.h:
2215 * include/dbg-threads-api.h:
2216 * src/generic-stub.c:
2217 * src/thread-packets.c:
2218 * src/thread-pkts.h:
2219 * src/stubrom/PKGconf.mak:
2220 * src/stubrom/stubrom.c:
2221 Moved these files here from kernel.
2223 1998-10-08 Gary Thomas <gthomas@penang.cygnus.co.uk>
2225 * include/pkgconf/hal.h:
2226 Add support for new architecture.
2228 1998-09-23 Nick Garnett <nickg@cygnus.co.uk>
2230 * include/pkgconf/hal.h:
2231 Switched TX39 over to using CYGMON from GDB stubs.
2233 Tue Sep 15 19:13:04 1998 David Moore <dsm@keema.cygnus.co.uk>
2235 * include/pkgconf/hal.h: Cleaned up comments.
2237 Mon Sep 14 11:08:26 1998 Jesper Skov <jskov@lassi.cygnus.co.uk>
2240 * include/pkgconf/hal.h: Added IMP_HAL_COMMON_INTERRUPTS_CHAIN
2243 1998-09-14 Bart Veer <bartv@cygnus.co.uk>
2245 * include/pkgconf/hal.h:
2246 Fixed typo in description.
2248 1998-09-12 Bart Veer <bartv@cygnus.co.uk>
2250 * include/pkgconf/hal.h:
2251 Sort out exception handling options (PR 16953)
2252 Added missing descriptions (PR 17184)
2254 Tue Sep 8 17:16:39 1998 Hugo Tyson <hmt@cygnus.co.uk>
2256 * include/pkgconf/hal.h:
2257 Elide some spurious redefines of CYG_HAL_MN10300_STDEVAL1 and
2258 CYG_HAL_MN10300_SIM within ifdefs conditioned on same.
2260 1998-09-03 Bart Veer <bartv@cygnus.co.uk>
2262 * include/pkgconf/hal.h:
2263 CYGPKG_HAL_COMMON is now a component, not a package.
2265 1998-09-02 Bart Veer <bartv@cygnus.co.uk>
2267 * include/pkgconf/hal.h:
2268 Moved target and platform specific configuration data to
2269 the appropriate packages.
2271 Symbols identifying the target hardware should be just defined,
2272 not given a value, as per the coding standards.
2274 Mon Aug 31 09:16:08 1998 Jesper Skov <jskov@cygnus.co.uk>
2276 * include/pkgconf/hal.h: Added INIT_PRIORITY default setting for
2279 1998-08-28 Bart Veer <bartv@cygnus.co.uk>
2281 * include/pkgconf/hal.h:
2282 Added configuration data.
2284 1998-08-20 Nick Garnett <nickg@cygnus.co.uk>
2286 * include/pkgconf/hal.h:
2287 Moved definition of CYG_KERNEL_USE_INIT_PRIORITY here from
2290 1998-08-18 Nick Garnett <nickg@cygnus.co.uk>
2292 * include/pkgconf/hal.h:
2293 Created this file to contain HAL config options.
2295 //===========================================================================
2296 //####ECOSGPLCOPYRIGHTBEGIN####
2297 // -------------------------------------------
2298 // This file is part of eCos, the Embedded Configurable Operating System.
2299 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
2300 // Copyright (C) 2003 Jonathan Larmour
2302 // eCos is free software; you can redistribute it and/or modify it under
2303 // the terms of the GNU General Public License as published by the Free
2304 // Software Foundation; either version 2 or (at your option) any later version.
2306 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
2307 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
2308 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2309 // for more details.
2311 // You should have received a copy of the GNU General Public License along
2312 // with eCos; if not, write to the Free Software Foundation, Inc.,
2313 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
2315 // As a special exception, if other files instantiate templates or use macros
2316 // or inline functions from this file, or you compile this file and link it
2317 // with other works to produce a work based on this file, this file does not
2318 // by itself cause the resulting work to be covered by the GNU General Public
2319 // License. However the source code for this file must still be made available
2320 // in accordance with section (3) of the GNU General Public License.
2322 // This exception does not invalidate any other reasons why a work based on
2323 // this file might be covered by the GNU General Public License.
2325 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
2326 // at http://sources.redhat.com/ecos/ecos-license/
2327 // -------------------------------------------
2328 //####ECOSGPLCOPYRIGHTEND####
2329 //===========================================================================