aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aic7xxx/aicasm
Commit message (Collapse)AuthorAgeFilesLines
* aic7xxx: aicasm correct include fileHP van Braam2024-05-041-2/+5
| | | | | | | | | | | | | aicasm just puts the value of the "-i" passed include file in the generated file with quotes around it. This means that there are manual edits made to aic7xxx_reg_print.c and aic79xx_reg_print.c now we check to see if the value passed to '-i' starts with a '<', if it does don't output the quotes. Signed-off-by: HP van Braam <hp@tmm.cx> Reviewed by: imp (minor code simplification) Pull Request: https://github.com/freebsd/freebsd-src/pull/1209
* sys: Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-169-18/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* aic7xxx: Fix a few typos in comments and an error messageGordon Bergling2022-06-041-4/+4
| | | | | | | | | | - s/directrive/directive/ - s/specifiled/specified/ - s/Decend/Descend/ - s/tranversal/transversal/ Obtained from: NetBSD MFC after: 3 days
* aic7xxx: Fix re-building firmware with -fno-commonJessica Clarke2021-05-282-2/+2
| | | | | | | | | | | | | | | | | The generated C output for aicasm_scan.l defines yylineno already, so references to it from other files should use an extern declaration. The STAILQ_HEAD use in aicasm_symbol.h also provided an identifier, causing it to both define the struct type and define a variable of that struct type, causing any C file including the header to define the same variable. This variable is not used (and confusingly clashes with a field name just below) and was likely caused by confusion when switching between defining fields using similar type macros and defining the type itself. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30525
* aic7xxx: clean up empty lines in .c and .h filesMateusz Guzik2020-09-012-14/+4
| | | | Notes: svn path=/head/; revision=365105
* Remove unneeded dependency on liblBaptiste Daroussin2020-03-231-1/+0
| | | | Notes: svn path=/head/; revision=359240
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-279-0/+18
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* aic7xxx: minor spelling fixes.Pedro F. Giffuni2016-05-102-4/+4
| | | | | | | | | Affects mostly comments but also a visible text string, Differential Revision: https://reviews.freebsd.org/D6270 Notes: svn path=/head/; revision=299375
* Fix LDADD/DPADD that should be LIBADD.Bryan Drewery2015-12-041-2/+1
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291738
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadWarner Losh2014-04-131-1/+1
| | | | | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. Notes: svn path=/head/; revision=264400
* Don't complain about missing prototypes to ease bootstrap issues.Warner Losh2014-02-271-0/+1
| | | | Notes: svn path=/head/; revision=262549
* Rework the aicasm build machinery so that it gets built along with toolchainIan Lepore2013-11-041-2/+6
| | | | | | | | | | | | | components instead of with the kernel and/or modules. This ensures that it gets built with the host compiler, not the compiler in obj/... used to build the target components (which may be a cross-compiler outputting code for a different architecture and using header files with types and options set up for the wrong architecture). Reviewed by: imp Notes: svn path=/head/; revision=257637
* remove redundant yyparse declarationsBaptiste Daroussin2012-12-051-1/+0
| | | | | | | | PR: conf/174079 Submitted by: Garrett Cooper <yanegomi@gmail.com> Notes: svn path=/head/; revision=243906
* Fix a bug in aicasm_gram.y, noted by a newer clang 3.2 snapshot: itDimitry Andric2012-11-141-1/+1
| | | | | | | | | | compared an enum scope_type against a yacc-generated define, so the condition would always be false. MFC after: 3 days Notes: svn path=/head/; revision=243037
* Fix build of aicasm when CC=clang. This was due to a side-effect of theDimitry Andric2012-06-041-2/+1
| | | | | | | | | | | | | EARLY_BUILD macro: the -Qunused-arguments flag isn't passed anymore when building this particular program. However, with clang 3.1 and -Werror, such unused argument warnings are flagged as errors, causing buildkernel to fail at this stage, due to the -nostdinc flag passed during linking. Since the -nostdinc flag isn't actually needed, just remove it. X-MFC-With: r236528 Notes: svn path=/head/; revision=236578
* Make aicasm compile without warnings if -Wpointer-sign is enabled.Dimitry Andric2012-06-041-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=236571
* Follow non-BSD case when GNU/Hurd is detected.Robert Millan2012-03-251-1/+1
| | | | Notes: svn path=/head/; revision=233479
* Add "%option noinput" to aicasm_scan.l and aicasm_macro_scan.l, so noDimitry Andric2011-12-162-0/+4
| | | | | | | | | | unneeded input functions will be emitted. Spotted by: arundel MFC after: 1 week Notes: svn path=/head/; revision=228556
* Improve portability #defines for compiling aicasm on other systems.Ed Maste2011-07-158-31/+5
| | | | | | | | Submitted by: Robert Millan rmh debian.org Obtained from: Debian GNU/kFreeBSD Notes: svn path=/head/; revision=224046
* Remove support for the Intel C Compiler from the build infrastructure.Dimitry Andric2011-04-191-5/+0
| | | | | | | | | This support has not worked for several years, and is not likely to work again, unless Intel decides to release a native FreeBSD version of their compiler. ;) Notes: svn path=/head/; revision=220863
* Revert r213765. This is required because our build infrastructure usesRui Paulo2010-10-142-2/+0
| | | | | | | | the host lex instead of the lex built during buildworld. I will MFC the lex changes soon and in a few weeks this I'll commit again r213765. Notes: svn path=/head/; revision=213845
* Define YY_NO_INPUT. This makes aicasm buildable by clang with WerrorRui Paulo2010-10-132-0/+2
| | | | | | | turned on. Notes: svn path=/head/; revision=213765
* For every instance of '.if ${CC} == "foo"' or '.if ${CC} != "foo"' inRui Paulo2010-08-171-1/+1
| | | | | | | | | | | | | | | | Makefiles or *.mk files, use ${CC:T:Mfoo} instead, so only the basename of the compiler command (excluding any arguments) is considered. This allows you to use, for example, CC="/nondefault/path/clang -xxx", and still have the various tests in bsd.*.mk identify your compiler as clang correctly. ICC if cases were also changed. Submitted by: Dimitry Andric <dimitry at andric.com> Notes: svn path=/head/; revision=211437
* Correct logic bug in aicasm's undefined register bit access detection code.Justin T. Gibbs2010-07-141-5/+10
| | | | | | | | | | | | | | | | | | | The code in question verifies that all register write operations only change bits that are defined (in the register definition file) for that effected register. The bug effectively disabled this checking. o Fix the check by testing the opcode against all supported read ("and" based) operands. o Add missing bit definitions to the aic7xxx and aic79xx register definition files so that the warning (treated as a fatal error) does not spuriously fire. Reported by: Pawel Worach <pawel.worach@gmail.com> MFC after: 1 week Notes: svn path=/head/; revision=210055
* Disable K&R style function definitions for WARNS=6.Ed Schouten2009-12-311-1/+1
| | | | | | | | | | | | | | | | | Unfortunately there are two slight problems with that: - Yacc and lex might generate code that generates warnings because of this. Require yacc and lex to be rebuilt during bootstrap. I'm not incrementing __FreeBSD_version here, because I assume someone else will do this eventually. - When running `make buildkernel', it uses share/mk from the source treeo to build aicasm. Because aicasm also depends on lex, this would break. Lower WARNS to 5 for now. We should just increment it to 6 again somewhere in the very far future. Notes: svn path=/head/; revision=201300
* Add missing `void' keywords.Ed Schouten2009-12-304-10/+10
| | | | Notes: svn path=/head/; revision=201261
* Add a missing free() call.Christian Brueffer2009-10-211-0/+2
| | | | | | | | | | PR: 138379 Submitted by: Patroklos Argyroudis <argp@census-labs.com> Reviewed by: gibbs MFC after: 1 week Notes: svn path=/head/; revision=198327
* Re-enable WARNS=6 after my universe test.Xin LI2009-06-021-0/+1
| | | | Notes: svn path=/head/; revision=193314
* Initialize the match structure. This is unnecessary but gcc insists toXin LI2009-06-011-2/+1
| | | | | | | complain about it when we raise the WARNS level. Notes: svn path=/head/; revision=193268
* Revert the WARNS change for now, need some time to fix the real problem.Xin LI2009-06-011-1/+0
| | | | Notes: svn path=/head/; revision=193247
* Mark as WARNS=6.Xin LI2009-06-011-0/+1
| | | | Notes: svn path=/head/; revision=193245
* Code cleanups to make this WARNS=6 clean.Xin LI2009-06-017-45/+56
| | | | | | | PR: bin/96128 Notes: svn path=/head/; revision=193244
* Fix a group of typos:Yaroslav Tykhiy2006-12-292-2/+2
| | | | | | | | | | | preceed -> precede, preceeded -> preceded, preceeding -> preceding. Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com> Notes: svn path=/head/; revision=165628
* Fix mysterious build failures (with parallel make) early inRuslan Ermilov2005-11-211-1/+1
| | | | | | | | | | | buildkernel: provide a real but dummy name to ${DEPENDFILE} so that the relevant exists() check in bsd.prog.mk fails and ensures that ${GENHDRS} are built before any other objects. MFC after: 3 days Notes: svn path=/head/; revision=152648
* Back out change accidentally committed as Makefile:1.21 -- a localRobert Watson2005-08-031-1/+0
| | | | | | | | | tweak to let the 6.x/7.x kernel series build on a 5.x userland. Pointed out by: njl Notes: svn path=/head/; revision=148659
* Modify device drivers supporting multicast addresses to lock if_addr_mtxRobert Watson2005-08-031-0/+1
| | | | | | | | | | | over iteration of their multicast address lists when synchronizing the hardware address filter with the network stack-maintained list. Problem reported by: Ed Maste (emaste at phaedrus dot sandvine dot ca> MFC after: 1 week Notes: svn path=/head/; revision=148654
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-069-9/+9
| | | | Notes: svn path=/head/; revision=139749
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-211-1/+1
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* These are changes to allow to use the Intel C/C++ compiler (lang/icc)Tom Rhodes2004-03-121-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to build the kernel. It doesn't affect the operation if gcc. Most of the changes are just adding __INTEL_COMPILER to #ifdef's, as icc v8 may define __GNUC__ some parts may look strange but are necessary. Additional changes: - in_cksum.[ch]: * use a generic C version instead of the assembly version in the !gcc case (ASM code breaks with the optimizations icc does) -> no bad checksums with an icc compiled kernel Help from: andre, grehan, das Stolen from: alpha version via ppc version The entire checksum code should IMHO be replaced with the DragonFly version (because it isn't guaranteed future revisions of gcc will include similar optimizations) as in: ---snip--- Revision Changes Path 1.12 +1 -0 src/sys/conf/files.i386 1.4 +142 -558 src/sys/i386/i386/in_cksum.c 1.5 +33 -69 src/sys/i386/include/in_cksum.h 1.5 +2 -0 src/sys/netinet/igmp.c 1.6 +0 -1 src/sys/netinet/in.h 1.6 +2 -0 src/sys/netinet/ip_icmp.c 1.4 +3 -4 src/contrib/ipfilter/ip_compat.h 1.3 +1 -2 src/sbin/natd/icmp.c 1.4 +0 -1 src/sbin/natd/natd.c 1.48 +1 -0 src/sys/conf/files 1.2 +0 -1 src/sys/conf/files.amd64 1.13 +0 -1 src/sys/conf/files.i386 1.5 +0 -1 src/sys/conf/files.pc98 1.7 +1 -1 src/sys/contrib/ipfilter/netinet/fil.c 1.10 +2 -3 src/sys/contrib/ipfilter/netinet/ip_compat.h 1.10 +1 -1 src/sys/contrib/ipfilter/netinet/ip_fil.c 1.7 +1 -1 src/sys/dev/netif/txp/if_txp.c 1.7 +1 -1 src/sys/net/ip_mroute/ip_mroute.c 1.7 +1 -2 src/sys/net/ipfw/ip_fw2.c 1.6 +1 -2 src/sys/netinet/igmp.c 1.4 +158 -116 src/sys/netinet/in_cksum.c 1.6 +1 -1 src/sys/netinet/ip_gre.c 1.7 +1 -2 src/sys/netinet/ip_icmp.c 1.10 +1 -1 src/sys/netinet/ip_input.c 1.10 +1 -2 src/sys/netinet/ip_output.c 1.13 +1 -2 src/sys/netinet/tcp_input.c 1.9 +1 -2 src/sys/netinet/tcp_output.c 1.10 +1 -1 src/sys/netinet/tcp_subr.c 1.10 +1 -1 src/sys/netinet/tcp_syncache.c 1.9 +1 -2 src/sys/netinet/udp_usrreq.c 1.5 +1 -2 src/sys/netinet6/ipsec.c 1.5 +1 -2 src/sys/netproto/ipsec/ipsec.c 1.5 +1 -1 src/sys/netproto/ipsec/ipsec_input.c 1.4 +1 -2 src/sys/netproto/ipsec/ipsec_output.c and finally remove sys/i386/i386 in_cksum.c sys/i386/include in_cksum.h ---snip--- - endian.h: * DTRT in C++ mode - quad.h: * we don't use gcc v1 anymore, remove support for it Suggested by: bde (long ago) - assym.h: * avoid zero-length arrays (remove dependency on a gcc specific feature) This change changes the contents of the object file, but as it's only used to generate some values for a header, and the generator knows how to handle this, there's no impact in the gcc case. Explained by: bde Submitted by: Marius Strobl <marius@alchemy.franken.de> - aicasm.c: * minor change to teach it about the way icc spells "-nostdinc" Not approved by: gibbs (no reply to my mail) - bump __FreeBSD_version (lang/icc needs to know about the changes) Incarnations of this patch survive gcc compiles since a loooong time, I use it on my desktop. An icc compiled kernel works since Nov. 2003 (exceptions: snd_* if used as modules), it survives a build of the entire ports collection with icc. Parts of this commit contains suggestions or submissions from Marius Strobl <marius@alchemy.franken.de>. Reviewed by: -arch Submitted by: netchild Notes: svn path=/head/; revision=126891
* This are the build infrastructure changes to allow to use theTom Rhodes2004-03-121-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Intel C/C++ compiler (lang/icc) to build the kernel. The icc CPUTYPE CFLAGS use icc v7 syntax, icc v8 moans about them, but doesn't abort. They also produce CPU specific code (new instructions of the CPU, not only CPU specific scheduling), so if you get coredumps with signal 4 (SIGILL, illegal instruction) you've used the wrong CPUTYPE. Incarnations of this patch survive gcc compiles and my make universe. I use it on my desktop. To use it update share/mk, add /usr/local/intel/compiler70/ia32/bin (icc v7, works) or /usr/local/intel_cc_80/bin (icc v8, doesn't work) to your PATH, make sure you have a new kernel compile directory (e.g. MYKERNEL_icc) and run CFLAGS="-O2 -ip" CC=icc make depend CFLAGS="-O2 -ip" CC=icc make in it. Don't compile with -ipo, the build infrastructure uses ld directly to link the kernel and the modules, but -ipo needs the link step to be performed with Intel's linker. Problems with icc v8: - panic: npx0 cannot be emulated on an SMP system - UP: first start of /bin/sh results in a FP exception Parts of this commit contains suggestions or submissions from Marius Strobl <marius@alchemy.franken.de>. Reviewed by: silence on -arch Submitted by: netchild Notes: svn path=/head/; revision=126890
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).Ruslan Ermilov2004-02-051-2/+2
| | | | Notes: svn path=/head/; revision=125503
* When outputing a code listing, properly displayJustin T. Gibbs2003-12-171-7/+16
| | | | | | | macros that expand to multiple instructions. Notes: svn path=/head/; revision=123578
* Modify assembler to ignore carriage returns in input.Justin T. Gibbs2003-12-162-4/+15
| | | | | | | | This should make those using the assembler under cygwin happy. Notes: svn path=/head/; revision=123577
* Allow constants to be complex expressions so long as thoseJustin T. Gibbs2003-01-201-15/+6
| | | | | | | | | | expressions can be fully evaluated during assembly. Remove the numerical_value portion of the grammer which is no longer referenced. Notes: svn path=/head/; revision=109576
* Fix the last reference to the reg_print.c file handleJustin T. Gibbs2003-01-201-2/+2
| | | | | | | | in symtable_dump. This allows the assembler to operate without generating this file. Notes: svn path=/head/; revision=109575
* Minor updates to the aicasm:Scott Long2002-11-273-5/+5
| | | | | | | | | | | | | | | | | aicasm_gram.y: Use a direct move from allzeros to emulate a mvi of 0. aicasm_insformat.h: sync $Id$ aicasm_symbol.c: Minor header change. Approved by: re (blanket) Notes: svn path=/head/; revision=107303
* Use fcntl.h from inside /sys.David E. O'Brien2002-09-301-1/+1
| | | | | | | Reviewd by: scottl Notes: svn path=/head/; revision=104172